diff options
| author | Andi Kleen <[email protected]> | 2017-01-03 15:08:23 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2017-01-16 17:59:15 +0000 |
| commit | d02fc6bcd53721cf8588633409157c232f2418e0 (patch) | |
| tree | 9577216deb284a5107818ae0e5a2e306f5919798 /tools/perf/builtin-script.c | |
| parent | kprobes, extable: Identify kprobes trampolines as kernel text area (diff) | |
| download | kernel-d02fc6bcd53721cf8588633409157c232f2418e0.tar.gz kernel-d02fc6bcd53721cf8588633409157c232f2418e0.zip | |
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 <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
[ Keep returning -ENOMEM when strdup() fails in perf_pmu__parse_scale()/convert_scale() ]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/builtin-script.c')
0 files changed, 0 insertions, 0 deletions
