perf tools: Move rdtsc() function
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 22 Jul 2014 13:17:32 +0000 (16:17 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 23 Jul 2014 14:48:11 +0000 (11:48 -0300)
commita6a69db4b686e51045771945669bba6578af67c1
treedb97f51a927367b4bd875c7879150af5eba0714a
parentb9d266baac0429f70df3f9cf751b045730d612e3
perf tools: Move rdtsc() function

Move the rdtsc() function so it can be reusued.

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/1406035081-14301-24-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/arch/x86/util/tsc.c
tools/perf/tests/perf-time-to-tsc.c
tools/perf/util/tsc.c
tools/perf/util/tsc.h