projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: All perror turned into PERROR to show file and line number
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
modprobe.c
diff --git
a/src/bin/lttng-sessiond/modprobe.c
b/src/bin/lttng-sessiond/modprobe.c
index 7b19b004a00029b43005d2802b02e5ebe8d33569..65032e41409637338eadea6a53951e42db4d0d9c 100644
(file)
--- a/
src/bin/lttng-sessiond/modprobe.c
+++ b/
src/bin/lttng-sessiond/modprobe.c
@@
-50,6
+50,7
@@
const struct kern_modules_param kern_modules_list[] = {
{ "lttng-probe-sched", 0 },
{ "lttng-probe-signal", 0 },
{ "lttng-probe-statedump", 0 },
{ "lttng-probe-sched", 0 },
{ "lttng-probe-signal", 0 },
{ "lttng-probe-statedump", 0 },
+ { "lttng-probe-timer", 0 },
};
/*
};
/*
@@
-100,7
+101,7
@@
void modprobe_remove_lttng_data(void)
"/sbin/modprobe -r -q %s",
kern_modules_list[i].name);
if (ret < 0) {
"/sbin/modprobe -r -q %s",
kern_modules_list[i].name);
if (ret < 0) {
-
perror
("snprintf modprobe -r");
+
PERROR
("snprintf modprobe -r");
goto error;
}
modprobe[sizeof(modprobe) - 1] = '\0';
goto error;
}
modprobe[sizeof(modprobe) - 1] = '\0';
@@
-181,7
+182,7
@@
int modprobe_lttng_data(void)
kern_modules_list[i].required ? "" : "-q ",
kern_modules_list[i].name);
if (ret < 0) {
kern_modules_list[i].required ? "" : "-q ",
kern_modules_list[i].name);
if (ret < 0) {
-
perror
("snprintf modprobe");
+
PERROR
("snprintf modprobe");
goto error;
}
modprobe[sizeof(modprobe) - 1] = '\0';
goto error;
}
modprobe[sizeof(modprobe) - 1] = '\0';
This page took
0.026025 seconds
and
4
git commands to generate.