perf header: Display feature name on write failure
authorJiri Olsa <jolsa@kernel.org>
Mon, 10 Oct 2016 07:38:02 +0000 (09:38 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 24 Oct 2016 14:07:34 +0000 (11:07 -0300)
commit0c2aff4c78e83f3185bf5affa434618815ab77bf
treef6b829747233e9cf17211fac93a50a2aa2972fde
parentaabae165759994d1b9bca1fac7759f1d8bef5dad
perf header: Display feature name on write failure

Display name of feature instead of just the number
during recording data.

Before:
  failed to write feature 13

Now:
  failed to write feature HEADER_CPU_TOPOLOGY

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-k9d9trozi5kkx737cy8n5xh5@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/header.c