summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThomas Richter <tmricht@linux.ibm.com>2018-06-15 12:11:04 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2018-06-25 11:59:37 -0300
commit0c24d6fb7bd3578e5b9e4972d01bbe3d087ded33 (patch)
treef79b32b073f4b924b4da6cc90dd0b0d7249455a1 /include
parentea23ac73085743a4f1682d6605fe019577c82e1e (diff)
downloadlinux-stable-0c24d6fb7bd3578e5b9e4972d01bbe3d087ded33.tar.gz
linux-stable-0c24d6fb7bd3578e5b9e4972d01bbe3d087ded33.tar.bz2
linux-stable-0c24d6fb7bd3578e5b9e4972d01bbe3d087ded33.zip
perf alias: Rebuild alias expression string to make it comparable
PMU alias definitions in sysfs files may have spaces, newlines and numbers with leading zeroes. Some alias definitions may also appear in JSON files without spaces, etc. Scan alias definitions and remove leading zeroes, spaces, newlines, etc and rebuild string to make alias->str member comparable. s390 for example has terms specified as event=0x0091 (read from files ../<PMU>/events/<FILE> and terms specified as event=0x91 (read from JSON files). Signed-off-by: Thomas Richter <tmricht@linux.ibm.com> Reviewed-by: Hendrik Brueckner <brueckner@linux.ibm.com> Cc: Heiko Carstens <heiko.carstens@de.ibm.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> Link: http://lkml.kernel.org/r/20180615101105.47047-2-tmricht@linux.ibm.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions