projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add syscall listing support
[lttng-tools.git]
/
src
/
common
/
kernel-ctl
/
kernel-ctl.c
diff --git
a/src/common/kernel-ctl/kernel-ctl.c
b/src/common/kernel-ctl/kernel-ctl.c
index 6cc962703e03b11d8475212c4007c12408a32645..a387b93bf87f0334365c3217c95537cf1487e29b 100644
(file)
--- a/
src/common/kernel-ctl/kernel-ctl.c
+++ b/
src/common/kernel-ctl/kernel-ctl.c
@@
-188,6
+188,7
@@
int kernctl_syscall_mask(int fd, char **syscall_mask, uint32_t *nr_bits)
}
array_alloc_len = ALIGN(kmask_len.len, 8) >> 3;
}
array_alloc_len = ALIGN(kmask_len.len, 8) >> 3;
+
kmask = zmalloc(sizeof(*kmask) + array_alloc_len);
if (!kmask) {
ret = -1;
kmask = zmalloc(sizeof(*kmask) + array_alloc_len);
if (!kmask) {
ret = -1;
@@
-200,7
+201,7
@@
int kernctl_syscall_mask(int fd, char **syscall_mask, uint32_t *nr_bits)
goto end;
}
goto end;
}
- new_mask = realloc(syscall_mask, array_alloc_len);
+ new_mask = realloc(
*
syscall_mask, array_alloc_len);
if (!new_mask) {
ret = -1;
goto end;
if (!new_mask) {
ret = -1;
goto end;
This page took
0.023837 seconds
and
4
git commands to generate.