Received: by 10.223.164.202 with SMTP id h10csp681889wrb; Thu, 9 Nov 2017 12:37:16 -0800 (PST) X-Google-Smtp-Source: ABhQp+QIkJsPIgAC+Lacs50W17RtVaANELwBKx9A8a9iv46m5fcxS2ia9NmGVd+9DSsLwz9E3xdG X-Received: by 10.98.220.29 with SMTP id t29mr1664546pfg.25.1510259836790; Thu, 09 Nov 2017 12:37:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510259836; cv=none; d=google.com; s=arc-20160816; b=DKDKp09t0dYMimXRp/vTYXyVk1yH4M4Eq21cDAzIExrs+ht2ohUg83KroOMDIVdymo m/fpZGW2871+sOPqRglq7SDfbSp/UyLQzl18LlqVQGdzc1UyXf6tuWrOxPKWGVQh4+Za QyN9r2QjNRM06801IQA4dJtEYsWo2bcSd6gunIFfDYv8vLeNP5Zrvzdq0YNvaFXuNlLr eed4pM2rOfLPiMu2NTNa5VUfbnIGDFFjpQBpPooBMDZLOoLPxTyyn21+rWrjOQmJmZJj ufv5JW607zboz6/e4IB/hoALksAl6zeb63mthPVPd7sYjFMeIpHZ49OgDQ3H+NaGtTGo T46g== 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=YK6GImwd8RU4gBuob+3vMP3jr/4CSZTWsg5zCsyC79uRFyxVZ/xNq5jnms5qr1jDZW +ikFquPIWQAGCmUWruOIusoim295Qy4t5TWnh8c+hmfU6aNU/ebRvMCx8IIe0kXdGU6E 07ePRa3TAILmAwPqGps5Fag/LpI6vJofoERgOby/1fLe4w/42jgYjQvv8BnfXLX4W1Un nfoLhdUpBxJe6AIzldG1lZkXRDcxJkBMQtayyA4GYOzzyzKpkbR9qOG6sKZ1Y0rmu003 4eSEjht7TR5RAz//FC1wSVU6+fZge5uNHoQBYGWWyX+SLmYClQyQ1PBWU+qJHX/uImMl Kg5w== 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 n9si7030467pgs.93.2017.11.09.12.37.05; Thu, 09 Nov 2017 12:37:16 -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 S1755297AbdKIUgO (ORCPT + 83 others); Thu, 9 Nov 2017 15:36:14 -0500 Received: from mga04.intel.com ([192.55.52.120]:13031 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755232AbdKIUgC (ORCPT ); Thu, 9 Nov 2017 15:36:02 -0500 Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Nov 2017 12:36:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,370,1505804400"; d="scan'208";a="148048125" Received: from dkusalov-mobl4.amr.corp.intel.com (HELO localhost) ([10.254.117.34]) by orsmga004.jf.intel.com with ESMTP; 09 Nov 2017 12:36:00 -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, linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org, Tom Zanussi Subject: [PATCH v5 33/37] tracing: Make tracing_set_clock() non-static Date: Thu, 9 Nov 2017 14:34:04 -0600 Message-Id: <3d80060210802864d010ff85ac2bbd7841a571c3.1510252666.git.tom.zanussi@linux.intel.com> 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 1583447836551029972@xxx Tue Nov 07 22:25:33 +0000 2017 X-GM-THRID: 1583447836551029972 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread