diff options
author | Andi Kleen <ak@linux.intel.com> | 2017-01-03 18:08:23 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-01-16 20:59:15 +0300 |
commit | d02fc6bcd53721cf8588633409157c232f2418e0 (patch) | |
tree | 9577216deb284a5107818ae0e5a2e306f5919798 /tools/perf/Makefile.config | |
parent | 5b485629ba0d5d027880769ff467c587b24b4bde (diff) | |
download | linux-d02fc6bcd53721cf8588633409157c232f2418e0.tar.xz |
perf pmu: Factor out scale conversion code
Move the scale factor parsing code to an own function to reuse it in an
upcoming patch.
v2: Return error in case strdup returns NULL.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: http://lkml.kernel.org/r/20170103150833.6694-2-andi@firstfloor.org
[ Keep returning -ENOMEM when strdup() fails in perf_pmu__parse_scale()/convert_scale() ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/Makefile.config')
0 files changed, 0 insertions, 0 deletions