diff options
author | Takashi Iwai <tiwai@suse.de> | 2024-12-05 18:09:29 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2024-12-05 18:09:29 +0100 |
commit | c34e9ab9a612ee8b18273398ef75c207b01f516d (patch) | |
tree | 6845a1809118a2b2a21d5a638ace1976dd8f8c46 /tools/perf/scripts/python/Perf-Trace-Util/Context.c | |
parent | 20c3b3e5f2641eff3d85f33e6a468ac052b169bd (diff) | |
parent | ec16a3cdf37e507013062f9c4a2067eacdd12b62 (diff) | |
download | linux-c34e9ab9a612ee8b18273398ef75c207b01f516d.tar.gz linux-c34e9ab9a612ee8b18273398ef75c207b01f516d.tar.bz2 linux-c34e9ab9a612ee8b18273398ef75c207b01f516d.zip |
Merge tag 'asoc-fix-v6.13-rc1' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Fixes for v6.13
A few small fixes for v6.13, all system specific - the biggest thing is
the fix for jack handling over suspend on some Intel laptops.
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/Context.c')
-rw-r--r-- | tools/perf/scripts/python/Perf-Trace-Util/Context.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/perf/scripts/python/Perf-Trace-Util/Context.c b/tools/perf/scripts/python/Perf-Trace-Util/Context.c index 3954bd1587ce..01f54d6724a5 100644 --- a/tools/perf/scripts/python/Perf-Trace-Util/Context.c +++ b/tools/perf/scripts/python/Perf-Trace-Util/Context.c @@ -12,6 +12,7 @@ #define PY_SSIZE_T_CLEAN #include <Python.h> +#include "../../../util/config.h" #include "../../../util/trace-event.h" #include "../../../util/event.h" #include "../../../util/symbol.h" @@ -182,6 +183,15 @@ static PyObject *perf_sample_srccode(PyObject *obj, PyObject *args) return perf_sample_src(obj, args, true); } +static PyObject *__perf_config_get(PyObject *obj, PyObject *args) +{ + const char *config_name; + + if (!PyArg_ParseTuple(args, "s", &config_name)) + return NULL; + return Py_BuildValue("s", perf_config_get(config_name)); +} + static PyMethodDef ContextMethods[] = { #ifdef HAVE_LIBTRACEEVENT { "common_pc", perf_trace_context_common_pc, METH_VARARGS, @@ -199,6 +209,7 @@ static PyMethodDef ContextMethods[] = { METH_VARARGS, "Get source file name and line number."}, { "perf_sample_srccode", perf_sample_srccode, METH_VARARGS, "Get source file name, line number and line."}, + { "perf_config_get", __perf_config_get, METH_VARARGS, "Get perf config entry"}, { NULL, NULL, 0, NULL} }; |