Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1528642
| From | kan.liang@intel.com |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 09/14] perf tools: make get_nsecs visible for buildin files |
| Date | 2016-11-23 18:50 +0100 |
| Message-ID | <sGJQd-7SF-3@gated-at.bofh.it> (permalink) |
| References | <sGJQd-7SF-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Kan Liang <kan.liang@intel.com>
get_nsecs will be used to get time in following patches.
Signed-off-by: Kan Liang <kan.liang@intel.com>
---
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
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH 09/14] perf tools: make get_nsecs visible for buildin files kan.liang@intel.com - 2016-11-23 18:50 +0100
csiph-web