perf evsel: Add missing cloning of evsel->use_config_name
authorNamhyung Kim <namhyung@kernel.org>
Wed, 2 Jun 2021 21:22:40 +0000 (14:22 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 4 Jun 2021 13:04:20 +0000 (10:04 -0300)
commit2dc065eae56df804e4da5f8a9e4139033f7ea605
tree248ac4779bfd747b9c89bd2f3588b06a12d37e90
parentf677ec94f6fb9d895f40403bd54236f7763c29db
perf evsel: Add missing cloning of evsel->use_config_name

The evsel__clone() should copy all fields in the evsel which are set
during the event parsing.  But it missed the use_config_name field.

Fixes: 12279429d862 ("perf stat: Uniquify hybrid event name")
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Ian Rogers <irogers@google.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jin Yao <yao.jin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/20210602212241.2175005-2-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evsel.c
tools/perf/util/evsel.h