[lttng-dev] [PATCH lttng-modules] sched instrumentation: rename "pid" fields in sched_process_exec
Mathieu Desnoyers
mathieu.desnoyers at efficios.com
Sun Nov 25 16:14:35 EST 2012
* Andrew Gabbasov (andrew_gabbasov at mentor.com) wrote:
> Rename "pid" to "tid" fields in new code, similarly to what was
> done earlier for all sched tracepoints.
>
> Signed-off-by: Andrew Gabbasov <andrew_gabbasov at mentor.com>
Merged, thanks!
Mathieu
> ---
> instrumentation/events/lttng-module/sched.h | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/instrumentation/events/lttng-module/sched.h b/instrumentation/events/lttng-module/sched.h
> index ca46ed0..005f3d1 100644
> --- a/instrumentation/events/lttng-module/sched.h
> +++ b/instrumentation/events/lttng-module/sched.h
> @@ -326,18 +326,18 @@ TRACE_EVENT(sched_process_exec,
>
> TP_STRUCT__entry(
> __string( filename, bprm->filename )
> - __field( pid_t, pid )
> - __field( pid_t, old_pid )
> + __field( pid_t, tid )
> + __field( pid_t, old_tid )
> ),
>
> TP_fast_assign(
> tp_strcpy(filename, bprm->filename)
> - tp_assign(pid, p->pid)
> - tp_assign(old_pid, old_pid)
> + tp_assign(tid, p->pid)
> + tp_assign(old_tid, old_pid)
> ),
>
> - TP_printk("filename=%s pid=%d old_pid=%d", __get_str(filename),
> - __entry->pid, __entry->old_pid)
> + TP_printk("filename=%s tid=%d old_tid=%d", __get_str(filename),
> + __entry->tid, __entry->old_tid)
> )
> #endif
>
> --
> 1.7.10.4
>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
--
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com
More information about the lttng-dev
mailing list