xref: /linux/tools/perf/util/hisi-ptt.h (revision 0526b56cbc3c489642bd6a5fe4b718dea7ef0ee8)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * HiSilicon PCIe Trace and Tuning (PTT) support
4  * Copyright (c) 2022 HiSilicon Technologies Co., Ltd.
5  */
6 
7 #ifndef INCLUDE__PERF_HISI_PTT_H__
8 #define INCLUDE__PERF_HISI_PTT_H__
9 
10 #define HISI_PTT_PMU_NAME		"hisi_ptt"
11 #define HISI_PTT_AUXTRACE_PRIV_SIZE	sizeof(u64)
12 
13 struct auxtrace_record *hisi_ptt_recording_init(int *err,
14 						struct perf_pmu *hisi_ptt_pmu);
15 
16 int hisi_ptt_process_auxtrace_info(union perf_event *event,
17 				   struct perf_session *session);
18 
19 #endif
20