Skip to content

Commit

Permalink
Removing unneeded use of bpf_probe_read in funcslower
Browse files Browse the repository at this point in the history
  • Loading branch information
dpayne committed Jun 5, 2018
1 parent 5c24456 commit f99769d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tools/funcslower.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,7 @@
data.kernel_stack_id = stacks.get_stackid(ctx, 0 | BPF_F_REUSE_STACKID);
if (data.kernel_stack_id >= 0) {
// populate extras to fix the kernel stack
struct pt_regs regs = {};
bpf_probe_read(&regs, sizeof(regs), (void *)ctx);
u64 ip = PT_REGS_IP(&regs);
u64 ip = PT_REGS_IP(ctx);
// if ip isn't sane, leave key ips as zero for later checking
#ifdef CONFIG_RANDOMIZE_MEMORY
Expand Down

0 comments on commit f99769d

Please sign in to comment.