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
82970a67
Commit
82970a67
authored
Feb 10, 2018
by
yonghong-song
Committed by
GitHub
Feb 10, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1583 from liubogithub/urandomfix
Fix two issues in examples
parents
3c468a4f
7c34c05e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
+2
-3
examples/tracing/sync_timing.py
examples/tracing/sync_timing.py
+0
-1
examples/tracing/urandomread-explicit.py
examples/tracing/urandomread-explicit.py
+1
-1
examples/tracing/urandomread.py
examples/tracing/urandomread.py
+1
-1
No files found.
examples/tracing/sync_timing.py
View file @
82970a67
...
...
@@ -14,7 +14,6 @@ from bcc import BPF
# load BPF program
b
=
BPF
(
text
=
"""
#include <uapi/linux/ptrace.h>
#include <linux/blkdev.h>
BPF_HASH(last);
...
...
examples/tracing/urandomread-explicit.py
View file @
82970a67
...
...
@@ -33,7 +33,7 @@ struct urandom_read_args {
int printarg(struct urandom_read_args *args) {
bpf_trace_printk("%d
\
\
n", args->got_bits);
return 0;
}
;
}
"""
# load BPF program
...
...
examples/tracing/urandomread.py
View file @
82970a67
...
...
@@ -20,7 +20,7 @@ TRACEPOINT_PROBE(random, urandom_read) {
// args is from /sys/kernel/debug/tracing/events/random/urandom_read/format
bpf_trace_printk("%d
\
\
n", args->got_bits);
return 0;
}
;
}
"""
)
# header
...
...
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