mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 08:52:27 +00:00
It is possible to record a perf.data file on one architecture and process it on another. Consequently, TSC conversion functions need to be moved out of the arch directory. Signed-off-by: Adrian Hunter <[email protected]> Cc: David Ahern <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
18 lines
377 B
C
18 lines
377 B
C
#ifndef TOOLS_PERF_ARCH_X86_UTIL_TSC_H__
|
|
#define TOOLS_PERF_ARCH_X86_UTIL_TSC_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct perf_tsc_conversion {
|
|
u16 time_shift;
|
|
u32 time_mult;
|
|
u64 time_zero;
|
|
};
|
|
|
|
struct perf_event_mmap_page;
|
|
|
|
int perf_read_tsc_conversion(const struct perf_event_mmap_page *pc,
|
|
struct perf_tsc_conversion *tc);
|
|
|
|
#endif /* TOOLS_PERF_ARCH_X86_UTIL_TSC_H__ */
|