X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=instrumentation%2Fevents%2Flttng-module%2Flttng-statedump.h;h=5ba7df20d49bd6b786bda24021ec97d9d3998018;hb=e7a0ca7205fd4be7c829d171baa8823fe4784c90;hp=b65a1c2594e41b66f787d49f21806a752d61bd01;hpb=d2a927acb6018b445a2b254b7aa11e63acb77858;p=lttng-modules.git diff --git a/instrumentation/events/lttng-module/lttng-statedump.h b/instrumentation/events/lttng-module/lttng-statedump.h index b65a1c25..5ba7df20 100644 --- a/instrumentation/events/lttng-module/lttng-statedump.h +++ b/instrumentation/events/lttng-module/lttng-statedump.h @@ -40,8 +40,9 @@ LTTNG_TRACEPOINT_EVENT(lttng_statedump_end, LTTNG_TRACEPOINT_EVENT(lttng_statedump_process_state, TP_PROTO(struct lttng_session *session, struct task_struct *p, - int type, int mode, int submode, int status), - TP_ARGS(session, p, type, mode, submode, status), + int type, int mode, int submode, int status, + struct files_struct *files), + TP_ARGS(session, p, type, mode, submode, status, files), TP_FIELDS( ctf_integer(pid_t, tid, p->pid) ctf_integer(pid_t, pid, p->tgid) @@ -60,6 +61,7 @@ LTTNG_TRACEPOINT_EVENT(lttng_statedump_process_state, ctf_integer(int, submode, submode) ctf_integer(int, status, status) ctf_integer(unsigned int, cpu, task_cpu(p)) + ctf_integer_hex(struct files_struct *, file_table_address, files) ) ) @@ -179,11 +181,12 @@ LTTNG_TRACEPOINT_EVENT(lttng_statedump_process_uts_ns, LTTNG_TRACEPOINT_EVENT(lttng_statedump_file_descriptor, TP_PROTO(struct lttng_session *session, - struct task_struct *p, int fd, const char *filename, + struct files_struct *files, + int fd, const char *filename, unsigned int flags, fmode_t fmode), - TP_ARGS(session, p, fd, filename, flags, fmode), + TP_ARGS(session, files, fd, filename, flags, fmode), TP_FIELDS( - ctf_integer(pid_t, pid, p->tgid) + ctf_integer_hex(struct files_struct *, file_table_address, files) ctf_integer(int, fd, fd) ctf_integer_oct(unsigned int, flags, flags) ctf_integer_hex(fmode_t, fmode, fmode) @@ -237,6 +240,7 @@ LTTNG_TRACEPOINT_EVENT(lttng_statedump_interrupt, ctf_integer(unsigned int, irq, irq) ctf_string(name, chip_name) ctf_string(action, action->name ? : "") + ctf_integer(pid_t, tid, action->thread ? action->thread->pid : 0) ) )