From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751991Ab3LLCLp (ORCPT ); Wed, 11 Dec 2013 21:11:45 -0500 Received: from cdptpa-outbound-snat.email.rr.com ([107.14.166.225]:8398 "EHLO cdptpa-oedge-vip.email.rr.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750894Ab3LLCLo (ORCPT ); Wed, 11 Dec 2013 21:11:44 -0500 Date: Wed, 11 Dec 2013 21:11:42 -0500 From: Steven Rostedt To: Sonny Rao Cc: Stephane Eranian , Josh Triplett , LKML , John Stultz , Olof Johansson , Ingo Molnar , Peter Zijlstra , Thomas Gleixner , Frederic Weisbecker , Andrew Morton , pawel.moll@arm.com Subject: Re: [RFC PATCH] drivers: char: Add a dynamic clock for the trace clock Message-ID: <20131211211142.3120bd2a@gandalf.local.home> In-Reply-To: References: <1386376451-24593-1-git-send-email-sonnyrao@chromium.org> <20131209074933.GA2922@jtriplet-mobl1> <20131211204900.76993a7d@gandalf.local.home> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.22; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-RR-Connecting-IP: 107.14.168.130:25 X-Cloudmark-Score: 0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 11 Dec 2013 18:06:06 -0800 Sonny Rao wrote: > > ftrace has several clocks that it uses: > > > > o local - basically sched_clock() > > o global - something like hpet that is monotonic across CPUs but slower > > o counter - a simple atomic counter (no time associated to it) > > o uptime - jiffy counter > > o perf - trace_clock, which is what perf uses > > o x86_tsc - the raw tsc counter. > > > > # cat /sys/kernel/debug/trace_clock > > [local] global counter uptime perf x86-tsc > > > > Ah ok sorry for the incorrect info there, thanks for clarifying. > So, If I wanted to make sure everything is synced up between ftrace > events and perf events I should say perf here instead of local. Correct, that's why I created that clock. -- Steve