Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753346AbbBSMNL (ORCPT ); Thu, 19 Feb 2015 07:13:11 -0500 Received: from mga03.intel.com ([134.134.136.65]:2540 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752744AbbBSMNJ (ORCPT ); Thu, 19 Feb 2015 07:13:09 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,512,1418112000"; d="scan'208";a="456739522" From: Adrian Hunter To: Peter Zijlstra , Ingo Molnar Cc: Arnaldo Carvalho de Melo , linux-kernel@vger.kernel.org, David Ahern , Frederic Weisbecker , Jiri Olsa , Namhyung Kim , Paul Mackerras , Stephane Eranian , John Stultz , Thomas Gleixner , Pawel Moll , Steven Rostedt , Andi Kleen Subject: [PATCH 0/2] perf/x86: Add ability to sample TSC Date: Thu, 19 Feb 2015 14:11:08 +0200 Message-Id: <1424347870-8492-1-git-send-email-adrian.hunter@intel.com> X-Mailer: git-send-email 1.9.1 Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 924 Lines: 27 Hi With the advent of switching perf_clock to CLOCK_MONOTONIC, it will not be possible to convert perf_clock directly to/from TSC. So add the ability to sample TSC instead. Adrian Hunter (2): perf: Sample additional clock value perf/x86: Provide TSC for PERF_SAMPLE_CLOCK_ARCH arch/x86/include/asm/perf_event.h | 6 ++++++ arch/x86/kernel/cpu/perf_event.c | 10 ++++++++++ include/linux/perf_event.h | 3 ++- include/uapi/linux/perf_event.h | 19 +++++++++++++++++-- kernel/events/core.c | 30 ++++++++++++++++++++++++++++++ kernel/events/internal.h | 4 ++++ 6 files changed, 69 insertions(+), 3 deletions(-) Regards Adrian -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/