mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] scripts/tags.sh: Tag timer definitions
@ 2024-11-14 19:55 Costa Shulyupin
  2024-12-09  7:18 ` [RESEND PATCH] " Costa Shulyupin
  0 siblings, 1 reply; 3+ messages in thread
From: Costa Shulyupin @ 2024-11-14 19:55 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Costa Shulyupin, Wei Yang, Steven Rostedt,
	René Nyffenegger, linux-kernel

Tag id, defined with DEFINE_TIMER(id, ...)
and ignore usages of DEFINE_TIMER itself.

Signed-off-by: Costa Shulyupin <costa.shul@redhat.com>
---
 scripts/tags.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/tags.sh b/scripts/tags.sh
index b21236377998..7102f14fc775 100755
--- a/scripts/tags.sh
+++ b/scripts/tags.sh
@@ -188,6 +188,7 @@ regex_c=(
 	'/^PCI_OP_WRITE([[:space:]]*\(\w*\).*[1-4])/pci_bus_write_config_\1/'
 	'/\<DEFINE_\(RT_MUTEX\|MUTEX\|SEMAPHORE\|SPINLOCK\)([[:space:]]*\([[:alnum:]_]*\)/\2/v/'
 	'/\<DEFINE_\(RAW_SPINLOCK\|RWLOCK\|SEQLOCK\)([[:space:]]*\([[:alnum:]_]*\)/\2/v/'
+	'/\<DEFINE_TIMER(\([^,)]*\),/\1/'
 	'/\<DECLARE_\(RWSEM\|COMPLETION\)([[:space:]]*\([[:alnum:]_]\+\)/\2/v/'
 	'/\<DECLARE_BITMAP([[:space:]]*\([[:alnum:]_]\+\)/\1/v/'
 	'/\(^\|\s\)\(\|L\|H\)LIST_HEAD([[:space:]]*\([[:alnum:]_]*\)/\3/v/'
@@ -260,7 +261,7 @@ exuberant()
 	# identifiers to ignore by ctags
 	local ign=(
 		ACPI_EXPORT_SYMBOL
-		DEFINE_{TRACE,MUTEX}
+		DEFINE_{TRACE,MUTEX,TIMER}
 		EXPORT_SYMBOL EXPORT_SYMBOL_GPL
 		EXPORT_TRACEPOINT_SYMBOL EXPORT_TRACEPOINT_SYMBOL_GPL
 		____cacheline_aligned ____cacheline_aligned_in_smp
-- 
2.47.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RESEND PATCH] scripts/tags.sh: Tag timer definitions
  2024-11-14 19:55 [PATCH] scripts/tags.sh: Tag timer definitions Costa Shulyupin
@ 2024-12-09  7:18 ` Costa Shulyupin
  2024-12-09  7:28   ` Greg Kroah-Hartman
  0 siblings, 1 reply; 3+ messages in thread
From: Costa Shulyupin @ 2024-12-09  7:18 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Costa Shulyupin, Wei Yang, Steven Rostedt,
	René Nyffenegger, open list

Tag id, defined with DEFINE_TIMER(id, ...)
and ignore usages of DEFINE_TIMER itself.

Signed-off-by: Costa Shulyupin <costa.shul@redhat.com>
---
 scripts/tags.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/tags.sh b/scripts/tags.sh
index b21236377998..7102f14fc775 100755
--- a/scripts/tags.sh
+++ b/scripts/tags.sh
@@ -188,6 +188,7 @@ regex_c=(
        '/^PCI_OP_WRITE([[:space:]]*\(\w*\).*[1-4])/pci_bus_write_config_\1/'
        '/\<DEFINE_\(RT_MUTEX\|MUTEX\|SEMAPHORE\|SPINLOCK\)([[:space:]]*\([[:alnum:]_]*\)/\2/v/'
        '/\<DEFINE_\(RAW_SPINLOCK\|RWLOCK\|SEQLOCK\)([[:space:]]*\([[:alnum:]_]*\)/\2/v/'
+       '/\<DEFINE_TIMER(\([^,)]*\),/\1/'
        '/\<DECLARE_\(RWSEM\|COMPLETION\)([[:space:]]*\([[:alnum:]_]\+\)/\2/v/'
        '/\<DECLARE_BITMAP([[:space:]]*\([[:alnum:]_]\+\)/\1/v/'
        '/\(^\|\s\)\(\|L\|H\)LIST_HEAD([[:space:]]*\([[:alnum:]_]*\)/\3/v/'
@@ -260,7 +261,7 @@ exuberant()
        # identifiers to ignore by ctags
        local ign=(
                ACPI_EXPORT_SYMBOL
-               DEFINE_{TRACE,MUTEX}
+               DEFINE_{TRACE,MUTEX,TIMER}
                EXPORT_SYMBOL EXPORT_SYMBOL_GPL
                EXPORT_TRACEPOINT_SYMBOL EXPORT_TRACEPOINT_SYMBOL_GPL
                ____cacheline_aligned ____cacheline_aligned_in_smp
--
2.47.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RESEND PATCH] scripts/tags.sh: Tag timer definitions
  2024-12-09  7:18 ` [RESEND PATCH] " Costa Shulyupin
@ 2024-12-09  7:28   ` Greg Kroah-Hartman
  0 siblings, 0 replies; 3+ messages in thread
From: Greg Kroah-Hartman @ 2024-12-09  7:28 UTC (permalink / raw)
  To: Costa Shulyupin
  Cc: Wei Yang, Steven Rostedt, René Nyffenegger, open list

On Mon, Dec 09, 2024 at 09:18:14AM +0200, Costa Shulyupin wrote:
> Tag id, defined with DEFINE_TIMER(id, ...)
> and ignore usages of DEFINE_TIMER itself.

I'm sorry, but I don't understand this text, please be more descriptive
as to what you are doing and why.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-12-09  7:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-14 19:55 [PATCH] scripts/tags.sh: Tag timer definitions Costa Shulyupin
2024-12-09  7:18 ` [RESEND PATCH] " Costa Shulyupin
2024-12-09  7:28   ` Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®