Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1528642 > unrolled thread
| Started by | kan.liang@intel.com |
|---|---|
| First post | 2016-11-23 18:50 +0100 |
| Last post | 2016-11-23 18:50 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 09/14] perf tools: make get_nsecs visible for buildin files kan.liang@intel.com - 2016-11-23 18:50 +0100
| From | kan.liang@intel.com |
|---|---|
| Date | 2016-11-23 18:50 +0100 |
| Subject | [PATCH 09/14] perf tools: make get_nsecs visible for buildin files |
| Message-ID | <sGJQd-7SF-3@gated-at.bofh.it> |
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 top | Article view | linux.kernel
csiph-web