libperf: Rename arguments of perf_thread_map APIs
authorTzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>
Mon, 21 Feb 2022 10:26:12 +0000 (12:26 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 23 Feb 2022 17:39:29 +0000 (14:39 -0300)
commit41415b8a974a311c42d48064722540e691010edc
tree05b9c02df10b5844c9453dfb6589135c8da06939
parent521f2688c5af8442ace095815702f08c1aabcb45
libperf: Rename arguments of perf_thread_map APIs

The "int thread" input arguments of some perf_thead_map APIs are index
of the thread in the thread map.

In order to avoid confusion and to make the APIs consistent with
perf_cpu_map APIs, those arguments are renamed to "int idx".

Suggested-by: Arnaldo Carvalho de Melo <acme@kernel.org>
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/r/20220221102612.43879-1-tz.stoyanov@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/perf/Documentation/libperf.txt
tools/lib/perf/include/perf/threadmap.h
tools/lib/perf/threadmap.c