perf trace: Beautify sched_setscheduler 'policy' argument
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 6 Apr 2016 15:51:33 +0000 (12:51 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 6 Apr 2016 17:13:40 +0000 (14:13 -0300)
commita3bca91f2fe54af502deaf277dd5ac0e18bffde4
tree9d045effe285fdedcd924a8b20b548b139a39cdb
parent85f8f966a152f5110a12b76511743fbfb62130ba
perf trace: Beautify sched_setscheduler 'policy' argument

  $ trace -e sched_setscheduler chrt -f 1 usleep 1
  chrt: failed to set pid 0's policy: Operation not permitted
     0.005 ( 0.005 ms): chrt/19189 sched_setscheduler(policy: FIFO, param: 0x7ffec5273d70) = -1 EPERM Operation not permitted
  $

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-i5vlo5n5jv0amt8bkyicmdxh@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c
tools/perf/trace/beauty/sched_policy.c [new file with mode: 0644]