Unverified Commit 429f9490 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

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

Merge Pull Request from: @linan888 
 
Fix compilation error:
tools/perf/util/cs-etm.c:2831: undefined reference to `perf_evlist__event2evsel' 
 
Link:https://gitee.com/openeuler/kernel/pulls/14216

 

Reviewed-by: default avatarLiu Chao <liuchao173@huawei.com>
parents fac13393 292feeaf
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);