diff options
| author | Song Liu <[email protected]> | 2023-05-19 23:57:57 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2023-05-26 19:03:43 +0000 |
| commit | c041d33bf7ec731bb71f47e4d45a7aec9e40b1b9 (patch) | |
| tree | 6b7da3442db1e3a6960452940afffa2462dcd881 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | tools headers UAPI: Sync the linux/in.h with the kernel sources (diff) | |
| download | kernel-c041d33bf7ec731bb71f47e4d45a7aec9e40b1b9.tar.gz kernel-c041d33bf7ec731bb71f47e4d45a7aec9e40b1b9.zip | |
perf evsel: Separate bpf_counter_list and bpf_filters, can be used at the same time
'struct evsel' uses a union for the two lists. This turned out to be
error prone.
For example:
[root@quaco ~]# perf stat --bpf-prog 5246
Error: cpu-clock event does not have sample flags 66c660
failed to set filter "(null)" on event cpu-clock with 2 (No such file or directory)
[root@quaco ~]# perf stat --bpf-prog 5246
Fix this issue by separating the two lists.
Fixes: 56ec9457a4a20c5e ("perf bpf filter: Implement event sample filtering")
Signed-off-by: Song Liu <[email protected]>
Acked-by: Namhyung Kim <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
