[ltt-dev] TSC timestamp in textDump module

Mathieu Desnoyers compudj at krystal.dyndns.org
Mon Sep 8 10:24:01 EDT 2008


* Gian Lorenzo Meocci (glmeocci at gmail.com) wrote:
> Hi all,
> 
> Is possible read TSC from events in textDump module???
> 
> Now I have this:
> fs_exec: 4965.994235798 (/tmp/trace1/control/processes_1), 18530,
> 18530, ./x264, , 5204, 0x0, SYSCALL { filename = "./x264" }
> 
> I want to see something like that:
> fs_exec: 11918455689835 (/tmp/trace1/control/processes_1), 18530,
> 18530, ./x264, , 5204, 0x0, SYSCALL { filename = "./x264" }
> 
> thanks,
> 

Hi Gian,

See
lttv/lttv/print.c

lttv_event_to_string()


    g_string_append_printf(s,"%s: %ld.%09ld (%s%s_%u)",
        g_quark_to_string(info->name),
        (long)time.tv_sec, time.tv_nsec,
        g_quark_to_string(
                ltt_trace_name(ltt_tracefile_get_trace(tfs->parent.tf))),
        g_quark_to_string(ltt_tracefile_name(tfs->parent.tf)),
        cpu);

You could try to add a new option to textdump which outputs :

g_string_append_printf(s, "... %lu ...", ltt_event_cycle_count(e));

Mathieu

> -- 
> Gian Lorenzo Meocci
> http://www.meocci.it
> 
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> 

-- 
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68




More information about the lttng-dev mailing list