]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: add mount for tracefs
authorNorbert Lange <nolange79@gmail.com>
Fri, 21 Feb 2020 14:08:13 +0000 (15:08 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 26 Feb 2020 22:40:44 +0000 (23:40 +0100)
Kernel 4.1 separated the tracing system from the debugfs,
actual documentation already points to a different path
that needs this new mount to exist.

the old sysfs path will still be an automount in the debugfs,
created by the kernel (for now).

Signed-off-by: Norbert Lange <nolange79@gmail.com>
units/meson.build
units/sys-kernel-tracing.mount [new file with mode: 0644]

index f3145a1099ec05a67b6a6a9d48ad1ed5f7a255c4..ea91f0cc9ea7df63e5e75d6a7e096e06ffd7d46f 100644 (file)
@@ -78,6 +78,8 @@ units = [
          'sysinit.target.wants/'],
         ['sys-kernel-debug.mount',              '',
          'sysinit.target.wants/'],
+        ['sys-kernel-tracing.mount',            '',
+         'sysinit.target.wants/'],
         ['sysinit.target',                      ''],
         ['syslog.socket',                       ''],
         ['system-systemd\\x2dcryptsetup.slice', 'HAVE_LIBCRYPTSETUP'],
diff --git a/units/sys-kernel-tracing.mount b/units/sys-kernel-tracing.mount
new file mode 100644 (file)
index 0000000..cb42b47
--- /dev/null
@@ -0,0 +1,23 @@
+#  SPDX-License-Identifier: LGPL-2.1+
+#
+#  This file is part of systemd.
+#
+#  systemd is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU Lesser General Public License as published by
+#  the Free Software Foundation; either version 2.1 of the License, or
+#  (at your option) any later version.
+
+[Unit]
+Description=Kernel Trace File System
+Documentation=https://www.kernel.org/doc/Documentation/trace/ftrace.txt
+Documentation=https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
+DefaultDependencies=no
+ConditionPathExists=/sys/kernel/tracing
+ConditionCapability=CAP_SYS_RAWIO
+Before=sysinit.target
+
+[Mount]
+What=tracefs
+Where=/sys/kernel/tracing
+Type=tracefs
+Options=nosuid,nodev,noexec