rv: Add license identifiers to monitor files
authorGabriele Monaco <gmonaco@redhat.com>
Tue, 18 Feb 2025 12:31:07 +0000 (13:31 +0100)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 4 Mar 2025 17:11:08 +0000 (12:11 -0500)
Some monitor files like the main header and the Kconfig are missing the
license identifier.

Add it to those and make sure the automatic generation script includes
the line in newly created monitors.

Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Juri Lelli <juri.lelli@redhat.com>
Link: https://lore.kernel.org/20250218123121.253551-3-gmonaco@redhat.com
Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/rv/monitors/wip/Kconfig
kernel/trace/rv/monitors/wip/wip.h
kernel/trace/rv/monitors/wwnr/Kconfig
kernel/trace/rv/monitors/wwnr/wwnr.h
tools/verification/dot2/dot2k.py
tools/verification/dot2/dot2k_templates/Kconfig

index 3ef664b5cd903d1a75f1113732a576c56edcf98d..e464b9294865b56876aca589815289928a19a1b4 100644 (file)
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
 config RV_MON_WIP
        depends on RV
        depends on PREEMPT_TRACER
index 2e373f2c65ed74c8639f9d703b7c1d40c78ffd9f..c7193748bf3691042d38039aaddb8e7068a2c4b4 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
 /*
  * Automatically generated C representation of wip automaton
  * For further information about this format, see kernel documentation:
index ee741aa6d6b895ac9b9896c199e12cf5b756045f..d3bfc20037db9c807d78e7a847e6e9dd719e0f41 100644 (file)
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
 config RV_MON_WWNR
        depends on RV
        select DA_MON_EVENTS_ID
index d0d9c4b8121b5162e92725017dd39d1f8a76c7ce..0a59d23edf610b14becd1537afccfce908740217 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
 /*
  * Automatically generated C representation of wwnr automaton
  * For further information about this format, see kernel documentation:
index 7547eb290b7df5226a0c8c9e546c34faa6fec33b..153cc14bcca454a6afb31b4db1d387c5e195cd74 100644 (file)
@@ -160,6 +160,7 @@ class dot2k(Dot2c):
 
     def fill_model_h_header(self):
         buff = []
+        buff.append("/* SPDX-License-Identifier: GPL-2.0 */")
         buff.append("/*")
         buff.append(" * Automatically generated C representation of %s automaton" % (self.name))
         buff.append(" * For further information about this format, see kernel documentation:")
index 90cdc1e9379e14a6b92256de5040ebd90b8e926f..03100eda17075664d2a184eaf1fc4f2790b5ec94 100644 (file)
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
 config RV_MON_%%MODEL_NAME_UP%%
        depends on RV
        select %%MONITOR_CLASS_TYPE%%