trace_output.c (f71130de5c7fba92faf3901784714e37a234c08f) trace_output.c (12883efb670c28dff57dcd7f4f995a1ffe153b2d)
1/*
2 * trace_output.c
3 *
4 * Copyright (C) 2008 Red Hat Inc, Steven Rostedt <srostedt@redhat.com>
5 *
6 */
7
8#include <linux/module.h>

--- 629 unchanged lines hidden (view full) ---

638
639static unsigned long preempt_mark_thresh_us = 100;
640
641static int
642lat_print_timestamp(struct trace_iterator *iter, u64 next_ts)
643{
644 unsigned long verbose = trace_flags & TRACE_ITER_VERBOSE;
645 unsigned long in_ns = iter->iter_flags & TRACE_FILE_TIME_IN_NS;
1/*
2 * trace_output.c
3 *
4 * Copyright (C) 2008 Red Hat Inc, Steven Rostedt <srostedt@redhat.com>
5 *
6 */
7
8#include <linux/module.h>

--- 629 unchanged lines hidden (view full) ---

638
639static unsigned long preempt_mark_thresh_us = 100;
640
641static int
642lat_print_timestamp(struct trace_iterator *iter, u64 next_ts)
643{
644 unsigned long verbose = trace_flags & TRACE_ITER_VERBOSE;
645 unsigned long in_ns = iter->iter_flags & TRACE_FILE_TIME_IN_NS;
646 unsigned long long abs_ts = iter->ts - iter->tr->time_start;
646 unsigned long long abs_ts = iter->ts - iter->trace_buffer->time_start;
647 unsigned long long rel_ts = next_ts - iter->ts;
648 struct trace_seq *s = &iter->seq;
649
650 if (in_ns) {
651 abs_ts = ns2usecs(abs_ts);
652 rel_ts = ns2usecs(rel_ts);
653 }
654

--- 728 unchanged lines hidden ---
647 unsigned long long rel_ts = next_ts - iter->ts;
648 struct trace_seq *s = &iter->seq;
649
650 if (in_ns) {
651 abs_ts = ns2usecs(abs_ts);
652 rel_ts = ns2usecs(rel_ts);
653 }
654

--- 728 unchanged lines hidden ---