Skip to contentSkip to conversation

trace-cruncher: Fix PyFtrace_set_event_filter()

PATCH Superseded Yordan Karadzhov (VMware) 1 participant 1 message Sep 17, 2021

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 trace-cruncher: Fix PyFtrace_set_event_filter()

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)
---
 src/ftracepy-utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/ftracepy-utils.c +1 -1
index bddc4fc..302fffc 100644
@@ -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,
Signature · 1 line
2.30.2