mbox series

[v2,0/2] perf: Fix bpf prologue generation, uaccess

Message ID 20200609081019.60234-1-sumanthk@linux.ibm.com
Headers show
Series perf: Fix bpf prologue generation, uaccess | expand

Message

Sumanth Korikkar June 9, 2020, 8:10 a.m. UTC
Patches:
1. Fix bpf prologue generation. bpf_probe_read is unavailable for arch
   with overlapping address space.  If uaccess, use bpf_probe_read_user.
   Otherwise, use bpf_probe_read_kernel.
2. Fix uaccess in kprobes. Now perf probe add with @user attribute works

v1->v2:
- Split the patches and add Acked-By

Thank you.

Sumanth Korikkar (2):
  perf: Fix user attribute access in kprobes
  perf: Fix bpf prologue generation

 tools/perf/util/bpf-prologue.c | 14 ++++++++++----
 tools/perf/util/probe-event.c  |  7 +++++--
 tools/perf/util/probe-file.c   |  2 +-
 3 files changed, 16 insertions(+), 7 deletions(-)