mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-27 04:22:58 +00:00
perf annotate-data: Skip sample histogram for stack canary
It's a pseudo data type and has no field.
Fixes: b3c95109c1 ("perf annotate-data: Add stack canary type")
Closes: https://lore.kernel.org/lkml/Zhb6jJneP36Z-or0@x1
Reported-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
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: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20240411033256.2099646-2-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
7aa8749979
commit
eb83348863
@@ -2399,8 +2399,9 @@ retry:
|
||||
mem_type = find_data_type(&dloc);
|
||||
|
||||
if (mem_type == NULL && is_stack_canary(arch, op_loc)) {
|
||||
mem_type = &canary_type;
|
||||
dloc.type_offset = 0;
|
||||
istat->good++;
|
||||
he->mem_type_off = 0;
|
||||
return &canary_type;
|
||||
}
|
||||
|
||||
if (mem_type)
|
||||
|
||||
Reference in New Issue
Block a user