Commit 292feeaf authored by Li Nan's avatar Li Nan
Browse files

perf cs-etm: Use evlist__event2evsel() in cs-etm.c

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IAU6ZD



--------------------------------

Commit 6ecafc9a changed function perf_evlist__event2evsel() to
evlist__event2evsel(), but missing the use of perf_evlist__event2evsel()
in perf/util/cs-etm.c. Fix it.

Fixes: 6ecafc9a ("perf report: Add support to print a textual representation of IBS raw sample data")
Signed-off-by: default avatarLi Nan <linan122@huawei.com>
parent 6ad884d5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2828,7 +2828,7 @@ static int cs_etm__queue_aux_records_cb(struct perf_session *session, union perf
	 * Parse the sample, we need the sample_id_all data that comes after the event so that the
	 * CPU or PID can be matched to an AUXTRACE buffer's CPU or PID.
	 */
	evsel = perf_evlist__event2evsel(session->evlist, event);
	evsel = evlist__event2evsel(session->evlist, event);
	if (!evsel)
		return -EINVAL;
	ret = evsel__parse_sample(evsel, event, &sample);