]> www.infradead.org Git - users/jedix/linux-maple.git/commit
verification/dot2k: Unify main.c templates
authorGabriele Monaco <gmonaco@redhat.com>
Fri, 27 Dec 2024 14:47:46 +0000 (15:47 +0100)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Fri, 27 Dec 2024 17:34:52 +0000 (12:34 -0500)
commitca08e071c59d96cb1db19b20ba70e9db7b9d5791
tree5cda1a1058961efb93870bb9d0286b471fc8fd0a
parent6c432b56a16a0727561211a137f37ec47f96f1d0
verification/dot2k: Unify main.c templates

dot2k has 3 templates, one per monitor type, but the only difference
among them is the `DECLARE_DA_MON_*` call, keeping 3 almost identical
templates requires more work whenever we introduce a change.

This patch removes the 3 dot2k templates and replaces them with a
generic one, we then adjust the model type from the script.

Cc: Juri Lelli <juri.lelli@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: John Kacur <jkacur@redhat.com>
Link: https://lore.kernel.org/20241227144752.362911-3-gmonaco@redhat.com
Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
tools/verification/dot2/dot2k.py
tools/verification/dot2/dot2k_templates/main.c [moved from tools/verification/dot2/dot2k_templates/main_global.c with 97% similarity]
tools/verification/dot2/dot2k_templates/main_per_cpu.c [deleted file]
tools/verification/dot2/dot2k_templates/main_per_task.c [deleted file]