summaryrefslogtreecommitdiffstats
path: root/lib/linear_ranges.c
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2022-08-12 16:09:47 -0700
committerArnaldo Carvalho de Melo <acme@redhat.com>2022-08-13 15:02:21 -0300
commitd3abd7b8bd8af16703e81410de3e35bf4de3a9ce (patch)
treec94e35f10ac216d8f13f35c291f9484a739d9b01 /lib/linear_ranges.c
parent1ba3752aec30c04bfb7c82b44332ff98294ec0b8 (diff)
downloadlinux-stable-d3abd7b8bd8af16703e81410de3e35bf4de3a9ce.tar.gz
linux-stable-d3abd7b8bd8af16703e81410de3e35bf4de3a9ce.tar.bz2
linux-stable-d3abd7b8bd8af16703e81410de3e35bf4de3a9ce.zip
perf metrics: Copy entire pmu_event in find metric
The pmu_event passed to the pmu_events_table_for_each_event is invalid after the loop. Copy the entire struct in metricgroup__find_metric. Reduce the scope of this function to static. Signed-off-by: Ian Rogers <irogers@google.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: James Clark <james.clark@arm.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: John Garry <john.garry@huawei.com> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Leo Yan <leo.yan@linaro.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Mike Leach <mike.leach@linaro.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Ravi Bangoria <ravi.bangoria@amd.com> Cc: Stephane Eranian <eranian@google.com> Cc: Will Deacon <will@kernel.org> Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com> Cc: linux-arm-kernel@lists.infradead.org Link: https://lore.kernel.org/r/20220812230949.683239-13-irogers@google.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'lib/linear_ranges.c')
0 files changed, 0 insertions, 0 deletions