All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] trace-cruncher: Fix PyFtrace_set_event_filter()
@ 2021-09-17  7:48 Yordan Karadzhov (VMware)
  0 siblings, 0 replies; only message in thread
From: Yordan Karadzhov (VMware) @ 2021-09-17  7:48 UTC (permalink / raw)
  To: linux-trace-devel; +Cc: Yordan Karadzhov (VMware)

The Python method requires 4 arguments, however the format
descriptor of the arguments describes only 3.

Fixes: 38bdaec (trace-cruncher: Refactor the way libtracefs instances are handled)
Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com>
---
 src/ftracepy-utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ftracepy-utils.c b/src/ftracepy-utils.c
index bddc4fc..302fffc 100644
--- a/src/ftracepy-utils.c
+++ b/src/ftracepy-utils.c
@@ -1316,7 +1316,7 @@ PyObject *PyFtrace_set_event_filter(PyObject *self, PyObject *args,
 	static char *kwlist[] = {"system", "event", "filter", "instance", NULL};
 	if (!PyArg_ParseTupleAndKeywords(args,
 					 kwargs,
-					 "ssO|)",
+					 "sss|O)",
 					 kwlist,
 					 &system,
 					 &event,
-- 
2.30.2


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

only message in thread, other threads:[~2021-09-17  7:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-17  7:48 [PATCH] trace-cruncher: Fix PyFtrace_set_event_filter() Yordan Karadzhov (VMware)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.