Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bcc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
bcc
Commits
7bfa4a11
Commit
7bfa4a11
authored
Mar 26, 2018
by
Teng Qin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Explicitly create stack-trace tables with size of power of two
parent
d3648006
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/cc/export/helpers.h
src/cc/export/helpers.h
+2
-1
No files found.
src/cc/export/helpers.h
View file @
7bfa4a11
...
...
@@ -20,6 +20,7 @@ R"********(
#include <uapi/linux/bpf.h>
#include <uapi/linux/if_packet.h>
#include <linux/version.h>
#include <linux/log2.h>
#ifndef CONFIG_BPF_SYSCALL
#error "
CONFIG_BPF_SYSCALL
is
undefined
,
please
check
your
.
config
or
ask
your
Linux
distro
to
enable
this
feature
"
...
...
@@ -184,7 +185,7 @@ struct bpf_stacktrace {
};
#define BPF_STACK_TRACE(_name, _max_entries) \
BPF_TABLE("
stacktrace
", int, struct bpf_stacktrace, _name,
_max_entries
)
BPF_TABLE("
stacktrace
", int, struct bpf_stacktrace, _name,
roundup_pow_of_two(_max_entries)
)
#define BPF_PROG_ARRAY(_name, _max_entries) \
BPF_TABLE("
prog
", u32, u32, _name, _max_entries)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment