aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorYunlong Song <[email protected]>2015-02-13 21:11:52 +0800
committerArnaldo Carvalho de Melo <[email protected]>2015-02-13 11:38:43 -0300
commit3a03005ff9445834f3d3b577a11bcbdbdf7a89cf (patch)
treef187e14a6db1583991313a1ae1319e017415330b /scripts/gdb/linux/utils.py
parentceed252fe0b8b7975845ed4cb9e6069d8a12f233 (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