From 5c33bde8fc916b1cfe29142c6ad0cfa5bce3d4ae Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 25 Aug 2011 17:14:49 -0400 Subject: [PATCH] Add ppid field to registration Signed-off-by: Mathieu Desnoyers --- libust/lttng-ust-comm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libust/lttng-ust-comm.c b/libust/lttng-ust-comm.c index 4bc13ae..c1b520a 100644 --- a/libust/lttng-ust-comm.c +++ b/libust/lttng-ust-comm.c @@ -122,6 +122,7 @@ int register_app_to_sessiond(int socket) uint32_t major; uint32_t minor; pid_t pid; + pid_t ppid; uid_t uid; char name[16]; /* process name */ } reg_msg; @@ -129,6 +130,7 @@ int register_app_to_sessiond(int socket) reg_msg.major = LTTNG_UST_COMM_VERSION_MAJOR; reg_msg.minor = LTTNG_UST_COMM_VERSION_MINOR; reg_msg.pid = getpid(); + reg_msg.ppid = getppid(); reg_msg.uid = getuid(); prctl_ret = prctl(PR_GET_NAME, (unsigned long) reg_msg.name, 0, 0, 0); if (prctl_ret) { -- 2.34.1