Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * intel-bts.h: Intel Processor Trace support
0004  * Copyright (c) 2013-2014, Intel Corporation.
0005  */
0006 
0007 #ifndef INCLUDE__PERF_INTEL_BTS_H__
0008 #define INCLUDE__PERF_INTEL_BTS_H__
0009 
0010 #define INTEL_BTS_PMU_NAME "intel_bts"
0011 
0012 enum {
0013     INTEL_BTS_PMU_TYPE,
0014     INTEL_BTS_TIME_SHIFT,
0015     INTEL_BTS_TIME_MULT,
0016     INTEL_BTS_TIME_ZERO,
0017     INTEL_BTS_CAP_USER_TIME_ZERO,
0018     INTEL_BTS_SNAPSHOT_MODE,
0019     INTEL_BTS_AUXTRACE_PRIV_MAX,
0020 };
0021 
0022 #define INTEL_BTS_AUXTRACE_PRIV_SIZE (INTEL_BTS_AUXTRACE_PRIV_MAX * sizeof(u64))
0023 
0024 struct auxtrace_record;
0025 struct perf_tool;
0026 union perf_event;
0027 struct perf_session;
0028 
0029 struct auxtrace_record *intel_bts_recording_init(int *err);
0030 
0031 int intel_bts_process_auxtrace_info(union perf_event *event,
0032                     struct perf_session *session);
0033 
0034 #endif