diff options
author | Andi Kleen <ak@linux.intel.com> | 2019-03-05 17:47:53 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-03-11 17:56:02 +0300 |
commit | f8c856cb2c947f4fad0a2dff5e95cdcddb801303 (patch) | |
tree | 92940115a785364920289795783f92ce54f7faf1 /tools/perf/util/time-utils.h | |
parent | 52bab8868211b7c504146f6239e101421d4d125b (diff) | |
download | linux-f8c856cb2c947f4fad0a2dff5e95cdcddb801303.tar.xz |
perf time-utils: Add utility function to print time stamps in nanoseconds
Add a utility function to print nanosecond timestamps.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/20190305144758.12397-11-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/time-utils.h')
-rw-r--r-- | tools/perf/util/time-utils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/time-utils.h b/tools/perf/util/time-utils.h index b923de44e36f..72a42ea1d513 100644 --- a/tools/perf/util/time-utils.h +++ b/tools/perf/util/time-utils.h @@ -30,6 +30,7 @@ int perf_time__parse_for_ranges(const char *str, struct perf_session *session, int *range_size, int *range_num); int timestamp__scnprintf_usec(u64 timestamp, char *buf, size_t sz); +int timestamp__scnprintf_nsec(u64 timestamp, char *buf, size_t sz); int fetch_current_timestamp(char *buf, size_t sz); |