libbeauty: Introduce syscall_arg__strtoul_strarrays()
The following commit has been merged into the perf/core branch of tip:
Commit-ID: 1a8a90b823f5e7279f84b39bbcd6c59e266e7dc2 Gitweb: https://git.kernel.org/tip/1a8a90b823f5e7279f84b39bbcd6c59e266e7dc2 Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Fri, 18 Oct 2019 15:41:07 -03:00 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitterDate: Sat, 19 Oct 2019 15:35:01 -03:00
libbeauty: Introduce syscall_arg__strtoul_strarrays()
To allow going from string to integer for 'struct strarrays'.
Cc Adrian Hunter <[email protected]>
Cc David Ahern <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Luis Cláudio Gonçalves <[email protected]>
Cc Namhyung Kim <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/builtin-trace.c | 5 +++++ tools/perf/trace/beauty/beauty.h | 3 +++ 2 files changed, 8 insertions(+)
tools/perf/builtin-trace.c +5 -0
@@ -540,6 +540,11 @@ bool syscall_arg__strtoul_strarray(char *bf, size_t size, struct syscall_arg *arreturn strarray__strtoul (arg->parm, bf, size, ret); } +bool syscall_arg__strtoul_strarrays (char *bf,size_t size,struct syscall_arg *arg,u64 *ret) +{ +return strarrays__strtoul (arg->parm, bf, size, ret); +} +size_t syscall_arg__scnprintf_strarray_flags (char *bf,size_t size,struct syscall_arg *arg) {return strarray__scnprintf_flags (arg->parm, bf, size, arg->show_string_prefix, arg->val);
tools/perf/trace/beauty/beauty.h +3 -0
@@ -125,6 +125,9 @@ size_t syscall_arg__scnprintf_strarray_flags(char *bf, size_t size, struct syscabool syscall_arg__strtoul_strarray (char *bf,size_t size,struct syscall_arg *arg,u64 *ret);#define STUL_STRARRAY syscall_arg__strtoul_strarray +bool syscall_arg__strtoul_strarrays (char *bf,size_t size,struct syscall_arg *arg,u64 *ret); +#define STUL_STRARRAYS syscall_arg__strtoul_strarrays +size_t syscall_arg__scnprintf_x86_irq_vectors (char *bf,size_t size,struct syscall_arg *arg);#define SCA_X86_IRQ_VECTORS syscall_arg__scnprintf_x86_irq_vectors