summaryrefslogtreecommitdiff
path: root/tools/lib/perf/libperf.map
diff options
context:
space:
mode:
authorTzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>2022-02-21 13:26:28 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2022-02-23 20:40:23 +0300
commit56dce868198cd01b023e05d72bbbba7c87cc384d (patch)
tree287744573d74ffa37a015d1f0398f4e63fe15d86 /tools/lib/perf/libperf.map
parent41415b8a974a311c42d48064722540e691010edc (diff)
downloadlinux-56dce868198cd01b023e05d72bbbba7c87cc384d.tar.xz
libperf: Add API for allocating new thread map array
The existing API perf_thread_map__new_dummy() allocates new thread map for one thread. I couldn't find a way to reallocate the map with more threads, or to allocate a new map for more than one thread. Having multiple threads in a thread map is essential for some use cases. That's why a new API is proposed, which allocates a new thread map for given number of threads: perf_thread_map__new_array() Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com> Acked-by: Jiri Olsa <jolsa@kernel.org> Cc: Ian Rogers <irogers@google.com> Link: https://lore.kernel.org/linux-perf-users/20220221102628.43904-1-tz.stoyanov@gmail.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib/perf/libperf.map')
-rw-r--r--tools/lib/perf/libperf.map1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lib/perf/libperf.map b/tools/lib/perf/libperf.map
index 6fa0d651576b..190b56ae923a 100644
--- a/tools/lib/perf/libperf.map
+++ b/tools/lib/perf/libperf.map
@@ -12,6 +12,7 @@ LIBPERF_0.0.1 {
perf_cpu_map__empty;
perf_cpu_map__max;
perf_cpu_map__has;
+ perf_thread_map__new_array;
perf_thread_map__new_dummy;
perf_thread_map__set_pid;
perf_thread_map__comm;