intel-bts.h 777 B

12345678910111213141516171819202122232425262728293031323334
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * intel-bts.h: Intel Processor Trace support
  4. * Copyright (c) 2013-2014, Intel Corporation.
  5. */
  6. #ifndef INCLUDE__PERF_INTEL_BTS_H__
  7. #define INCLUDE__PERF_INTEL_BTS_H__
  8. #define INTEL_BTS_PMU_NAME "intel_bts"
  9. enum {
  10. INTEL_BTS_PMU_TYPE,
  11. INTEL_BTS_TIME_SHIFT,
  12. INTEL_BTS_TIME_MULT,
  13. INTEL_BTS_TIME_ZERO,
  14. INTEL_BTS_CAP_USER_TIME_ZERO,
  15. INTEL_BTS_SNAPSHOT_MODE,
  16. INTEL_BTS_AUXTRACE_PRIV_MAX,
  17. };
  18. #define INTEL_BTS_AUXTRACE_PRIV_SIZE (INTEL_BTS_AUXTRACE_PRIV_MAX * sizeof(u64))
  19. struct auxtrace_record;
  20. struct perf_tool;
  21. union perf_event;
  22. struct perf_session;
  23. struct auxtrace_record *intel_bts_recording_init(int *err);
  24. int intel_bts_process_auxtrace_info(union perf_event *event,
  25. struct perf_session *session);
  26. #endif