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
a6431542
Commit
a6431542
authored
Apr 10, 2018
by
Howard McLauchlan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add bpf_get_prandom_u32() to reference guide
parent
4c9305c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
docs/reference_guide.md
docs/reference_guide.md
+11
-0
No files found.
docs/reference_guide.md
View file @
a6431542
...
...
@@ -23,6 +23,7 @@ This guide is incomplete. If something feels missing, check the bcc and kernel s
-
[
6. bpf_get_current_comm()
](
#6-bpf_get_current_comm
)
-
[
7. bpf_get_current_task()
](
#7-bpf_get_current_task
)
-
[
8. bpf_log2l()
](
#8-bpflog2l
)
-
[
9. bpf_get_prandom_u32()
](
#9-bpf_get_prandom_u32
)
-
[
Debugging
](
#debugging
)
-
[
1. bpf_override_return()
](
#1-bpf_override_return
)
-
[
Output
](
#output
)
...
...
@@ -352,6 +353,16 @@ Examples in situ:
[search /examples](https://github.com/iovisor/bcc/search?q=bpf_log2l+path%3Aexamples&type=Code),
[search /tools](https://github.com/iovisor/bcc/search?q=bpf_log2l+path%3Atools&type=Code)
### 9. bpf_get_prandom_u32()
Syntax: ```u32 bpf_get_prandom_u32()```
Returns a pseudo-random u32.
Example in situ:
[search /examples](https://github.com/iovisor/bcc/search?q=bpf_get_prandom_u32+path%3Aexamples&type=Code),
[search /tools](https://github.com/iovisor/bcc/search?q=bpf_get_prandom_u32+path%3Atools&type=Code)
## Debugging
### 1. bpf_override_return()
...
...
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