projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: liblttng-ctl: non-packed structure used for tracker serialization
[lttng-tools.git]
/
src
/
bin
/
lttng-crash
/
lttng-crash.cpp
diff --git
a/src/bin/lttng-crash/lttng-crash.cpp
b/src/bin/lttng-crash/lttng-crash.cpp
index 3f5ea3759a668a8dc5d6e43e58b19a8471c2766d..f63ececc09d861049342883c65a4afb86df263e3 100644
(file)
--- a/
src/bin/lttng-crash/lttng-crash.cpp
+++ b/
src/bin/lttng-crash/lttng-crash.cpp
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 2011
David Goulet <david.goulet@polymtl.ca>
+ * Copyright (C) 2011
EfficiOS Inc.
* Copyright (C) 2014 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
* SPDX-License-Identifier: GPL-2.0-only
* Copyright (C) 2014 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
* SPDX-License-Identifier: GPL-2.0-only
@@
-20,15
+20,15
@@
#include <unistd.h>
#include <ctype.h>
#include <dirent.h>
#include <unistd.h>
#include <ctype.h>
#include <dirent.h>
-#include <common/compat/endian.h>
+#include <common/compat/endian.h
pp
>
#include <inttypes.h>
#include <stdbool.h>
#include <inttypes.h>
#include <stdbool.h>
-#include <version.h>
+#include <version.h
pp
>
#include <lttng/lttng.h>
#include <lttng/lttng.h>
-#include <common/common.h>
-#include <common/spawn-viewer.h>
-#include <common/utils.h>
+#include <common/common.h
pp
>
+#include <common/spawn-viewer.h
pp
>
+#include <common/utils.h
pp
>
#define COPY_BUFLEN 4096
#define RB_CRASH_DUMP_ABI_LEN 32
#define COPY_BUFLEN 4096
#define RB_CRASH_DUMP_ABI_LEN 32
@@
-781,7
+781,7
@@
int copy_crash_data(const struct lttng_crash_layout *layout, int fd_dest,
return ret;
}
src_file_len = layout->mmap_length;
return ret;
}
src_file_len = layout->mmap_length;
- buf =
(char *) zmalloc
(src_file_len);
+ buf =
calloc<char>
(src_file_len);
if (!buf) {
return -1;
}
if (!buf) {
return -1;
}
@@
-1129,7
+1129,7
@@
int delete_dir_recursive(const char *path)
}
if (S_ISDIR(st.st_mode)) {
}
if (S_ISDIR(st.st_mode)) {
- char *subpath =
(char *) zmalloc
(PATH_MAX);
+ char *subpath =
calloc<char>
(PATH_MAX);
if (!subpath) {
PERROR("zmalloc path");
if (!subpath) {
PERROR("zmalloc path");
This page took
0.025239 seconds
and
4
git commands to generate.