aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-ti.c
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2022-09-08 16:01:50 -0700
committerArnaldo Carvalho de Melo <[email protected]>2022-10-04 08:55:22 -0300
commit187c7723e4aae6d5729e27179542956975624ff8 (patch)
treec4cfbb3e97a504175188b63312a471060cfbaa98 /drivers/usb/cdns3/cdns3-ti.c
parent165da80296ea6bc996eea4551026e39a0109f71e (diff)
perf test: Skip sigtrap test on old kernels
If it runs on an old kernel, perf_event_open would fail because of the new fields sigtrap and sig_data. Just skipping the test could miss an actual bug in the kernel. Let's check BTF (when we have libbpf) if it has the sigtrap field in the perf_event_attr. Otherwise, we can check it with a minimal event config. Signed-off-by: Namhyung Kim <[email protected]> Acked-by: Song Liu <[email protected]> Suggested-by: Arnaldo Carvalho de Melo <[email protected]> # Using BTF to check for the struct members Cc: Adrian Hunter <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Marco Elver <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-ti.c')
0 files changed, 0 insertions, 0 deletions