aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorJarod Wilson <[email protected]>2016-02-01 18:51:04 -0500
committerDavid S. Miller <[email protected]>2016-02-06 02:59:50 -0500
commit9256645af09807bc52fa8b2e66ecd28ab25318c4 (patch)
tree8b677e50b06f7f5261681967b51db738cb57438e /tools/perf/scripts/python/event_analyzing_sample.py
parent817298102b0bc936b08dfcc5fbcc2213157050f2 (diff)
net/core: relax BUILD_BUG_ON in netdev_stats_to_stats64
The netdev_stats_to_stats64 function copies the deprecated net_device_stats format stats into rtnl_link_stats64 for legacy support purposes, but with the BUILD_BUG_ON as it was, it wasn't possible to extend rtnl_link_stats64 without also extending net_device_stats. Relax the BUILD_BUG_ON to only require that rtnl_link_stats64 is larger, and zero out all the stat counters that aren't present in net_device_stats. CC: Eric Dumazet <[email protected]> CC: [email protected] Signed-off-by: Jarod Wilson <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions