mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
perf trace: Add beautifier for clock_gettime's clk_id argument
Before: 0.030 ( 0.002 ms): 2571 clock_gettime(which_clock: 1, tp: 0x7f3b45729cd0 ) = 0 After: 0.030 ( 0.002 ms): 2571 clock_gettime(which_clock: MONOTONIC, tp: 0x7f3b45729cd0 ) = 0 v2: Update to use the STRARRAY option Signed-off-by: David Ahern <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
parent
46cce19ba8
commit
4f8c1b74c5
1 changed files with 7 additions and 0 deletions
|
|
@ -297,6 +297,12 @@ static DEFINE_STRARRAY(rlimit_resources);
|
|||
static const char *sighow[] = { "BLOCK", "UNBLOCK", "SETMASK", };
|
||||
static DEFINE_STRARRAY(sighow);
|
||||
|
||||
static const char *clockid[] = {
|
||||
"REALTIME", "MONOTONIC", "PROCESS_CPUTIME_ID", "THREAD_CPUTIME_ID",
|
||||
"MONOTONIC_RAW", "REALTIME_COARSE", "MONOTONIC_COARSE",
|
||||
};
|
||||
static DEFINE_STRARRAY(clockid);
|
||||
|
||||
static const char *socket_families[] = {
|
||||
"UNSPEC", "LOCAL", "INET", "AX25", "IPX", "APPLETALK", "NETROM",
|
||||
"BRIDGE", "ATMPVC", "X25", "INET6", "ROSE", "DECnet", "NETBEUI",
|
||||
|
|
@ -603,6 +609,7 @@ static struct syscall_fmt {
|
|||
{ .name = "arch_prctl", .errmsg = true, .alias = "prctl", },
|
||||
{ .name = "brk", .hexret = true,
|
||||
.arg_scnprintf = { [0] = SCA_HEX, /* brk */ }, },
|
||||
{ .name = "clock_gettime", .errmsg = true, STRARRAY(0, clk_id, clockid), },
|
||||
{ .name = "connect", .errmsg = true, },
|
||||
{ .name = "epoll_ctl", .errmsg = true, STRARRAY(1, op, epoll_ctl_ops), },
|
||||
{ .name = "eventfd2", .errmsg = true,
|
||||
|
|
|
|||
Loading…
Reference in a new issue