aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2021-05-27 11:28:35 -0700
committerArnaldo Carvalho de Melo <[email protected]>2021-06-01 10:32:00 -0300
commit4f2abe91922ba02bb419d91d92a518e4c805220b (patch)
tree72e49fef16a0ccbadc202ddbf60236dbd2059647 /lib/test_fortify
parent3cb17cce1e76ccc5499915a4d7e095a1ad6bf7ff (diff)
perf record: Move probing cgroup sampling support
I found that checking cgroup sampling support using the missing features doesn't work on old kernels. Because it added both attr.cgroup bit and PERF_SAMPLE_CGROUP bit, it needs to check whichever comes first (usually the actual event, not dummy). But it only checks the attr.cgroup bit which is set only in the dummy event so cannot detect failtures due the sample bits. Also we don't ignore the missing feature and retry, it'd be better checking it with the API probing logic. Committer notes: Extracted the minimal part to check using the new cgroup API probe routine, the part that removes the cgroup member can be left for further discussion. Signed-off-by: Namhyung Kim <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'lib/test_fortify')
0 files changed, 0 insertions, 0 deletions