diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-08-05 14:40:30 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-08-23 14:37:33 -0400 |
commit | bd48c63eb0afc28b29fb342f215cdd77b995c02e (patch) | |
tree | dbbd787a2854cd2a973590a618a19a327bb31a94 /tools/perf/util/scripting-engines/trace-event-perl.c | |
parent | ce90c12d2453aa6be743719bb0a5d4040b92700f (diff) |
tools: Introduce tools/include/linux/time64.h for *SEC_PER_*SEC macros
And remove it from tools/perf/{perf,util}.h, making code that needs
these macros to include linux/time64.h instead, to match how this is
used in the kernel sources.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-e69fc1pvkgt57yvxqt6eunyg@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
-rw-r--r-- | tools/perf/util/scripting-engines/trace-event-perl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/perf/util/scripting-engines/trace-event-perl.c b/tools/perf/util/scripting-engines/trace-event-perl.c index 5d1eb1ccd96c..e55a132f69b7 100644 --- a/tools/perf/util/scripting-engines/trace-event-perl.c +++ b/tools/perf/util/scripting-engines/trace-event-perl.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <ctype.h> | 25 | #include <ctype.h> |
26 | #include <errno.h> | 26 | #include <errno.h> |
27 | #include <linux/bitmap.h> | 27 | #include <linux/bitmap.h> |
28 | #include <linux/time64.h> | ||
28 | 29 | ||
29 | #include "../util.h" | 30 | #include "../util.h" |
30 | #include <EXTERN.h> | 31 | #include <EXTERN.h> |
@@ -359,8 +360,8 @@ static void perl_process_tracepoint(struct perf_sample *sample, | |||
359 | if (!test_and_set_bit(event->id, events_defined)) | 360 | if (!test_and_set_bit(event->id, events_defined)) |
360 | define_event_symbols(event, handler, event->print_fmt.args); | 361 | define_event_symbols(event, handler, event->print_fmt.args); |
361 | 362 | ||
362 | s = nsecs / NSECS_PER_SEC; | 363 | s = nsecs / NSEC_PER_SEC; |
363 | ns = nsecs - s * NSECS_PER_SEC; | 364 | ns = nsecs - s * NSEC_PER_SEC; |
364 | 365 | ||
365 | scripting_context->event_data = data; | 366 | scripting_context->event_data = data; |
366 | scripting_context->pevent = evsel->tp_format->pevent; | 367 | scripting_context->pevent = evsel->tp_format->pevent; |