From a937f384c9da493e526ad896ef4e8054526d2941 Mon Sep 17 00:00:00 2001 From: Peter Zijlstra Date: Mon, 6 Jan 2025 11:26:48 +0100 Subject: [PATCH] cleanup, tags: Create tags for the cleanup primitives Oleg reported that it is hard to find the definition of things like: __free(argv) without having to do 'git grep "DEFINE_FREE(argv,"'. Add tag generation for the various macros in cleanup.h. Notably 'DEFINE_FREE(argv, ...)' will now generate a 'cleanup_argv' tag, while all the others, eg. 'DEFINE_GUARD(mutex, ...)' will generate 'class_mutex' like tags. Reported-by: Oleg Nesterov Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20250106102647.GB20870@noisy.programming.kicks-ass.net --- scripts/tags.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/tags.sh b/scripts/tags.sh index b212363779980..7939aea731f1d 100755 --- a/scripts/tags.sh +++ b/scripts/tags.sh @@ -212,6 +212,13 @@ regex_c=( '/^SEQCOUNT_LOCKTYPE(\([^,]*\),[[:space:]]*\([^,]*\),[^)]*)/seqcount_\2_init/' '/^\