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
4d57da10
Commit
4d57da10
authored
Jan 19, 2016
by
Brendan Gregg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stack walker typo and improvement
parent
38cef486
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
tools/offcputime
tools/offcputime
+1
-1
tools/stackcount
tools/stackcount
+3
-3
tools/stacksnoop
tools/stacksnoop
+1
-1
No files found.
tools/offcputime
View file @
4d57da10
...
...
@@ -74,7 +74,7 @@ static u64 get_frame(u64 *bp) {
if (bpf_probe_read(&ret, sizeof(ret), (void *)(*bp+8)))
return 0;
if (bpf_probe_read(bp, sizeof(*bp), (void *)*bp))
bp = 0;
*
bp = 0;
if (ret < __START_KERNEL_map)
return 0;
return ret;
...
...
tools/stackcount
View file @
4d57da10
...
...
@@ -86,10 +86,10 @@ static u64 get_frame(u64 *bp) {
u64 ret = 0;
if (bpf_probe_read(&ret, sizeof(ret), (void *)(*bp+8)))
return 0;
if (!ret || ret < __START_KERNEL_map)
return 0;
if (bpf_probe_read(bp, sizeof(*bp), (void *)*bp))
bp = 0;
*bp = 0;
if (ret < __START_KERNEL_map)
return 0;
return ret;
}
return 0;
...
...
tools/stacksnoop
View file @
4d57da10
...
...
@@ -56,7 +56,7 @@ static int print_frame(u64 *bp, int *depth) {
u64 ret = 0;
if (bpf_probe_read(&ret, sizeof(ret), (void *)(*bp+8)))
return 0;
if (
!ret ||
ret < __START_KERNEL_map)
if (ret < __START_KERNEL_map)
return 0;
bpf_trace_printk("r%d: %llx
\
\
n", *depth, ret);
if (bpf_probe_read(bp, sizeof(*bp), (void *)*bp))
...
...
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