diff options
author | Namhyung Kim <namhyung@kernel.org> | 2024-03-18 22:51:15 -0700 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2024-03-21 10:41:29 -0300 |
commit | bd62de08084c24a4ff1b1875d53cc4cc1ea2312d (patch) | |
tree | b009a6e5ca212f203d5c6308f788c40c1137f2c0 /ipc/msgutil.c | |
parent | 55ee3d005d62279d3951a26d5c211a4d9aebc222 (diff) | |
download | linux-bd62de08084c24a4ff1b1875d53cc4cc1ea2312d.tar.gz linux-bd62de08084c24a4ff1b1875d53cc4cc1ea2312d.tar.bz2 linux-bd62de08084c24a4ff1b1875d53cc4cc1ea2312d.zip |
perf annotate-data: Do not retry for invalid types
In some cases, it was able to find a type or location info (for per-cpu
variable) but cannot match because of invalid offset or missing global
information. In those cases, it's meaningless to go to the outer scope
and retry because there will be no additional information.
Let's change the return type of find_matching_type() and bail out if it
returns -1 for the cases.
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: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: https://lore.kernel.org/r/20240319055115.4063940-24-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'ipc/msgutil.c')
0 files changed, 0 insertions, 0 deletions