aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorJulian Anastasov <[email protected]>2014-09-03 00:02:49 +0300
committerPablo Neira Ayuso <[email protected]>2014-09-09 16:31:24 +0200
commit5fcf0cf6073d4adb22e34cd1d14a6318699625a9 (patch)
treed07020081df5b3657c98b59fc8f0431f8d96f150 /tools/perf/scripts/python/netdev-times.py
parent3045d76070abe725dbb7fd8ff39c27b820d5a7eb (diff)
ipvs: reduce stack usage for sockopt data
Use union to reserve the required stack space for sockopt data which is less than the currently hardcoded value of 128. Now the tables for commands should be more readable. The checks added for readability are optimized by compiler, others warn at compile time if command uses too much stack or exceeds the storage of set_arglen and get_arglen. As Dan Carpenter points out, we can run for unprivileged user, so we can silent some error messages. Signed-off-by: Julian Anastasov <[email protected]> CC: Dan Carpenter <[email protected]> CC: Andrey Utkin <[email protected]> CC: David Binderman <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions