Re: [PATCH bpf-next 5/7] selftests/bpf: switch test to new attach_perf_event API

2019-06-20 Thread Andrii Nakryiko
On Thu, Jun 20, 2019 at 5:08 PM Stanislav Fomichev wrote: > > On 06/20, Andrii Nakryiko wrote: > > Use new bpf_program__attach_perf_event() in test previously relying on > > direct ioctl manipulations. > Maybe use new detach/disable routine at the end of the > test_stacktrace_build_id_nmi as well?

Re: [PATCH bpf-next 5/7] selftests/bpf: switch test to new attach_perf_event API

2019-06-20 Thread Stanislav Fomichev
On 06/20, Andrii Nakryiko wrote: > Use new bpf_program__attach_perf_event() in test previously relying on > direct ioctl manipulations. Maybe use new detach/disable routine at the end of the test_stacktrace_build_id_nmi as well? > Signed-off-by: Andrii Nakryiko > --- > .../bpf/prog_tests/stacktr

[PATCH bpf-next 5/7] selftests/bpf: switch test to new attach_perf_event API

2019-06-20 Thread Andrii Nakryiko
Use new bpf_program__attach_perf_event() in test previously relying on direct ioctl manipulations. Signed-off-by: Andrii Nakryiko --- .../bpf/prog_tests/stacktrace_build_id_nmi.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/testing/selftests/bpf/