]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf record: Fix sample cgroup & namespace tracking
authorNamhyung Kim <namhyung@kernel.org>
Sun, 18 Aug 2024 21:29:47 +0000 (14:29 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 19 Aug 2024 19:32:05 +0000 (16:32 -0300)
commit3432bae89e044819f0b30f4c09260d2740896797
tree2b574efc5df02adda76d58bb74ac3899effc08bd
parent05c4cfeba097b986532c7a5609dcc5435c0a4dee
perf record: Fix sample cgroup & namespace tracking

The recent change in 'struct perf_tool' constification broke the cgroup
and/or namespace tracking by resetting tool fields.  It should set the
values after perf_tool__init().

Fixes: cecb1cf154b301c6 ("perf record: Use perf_tool__init()")
Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20240818212948.2873156-1-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-record.c