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
37f7fef2
Commit
37f7fef2
authored
Jun 14, 2018
by
Paul Chaignon
Committed by
yonghong-song
Jun 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
profile: remove unnecessary bpf_probe_read call (#1822)
parent
69728067
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
tools/profile.py
tools/profile.py
+1
-3
No files found.
tools/profile.py
View file @
37f7fef2
...
@@ -153,9 +153,7 @@ int do_perf_event(struct bpf_perf_event_data *ctx) {
...
@@ -153,9 +153,7 @@ int do_perf_event(struct bpf_perf_event_data *ctx) {
if (key.kernel_stack_id >= 0) {
if (key.kernel_stack_id >= 0) {
// populate extras to fix the kernel stack
// populate extras to fix the kernel stack
struct pt_regs regs = {};
u64 ip = PT_REGS_IP(&ctx->regs);
bpf_probe_read(®s, sizeof(regs), (void *)&ctx->regs);
u64 ip = PT_REGS_IP(®s);
u64 page_offset;
u64 page_offset;
// if ip isn't sane, leave key ips as zero for later checking
// if ip isn't sane, leave key ips as zero for later checking
...
...
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