projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sched instrumentation: rename "pid" fields in sched_process_exec
[lttng-modules.git]
/
instrumentation
/
events
/
lttng-module
/
sched.h
diff --git
a/instrumentation/events/lttng-module/sched.h
b/instrumentation/events/lttng-module/sched.h
index 23e4955ac7b4bfb7a9c86b7e9f2eb5087708655d..005f3d141e1f7bca6d6ccfe83dd29d94986c6057 100644
(file)
--- a/
instrumentation/events/lttng-module/sched.h
+++ b/
instrumentation/events/lttng-module/sched.h
@@
-313,6
+313,7
@@
TRACE_EVENT(sched_process_fork,
__entry->child_comm, __entry->child_tid)
)
__entry->child_comm, __entry->child_tid)
)
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0))
/*
* Tracepoint for exec:
*/
/*
* Tracepoint for exec:
*/
@@
-325,19
+326,20
@@
TRACE_EVENT(sched_process_exec,
TP_STRUCT__entry(
__string( filename, bprm->filename )
TP_STRUCT__entry(
__string( filename, bprm->filename )
- __field( pid_t,
p
id )
- __field( pid_t, old_
p
id )
+ __field( pid_t,
t
id )
+ __field( pid_t, old_
t
id )
),
TP_fast_assign(
tp_strcpy(filename, bprm->filename)
),
TP_fast_assign(
tp_strcpy(filename, bprm->filename)
- tp_assign(
p
id, p->pid)
- tp_assign(old_
p
id, old_pid)
+ tp_assign(
t
id, p->pid)
+ tp_assign(old_
t
id, old_pid)
),
),
- TP_printk("filename=%s
pid=%d old_p
id=%d", __get_str(filename),
- __entry->
pid, __entry->old_p
id)
+ TP_printk("filename=%s
tid=%d old_t
id=%d", __get_str(filename),
+ __entry->
tid, __entry->old_t
id)
)
)
+#endif
/*
* XXX the below sched_stat tracepoints only apply to SCHED_OTHER/BATCH/IDLE
/*
* XXX the below sched_stat tracepoints only apply to SCHED_OTHER/BATCH/IDLE
This page took
0.024416 seconds
and
4
git commands to generate.