mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
perf annotate-data: Add a cache for global variable types
They are often searched by many different places. Let's add a cache for them to reduce the duplicate DWARF access. 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-23-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
b3c95109c1
commit
55ee3d005d
@@ -153,6 +153,9 @@ int annotated_data_type__update_samples(struct annotated_data_type *adt,
|
||||
/* Release all data type information in the tree */
|
||||
void annotated_data_type__tree_delete(struct rb_root *root);
|
||||
|
||||
/* Release all global variable information in the tree */
|
||||
void global_var_type__tree_delete(struct rb_root *root);
|
||||
|
||||
#else /* HAVE_DWARF_SUPPORT */
|
||||
|
||||
static inline struct annotated_data_type *
|
||||
@@ -175,6 +178,10 @@ static inline void annotated_data_type__tree_delete(struct rb_root *root __maybe
|
||||
{
|
||||
}
|
||||
|
||||
static inline void global_var_type__tree_delete(struct rb_root *root __maybe_unused)
|
||||
{
|
||||
}
|
||||
|
||||
#endif /* HAVE_DWARF_SUPPORT */
|
||||
|
||||
#endif /* _PERF_ANNOTATE_DATA_H */
|
||||
|
||||
Reference in New Issue
Block a user