summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2020-10-12 11:01:27 +0300
committerJakub Kicinski <kuba@kernel.org>2020-10-14 03:33:48 +0300
commit44fa32f008ab7092842095a7a474c48303a2f186 (patch)
tree2da344027227688188027dc5516bdc7b2510e2f8 /tools/perf/scripts/python/export-to-postgresql.py
parent3618ad2a7c0e78e4258386394d5d5f92a3dbccf8 (diff)
downloadlinux-44fa32f008ab7092842095a7a474c48303a2f186.tar.xz
net: add function dev_fetch_sw_netstats for fetching pcpu_sw_netstats
In several places the same code is used to populate rtnl_link_stats64 fields with data from pcpu_sw_netstats. Therefore factor out this code to a new function dev_fetch_sw_netstats(). v2: - constify argument netstats - don't ignore netstats being NULL or an ERRPTR - switch to EXPORT_SYMBOL_GPL Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Link: https://lore.kernel.org/r/6d16a338-52f5-df69-0020-6bc771a7d498@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions