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
919045aa
Commit
919045aa
authored
Feb 08, 2016
by
4ast
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #357 from iovisor/prandom
Add bpf_get_prandom_u32 to helpers
parents
788f18d2
53baff23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/cc/export/helpers.h
src/cc/export/helpers.h
+2
-0
No files found.
src/cc/export/helpers.h
View file @
919045aa
...
...
@@ -122,6 +122,8 @@ static int (*bpf_probe_read)(void *dst, u64 size, void *unsafe_ptr) =
(
void
*
)
BPF_FUNC_probe_read
;
static
u64
(
*
bpf_ktime_get_ns
)(
void
)
=
(
void
*
)
BPF_FUNC_ktime_get_ns
;
static
u32
(
*
bpf_get_prandom_u32
)
=
(
void
*
)
BPF_FUNC_get_prandom_u32
;
static
int
(
*
bpf_trace_printk_
)(
const
char
*
fmt
,
u64
fmt_size
,
...)
=
(
void
*
)
BPF_FUNC_trace_printk
;
int
bpf_trace_printk
(
const
char
*
fmt
,
...)
asm
(
"llvm.bpf.extra"
);
...
...
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