Received: by 10.223.164.202 with SMTP id h10csp1523692wrb; Sat, 18 Nov 2017 00:26:55 -0800 (PST) X-Google-Smtp-Source: AGs4zMYySZT2cr/swU3bFvetgHK9b42U11aymRNrEMgDnwaAbzjpvJz4qJ7hZjm0OqZvcuHZkgpT X-Received: by 10.98.15.212 with SMTP id 81mr4686929pfp.106.1510993615062; Sat, 18 Nov 2017 00:26:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510993615; cv=none; d=google.com; s=arc-20160816; b=kICa2CkqG3KC4BKhkdMXZx1M/i+IkFgqID/ylgiCYS5VmJk8dTg+xT1WlVzuypN4yv nP5jDKqZa+lvXjrJjy1mvQSSckmEHzI0LNJUtW/l4TUb8cddNmvLhQJQo6+49bmfu0wD RDg7y2Dm0nv3ChudL9pgPEzFKCph9xgkOz+1+ofxC4ElF0e3iPOA8crjdGzRAsoLaMLV acG8cim2V0TWsKJSYM79fRRuGlCsy7/0f4x4fV/QgkrPBFW8pjNjv5aIPOdCkfe74QBG pHU8IGlPYAhJQikDr3FUHiw8foiIh/r4i1K+shJAm6OWsJGCPvPmQSY7PJ+XL03YhIp/ 11/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=cbp9ia/pUqaZcUlQGQEe0vZ6EPIpp565ybCDlC84gUE=; b=M0slksnZjUBwIERlPSfQCAnqJKce2JT0C3gMpdQuyrpgAZerkrCgd8W8xTvUidkr34 bAPumE0+8DQMGFq2sWxmMZKivS47dtCaX5ifj5Eni8zRrIbiVOjQrmZFp3xv5bZCgosI A9GZhdoV1rvWs7CyR9cdBeQDCfyMxXcJ1oiKnjxmIeKl/11Pg/c+9sZv6hmvYiljIEJd fu8qCSfA1XMGp4piQiR6dYanDyP20+veWEQpRzZ2f7tNWCv1PYPCv1CVyK5B/p+9PUQS qELN992zfpeYD0nGCfN1j8mXC0odUWhun+U8jAYktv42lA6owX6SdbaznN7wq1YBx46/ 6J9A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a2si4333219plt.229.2017.11.18.00.26.42; Sat, 18 Nov 2017 00:26:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966319AbdKQUgb (ORCPT + 93 others); Fri, 17 Nov 2017 15:36:31 -0500 Received: from mga11.intel.com ([192.55.52.93]:47524 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935089AbdKQUfv (ORCPT ); Fri, 17 Nov 2017 15:35:51 -0500 Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Nov 2017 12:35:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,411,1505804400"; d="scan'208";a="150558374" Received: from mjglynn-mobl.ger.corp.intel.com (HELO localhost) ([10.254.124.112]) by orsmga004.jf.intel.com with ESMTP; 17 Nov 2017 12:35:50 -0800 From: Tom Zanussi To: rostedt@goodmis.org Cc: tglx@linutronix.de, mhiramat@kernel.org, namhyung@kernel.org, vedang.patel@intel.com, bigeasy@linutronix.de, joel.opensrc@gmail.com, joelaf@google.com, mathieu.desnoyers@efficios.com, baohong.liu@intel.com, rajvi.jingar@intel.com, julia@ni.com, fengguang.wu@intel.com, linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org, Tom Zanussi Subject: [PATCH v6 33/37] tracing: Make tracing_set_clock() non-static Date: Fri, 17 Nov 2017 14:33:12 -0600 Message-Id: X-Mailer: git-send-email 1.9.3 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Allow tracing code outside of trace.c to access tracing_set_clock(). Some applications may require a particular clock in order to function properly, such as latency calculations. Also, add an accessor returning the current clock string. Signed-off-by: Tom Zanussi --- kernel/trace/trace.c | 2 +- kernel/trace/trace.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index f667a78..16000c9 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -6230,7 +6230,7 @@ static int tracing_clock_show(struct seq_file *m, void *v) return 0; } -static int tracing_set_clock(struct trace_array *tr, const char *clockstr) +int tracing_set_clock(struct trace_array *tr, const char *clockstr) { int i; diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 52667dd..68153a8 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h @@ -288,6 +288,7 @@ enum { extern void trace_array_put(struct trace_array *tr); extern int tracing_set_time_stamp_abs(struct trace_array *tr, bool abs); +extern int tracing_set_clock(struct trace_array *tr, const char *clockstr); extern bool trace_clock_in_ns(struct trace_array *tr); -- 1.9.3 From 1584345849919397530@xxx Fri Nov 17 20:19:05 +0000 2017 X-GM-THRID: 1584345849919397530 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread