Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S940192AbcKWRqM (ORCPT ); Wed, 23 Nov 2016 12:46:12 -0500 Received: from mga14.intel.com ([192.55.52.115]:15925 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S938712AbcKWRpB (ORCPT ); Wed, 23 Nov 2016 12:45:01 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,539,1473145200"; d="scan'208";a="1072652968" From: kan.liang@intel.com To: peterz@infradead.org, mingo@redhat.com, acme@kernel.org, linux-kernel@vger.kernel.org Cc: alexander.shishkin@linux.intel.com, tglx@linutronix.de, namhyung@kernel.org, jolsa@kernel.org, adrian.hunter@intel.com, wangnan0@huawei.com, mark.rutland@arm.com, andi@firstfloor.org, Kan Liang Subject: [PATCH 09/14] perf tools: make get_nsecs visible for buildin files Date: Wed, 23 Nov 2016 04:44:47 -0500 Message-Id: <1479894292-16277-10-git-send-email-kan.liang@intel.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1479894292-16277-1-git-send-email-kan.liang@intel.com> References: <1479894292-16277-1-git-send-email-kan.liang@intel.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1091 Lines: 37 From: Kan Liang get_nsecs will be used to get time in following patches. Signed-off-by: Kan Liang --- tools/perf/builtin-sched.c | 2 +- tools/perf/builtin.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c index fb34412..bf0d571e8 100644 --- a/tools/perf/builtin-sched.c +++ b/tools/perf/builtin-sched.c @@ -194,7 +194,7 @@ struct perf_sched { struct perf_sched_map map; }; -static u64 get_nsecs(void) +u64 get_nsecs(void) { struct timespec ts; diff --git a/tools/perf/builtin.h b/tools/perf/builtin.h index 0bcf68e..a564e15 100644 --- a/tools/perf/builtin.h +++ b/tools/perf/builtin.h @@ -12,6 +12,7 @@ const char *help_unknown_cmd(const char *cmd); void prune_packed_objects(int); int read_line_with_nul(char *buf, int size, FILE *file); int check_pager_config(const char *cmd); +u64 get_nsecs(void); int cmd_annotate(int argc, const char **argv, const char *prefix); int cmd_bench(int argc, const char **argv, const char *prefix); -- 2.5.5