aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/proc.py
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <[email protected]>2017-02-15 10:06:20 -0300
committerArnaldo Carvalho de Melo <[email protected]>2017-02-15 10:06:20 -0300
commitb30a7d1fc96d60fe2c02e375a56a046385701d17 (patch)
tree38cfab671653991a5c6c925d5c9946c27acab8d9 /scripts/gdb/linux/proc.py
parenta0b2f5af4c99d3da7ce9bc2b3b4641c8ffd22615 (diff)
perf pmu: Fix check for unset alias->unit array
The alias->unit field is an array, so to check that it is not set we should see if it is an empty string, i.e. alias->unit[0], instead of checking alias->unit != NULL, as this will _always_ evaluate to 'true'. Pointed out by clang. Acked-by: Jiri Olsa <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: David Ahern <[email protected]> Cc: Namhyung Kim <[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/proc.py')
0 files changed, 0 insertions, 0 deletions