From: Adrian Hunter Date: Fri, 28 Jun 2013 13:22:18 +0000 (+0300) Subject: perf/x86: Add ability to calculate TSC from perf sample timestamps X-Git-Tag: v3.12-rc1~168^3~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c73deb6aecda2955716f31572516f09d930ef450;p=pandora-kernel.git perf/x86: Add ability to calculate TSC from perf sample timestamps For modern CPUs, perf clock is directly related to TSC. TSC can be calculated from perf clock and vice versa using a simple calculation. Two of the three componenets of that calculation are already exported in struct perf_event_mmap_page. This patch exports the third. Signed-off-by: Adrian Hunter Signed-off-by: Peter Zijlstra Cc: "H. Peter Anvin" Link: http://lkml.kernel.org/r/1372425741-1676-3-git-send-email-adrian.hunter@intel.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed