On Mon, 17 Jan 2022 20:12:31 -0500 Steven Rostedt <rostedt@xxxxxxxxxxx> wrote: > +++ b/src/ftracepy.c > @@ -372,11 +372,21 @@ static PyMethodDef ftracepy_methods[] = { > METH_VARARGS | METH_KEYWORDS, > "Define a kretprobe." > }, > + {"reset_affinity", > + (PyCFunction) PyFtrace_reset_affinity, > + METH_VARARGS | METH_KEYWORDS, > + "Set an instance tracing affinity to all CPUs" > + }, > {"hist", > (PyCFunction) PyFtrace_hist, > METH_VARARGS | METH_KEYWORDS, > "Define a histogram." > }, > + {"set_affinity", > + (PyCFunction) PyFtrace_set_affinity, > + METH_VARARGS | METH_KEYWORDS, > + "Return tracing affinity of an instance." Bah, that should have been: "Set tracing affinity of an instance." I wrote that while working on the "get_affinity" in libtracefs. :-p v3 soon. -- Steve > + }, > {"set_ftrace_loglevel", > (PyCFunction) PyFtrace_set_ftrace_loglevel, > METH_VARARGS | METH_KEYWORDS,