All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] perf tools: Tidy up symbol end fixup (v3)
@ 2022-04-16  0:40 ` Namhyung Kim
  0 siblings, 0 replies; 16+ messages in thread
From: Namhyung Kim @ 2022-04-16  0:40 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo, Jiri Olsa, Ian Rogers, Michael Petlan
  Cc: Peter Zijlstra, Ingo Molnar, Masami Hiramatsu, Song Liu,
	Will Deacon, Mark Rutland, John Garry, Mathieu Poirier, Leo Yan,
	Michael Ellerman, Heiko Carstens, LKML, linux-perf-users,
	linuxppc-dev, linux-s390

Hello,

This work is a follow-up of Ian's previous one at
  https://lore.kernel.org/all/20220412154817.2728324-1-irogers@google.com/

Fixing up more symbol ends as introduced in:
  https://lore.kernel.org/lkml/20220317135536.805-1-mpetlan@redhat.com/

it caused perf annotate to run into memory limits - every symbol holds
all the disassembled code in the annotation, and so making symbols
ends further away dramatically increased memory usage (40MB to >1GB).

Modify the symbol end fixup logic so that special kernel cases aren't
applied in the common case.

v3 changes)
 * rename is_kernel to is_kallsyms
 * move the logic to generic function
 * remove arch-specific functions

Thanks,
Namhyung


Namhyung Kim (3):
  perf symbol: Pass is_kallsyms to symbols__fixup_end()
  perf symbol: Update symbols__fixup_end()
  perf symbol: Remove arch__symbols__fixup_end()

 tools/perf/arch/arm64/util/machine.c   | 21 ---------------
 tools/perf/arch/powerpc/util/Build     |  1 -
 tools/perf/arch/powerpc/util/machine.c | 25 -----------------
 tools/perf/arch/s390/util/machine.c    | 16 -----------
 tools/perf/util/symbol-elf.c           |  2 +-
 tools/perf/util/symbol.c               | 37 +++++++++++++++++++-------
 tools/perf/util/symbol.h               |  3 +--
 7 files changed, 29 insertions(+), 76 deletions(-)
 delete mode 100644 tools/perf/arch/powerpc/util/machine.c


base-commit: 41204da4c16071be9090940b18f566832d46becc
-- 
2.36.0.rc0.470.gd361397f0d-goog


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2022-04-28 13:53 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-16  0:40 [PATCH 0/3] perf tools: Tidy up symbol end fixup (v3) Namhyung Kim
2022-04-16  0:40 ` Namhyung Kim
2022-04-16  0:40 ` [PATCH 1/3] perf symbol: Pass is_kallsyms to symbols__fixup_end() Namhyung Kim
2022-04-16  0:40   ` Namhyung Kim
2022-04-16 14:59   ` Ian Rogers
2022-04-16 14:59     ` Ian Rogers
2022-04-25 19:14     ` Namhyung Kim
2022-04-25 19:14       ` Namhyung Kim
2022-04-16  0:40 ` [PATCH 2/3] perf symbol: Update symbols__fixup_end() Namhyung Kim
2022-04-16  0:40   ` Namhyung Kim
2022-04-16  0:40 ` [PATCH 3/3] perf symbol: Remove arch__symbols__fixup_end() Namhyung Kim
2022-04-16  0:40   ` Namhyung Kim
2022-04-25 20:59 ` [PATCH 0/3] perf tools: Tidy up symbol end fixup (v3) Ian Rogers
2022-04-25 20:59   ` Ian Rogers
2022-04-28 13:52   ` Arnaldo Carvalho de Melo
2022-04-28 13:52     ` Arnaldo Carvalho de Melo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.