Fix a typo in lttng-probe-module name
[lttng-tools.git] / src / bin / lttng-sessiond / modprobe.c
index a87d7075489d1cd640a5b91e23872abecb8f64fe..8e5cc949ea7e067c14937f27ded70d06e8b0e7b5 100644 (file)
@@ -1,18 +1,18 @@
 /*
  * Copyright (C) 2011 - David Goulet <dgoulet@efficios.com>
  *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation; only version 2 of the License.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License, version 2 only,
+ * as published by the Free Software Foundation.
  *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
- * more details.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- * Place - Suite 330, Boston, MA  02111-1307, USA.
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
 #define _GNU_SOURCE
@@ -44,13 +44,30 @@ const struct kern_modules_param kern_modules_list[] = {
        { "lttng-ring-buffer-metadata-mmap-client", 1 },
        { "lttng-probe-lttng", 1 },
        { "lttng-types", 0 },
+       { "lttng-probe-asoc", 0 },
        { "lttng-probe-block", 0 },
+       { "lttng-probe-ext3", 0 },
+       { "lttng-probe-gpio", 0 },
        { "lttng-probe-irq", 0 },
+       { "lttng-probe-jbd", 0 },
+       { "lttng-probe-jbd2", 0 },
+       { "lttng-probe-kmem", 0 },
        { "lttng-probe-kvm", 0 },
+       { "lttng-probe-lock", 0 },
+       { "lttng-probe-module", 0 },
+       { "lttng-probe-napi", 0 },
+       { "lttng-probe-net", 0 },
+       { "lttng-probe-power", 0 },
+       { "lttng-probe-regulator", 0 },
        { "lttng-probe-sched", 0 },
+       { "lttng-probe-scsi", 0 },
        { "lttng-probe-signal", 0 },
+       { "lttng-probe-skb", 0 },
+       { "lttng-probe-sock", 0 },
        { "lttng-probe-statedump", 0 },
        { "lttng-probe-timer", 0 },
+       { "lttng-probe-udp", 0 },
+       { "lttng-probe-vmscan", 0 },
 };
 
 /*
@@ -101,7 +118,7 @@ void modprobe_remove_lttng_data(void)
                                "/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';
@@ -182,7 +199,7 @@ int modprobe_lttng_data(void)
                                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';
This page took 0.024204 seconds and 4 git commands to generate.