Linux-Trace-Devel Archive on
 help / color / Atom feed
* [PATCH] libtracefs: Remove leftover regcomp() in event_enable_disable()
@ 2021-07-02 11:43 Steven Rostedt
  0 siblings, 0 replies; only message in thread
From: Steven Rostedt @ 2021-07-02 11:43 UTC (permalink / raw)
  To: Linux Trace Devel

From: "Steven Rostedt (VMware)" <>

When adding a helper function to perform the regex compiling
(make_regex()), one place left the open coded compiling but still added
the wrapper function.


Reported-by: "Yordan Karadzhov (VMware)" <>
Fixes: de8592c0ef ("libtracefs: Fix tracefs_event_enable/disable() to not have open regex")
Signed-off-by: Steven Rostedt (VMware) <>
 src/tracefs-events.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/tracefs-events.c b/src/tracefs-events.c
index b6d3136..568bfe6 100644
--- a/src/tracefs-events.c
+++ b/src/tracefs-events.c
@@ -868,7 +868,6 @@ static int event_enable_disable(struct tracefs_instance *instance,
 	if (system) {
 		ret = make_regex(&system_re, system);
-		ret = regcomp(&system_re, system, REG_ICASE|REG_NOSUB);
 		if (ret < 0)
 			goto out_free;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-02 11:43 [PATCH] libtracefs: Remove leftover regcomp() in event_enable_disable() Steven Rostedt

Linux-Trace-Devel Archive on

Archives are clonable:
	git clone --mirror linux-trace-devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-trace-devel linux-trace-devel/ \
	public-inbox-index linux-trace-devel

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone