0b43786081
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 <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@gmail.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/r/1405332185-4050-40-git-send-email-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
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__ */
|