]> www.infradead.org Git - users/willy/xarray.git/commit
perf/core: Check sample_type in perf_sample_save_callchain
authorYabin Cui <yabinc@google.com>
Wed, 15 May 2024 19:36:08 +0000 (12:36 -0700)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 Nov 2024 08:23:42 +0000 (09:23 +0100)
commitf226805bc5f60adf03783d8e4cbfe303ccecd64e
tree63054f13581f6171d4ccad02d4654e2f17676dce
parentb9c44b91476b67327a521568a854babecc4070ab
perf/core: Check sample_type in perf_sample_save_callchain

Check sample_type in perf_sample_save_callchain() to prevent
saving callchain data when it isn't required.

Suggested-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Yabin Cui <yabinc@google.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Ian Rogers <irogers@google.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20240515193610.2350456-3-yabinc@google.com
arch/x86/events/amd/ibs.c
arch/x86/events/intel/ds.c
include/linux/perf_event.h