]> git.baikalelectronics.ru Git - kernel.git/commit
perf trace: Factor out the initialization of syscal_arg_fmt->scnprintf
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 3 Oct 2019 18:57:42 +0000 (15:57 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:41:27 +0000 (11:41 +0100)
commita06c91a4e9a0610db8365482ebd40c1516ba6a57
tree382d25f56b68aff57e1baee7437a08d6504035ec
parent39250bfe65cb04538225c491226a04ed3cf5f1a8
perf trace: Factor out the initialization of syscal_arg_fmt->scnprintf

[ Upstream commit 0a6603034a2ab04f6d683e61dbc4dfee3df64728 ]

We set the default scnprint routines for the syscall args based on its
type or on heuristics based on its names, now we'll use this for
tracepoints as well, so move it out of syscall__set_arg_fmts() and into
a routine that receive just an array of syscall_arg_fmt entries + the
tracepoint format fields list.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Luis Cláudio Gonçalves <lclaudio@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-xs3x0zzyes06c7scdsjn01ty@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Stable-dep-of: 03e9a5d8eb55 ("perf trace: Handle failure when trace point folder is missed")
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/perf/builtin-trace.c