summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2015-05-13 04:28:23 +0300
committerPablo Neira Ayuso <pablo@netfilter.org>2015-05-17 18:25:35 +0300
commit861fb1078fd4ea09b442987b3e20fced0f15eb92 (patch)
tree972819122fe2724529882cac48c2516a040ac894 /tools/perf/scripts/python/syscall-counts-by-pid.py
parent55917a21d0cc012bb6073bb05bb768fd51d8e237 (diff)
downloadlinux-861fb1078fd4ea09b442987b3e20fced0f15eb92.tar.xz
netfilter: Use correct return for seq_show functions
Using seq_has_overflowed doesn't produce the right return value. Either 0 or -1 is, but 0 is much more common and works well when seq allocation retries. I believe this doesn't matter as the initial allocation is always sufficient, this is just a correctness patch. Miscellanea: o Don't use strlen, use *ptr to determine if a string should be emitted like all the other tests here o Delete unnecessary return statements Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions