summaryrefslogtreecommitdiff
path: root/tools/lib
diff options
context:
space:
mode:
authorMichael Petlan <mpetlan@redhat.com>2018-12-10 19:00:04 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2018-12-18 18:21:44 +0300
commit51433ead1460fb3f46e1c34f68bb22fd2dd0f5d0 (patch)
tree3bc8c0f45e5d6f0ca143a358c326fe0215ff4bd9 /tools/lib
parent4eaf97e8c5b13d01dd3c3b00181b6eed208aec01 (diff)
downloadlinux-51433ead1460fb3f46e1c34f68bb22fd2dd0f5d0.tar.xz
perf stat: Avoid segfaults caused by negated options
Some 'perf stat' options do not make sense to be negated (event, cgroup), some do not have negated path implemented (metrics). Due to that, it is better to disable the "no-" prefix for them, since otherwise, the later opt-parsing segfaults. Before: $ perf stat --no-metrics -- ls Segmentation fault (core dumped) After: $ perf stat --no-metrics -- ls Error: option `no-metrics' isn't available Usage: perf stat [<options>] [<command>] Signed-off-by: Michael Petlan <mpetlan@redhat.com> Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com> LPU-Reference: 1485912065.62416880.1544457604340.JavaMail.zimbra@redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib')
0 files changed, 0 insertions, 0 deletions