diff options
| author | Tzvetomir Stoyanov (VMware) <[email protected]> | 2022-02-21 12:26:28 +0200 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2022-02-23 14:40:23 -0300 |
| commit | 56dce868198cd01b023e05d72bbbba7c87cc384d (patch) | |
| tree | 287744573d74ffa37a015d1f0398f4e63fe15d86 /tools/perf/util/scripting-engines/trace-event-python.c | |
| parent | 41415b8a974a311c42d48064722540e691010edc (diff) | |
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) <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: Ian Rogers <[email protected]>
Link: https://lore.kernel.org/linux-perf-users/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions