xref: /linux/tools/perf/util/hisi-ptt.h (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1057381a7SQi Liu /* SPDX-License-Identifier: GPL-2.0 */
2057381a7SQi Liu /*
3057381a7SQi Liu  * HiSilicon PCIe Trace and Tuning (PTT) support
4057381a7SQi Liu  * Copyright (c) 2022 HiSilicon Technologies Co., Ltd.
5057381a7SQi Liu  */
6057381a7SQi Liu 
7057381a7SQi Liu #ifndef INCLUDE__PERF_HISI_PTT_H__
8057381a7SQi Liu #define INCLUDE__PERF_HISI_PTT_H__
9057381a7SQi Liu 
10057381a7SQi Liu #define HISI_PTT_PMU_NAME		"hisi_ptt"
11057381a7SQi Liu #define HISI_PTT_AUXTRACE_PRIV_SIZE	sizeof(u64)
12057381a7SQi Liu 
13057381a7SQi Liu struct auxtrace_record *hisi_ptt_recording_init(int *err,
14057381a7SQi Liu 						struct perf_pmu *hisi_ptt_pmu);
15057381a7SQi Liu 
16*5e91e57eSQi Liu int hisi_ptt_process_auxtrace_info(union perf_event *event,
17*5e91e57eSQi Liu 				   struct perf_session *session);
18*5e91e57eSQi Liu 
19057381a7SQi Liu #endif
20