diff options
author | Yunlong Song <[email protected]> | 2015-02-13 21:11:52 +0800 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2015-02-13 11:38:43 -0300 |
commit | 3a03005ff9445834f3d3b577a11bcbdbdf7a89cf (patch) | |
tree | f187e14a6db1583991313a1ae1319e017415330b /scripts/gdb/linux/utils.py | |
parent | ceed252fe0b8b7975845ed4cb9e6069d8a12f233 (diff) |
perf tools: Fix a bug of segmentation fault
Fix the 'segmentation fault' bug of 'perf list --list-cmds', which also
happens in other cases (e.g. record, report ...). This bug happens when
there are no cmds to list at all.
Example:
Before this patch:
$ perf list --list-cmds
Segmentation fault
$
After this patch:
$ perf list --list-cmds
$
As shown above, the result prints nothing rather than a segmentation
fault. The null result means 'perf list' has no cmds to display at this
time.
Signed-off-by: Yunlong Song <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions