Re: [PATCH 1/2] libperf: Add perf_evlist__reset_id_hash()

2021-02-24 Thread Jiri Olsa
On Wed, Feb 24, 2021 at 05:42:15PM +0900, Namhyung Kim wrote: > On Wed, Feb 24, 2021 at 5:11 PM Namhyung Kim wrote: > > > > Add the perf_evlist__reset_id_hash() function to libperf API so that > > it can be called to reset the hash table. This is necessary for perf > > stat to run the workload mu

Re: [PATCH 1/2] libperf: Add perf_evlist__reset_id_hash()

2021-02-24 Thread Namhyung Kim
On Wed, Feb 24, 2021 at 5:11 PM Namhyung Kim wrote: > > Add the perf_evlist__reset_id_hash() function to libperf API so that > it can be called to reset the hash table. This is necessary for perf > stat to run the workload multiple times. > > Signed-off-by: Namhyung Kim > --- [SNIP] > diff --git

[PATCH 1/2] libperf: Add perf_evlist__reset_id_hash()

2021-02-24 Thread Namhyung Kim
Add the perf_evlist__reset_id_hash() function to libperf API so that it can be called to reset the hash table. This is necessary for perf stat to run the workload multiple times. Signed-off-by: Namhyung Kim --- tools/lib/perf/evlist.c | 13 + tools/lib/perf/include/perf