aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2019-05-01 11:23:15 -0500
committerDavid S. Miller <davem@davemloft.net>2019-05-04 00:46:27 -0400
commite512fcf0280ae037e2e99476bd59c726c4b44309 (patch)
tree07cef2c1b90085c8bb01f7923e034c6e0c90f787 /tools/perf/scripts/python/export-to-postgresql.py
parentnet: add a generic tracepoint for TX queue timeout (diff)
downloadwireguard-linux-e512fcf0280ae037e2e99476bd59c726c4b44309.tar.xz
wireguard-linux-e512fcf0280ae037e2e99476bd59c726c4b44309.zip
net: sched: cls_u32: use struct_size() helper
Make use of the struct_size() helper instead of an open-coded version in order to avoid any potential type mistakes, in particular in the context in which this code is being used. So, replace code of the following form: sizeof(*s) + s->nkeys*sizeof(struct tc_u32_key) with: struct_size(s, keys, s->nkeys) This code was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions