summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/hisi-ptt.h
blob: 2db9b405621483dc6faebbbb49643049e3f33e60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * HiSilicon PCIe Trace and Tuning (PTT) support
 * Copyright (c) 2022 HiSilicon Technologies Co., Ltd.
 */

#ifndef INCLUDE__PERF_HISI_PTT_H__
#define INCLUDE__PERF_HISI_PTT_H__

#define HISI_PTT_PMU_NAME		"hisi_ptt"
#define HISI_PTT_AUXTRACE_PRIV_SIZE	sizeof(u64)

struct auxtrace_record *hisi_ptt_recording_init(int *err,
						struct perf_pmu *hisi_ptt_pmu);

int hisi_ptt_process_auxtrace_info(union perf_event *event,
				   struct perf_session *session);

#endif