projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Send bitness upon registration
[lttng-ust.git]
/
liblttng-ust
/
lttng-ust-comm.c
diff --git
a/liblttng-ust/lttng-ust-comm.c
b/liblttng-ust/lttng-ust-comm.c
index 2f9729420e17b3db79f2ab713c84c0be7c94b073..0b53269d60a75e2c63abfbe3ddc839670e97cf92 100644
(file)
--- a/
liblttng-ust/lttng-ust-comm.c
+++ b/
liblttng-ust/lttng-ust-comm.c
@@
-37,6
+37,7
@@
#include <signal.h>
#include <urcu/uatomic.h>
#include <urcu/futex.h>
#include <signal.h>
#include <urcu/uatomic.h>
#include <urcu/futex.h>
+#include <urcu/compiler.h>
#include <lttng/ust-events.h>
#include <lttng/ust-abi.h>
#include <lttng/ust-events.h>
#include <lttng/ust-abi.h>
@@
-166,6
+167,7
@@
int register_app_to_sessiond(int socket)
pid_t ppid;
uid_t uid;
gid_t gid;
pid_t ppid;
uid_t uid;
gid_t gid;
+ uint32_t bits_per_long;
char name[16]; /* process name */
} reg_msg;
char name[16]; /* process name */
} reg_msg;
@@
-175,6
+177,7
@@
int register_app_to_sessiond(int socket)
reg_msg.ppid = getppid();
reg_msg.uid = getuid();
reg_msg.gid = getgid();
reg_msg.ppid = getppid();
reg_msg.uid = getuid();
reg_msg.gid = getgid();
+ reg_msg.bits_per_long = CAA_BITS_PER_LONG;
prctl_ret = prctl(PR_GET_NAME, (unsigned long) reg_msg.name, 0, 0, 0);
if (prctl_ret) {
ERR("Error executing prctl");
prctl_ret = prctl(PR_GET_NAME, (unsigned long) reg_msg.name, 0, 0, 0);
if (prctl_ret) {
ERR("Error executing prctl");
This page took
0.0384060000000001 seconds
and
4
git commands to generate.