Fix: sessiond: ODR violation results in memory corruption
[lttng-tools.git] / src / bin / lttng-crash / lttng-crash.cpp
index f63ececc09d861049342883c65a4afb86df263e3..3987a60ddac334d2e75fabf213102c7d4d1ea0f6 100644 (file)
@@ -98,6 +98,7 @@ enum rb_modes {
        RING_BUFFER_DISCARD = 1,        /* Discard when buffer full */
 };
 
+namespace {
 struct crash_abi_unknown {
        uint8_t magic[RB_CRASH_DUMP_ABI_MAGIC_LEN];
        uint64_t mmap_length;   /* Overall length of crash record */
@@ -177,6 +178,7 @@ struct lttng_crash_layout {
        uint64_t num_subbuf;    /* Number of sub-buffers for writer */
        uint32_t mode;          /* Buffer mode: 0: overwrite, 1: discard */
 };
+} /* namespace */
 
 /* Variables */
 static const char *progname;
This page took 0.023461 seconds and 4 git commands to generate.