summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorJacob Keller <jacob.e.keller@intel.com>2018-07-31 13:41:48 +0300
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2018-08-07 22:20:52 +0300
commit333e2f2cea6cbffd75aa4969afad7409d7fad74c (patch)
treea2d9959421ceffdfb02763b36c6ff72c11d50d4b /tools/perf/scripts/python/export-to-sqlite.py
parentf05798b4ff82d919e94e5060d1e9993a3e025361 (diff)
downloadlinux-333e2f2cea6cbffd75aa4969afad7409d7fad74c.tar.xz
i40e: fix i40e_add_queue_stats data pointer update
This function accidentally failed to update the data pointer, which caused the reported stats to be incorrect. Additionally, statistics which follow queue stats in the output would potentially read non-zeroed garbage data from the ethtool buffer. This occurred because the data double pointer was not dereferenced before incrementing the size. Additionally, make sure this issue is more visible by adding a WARN_ONCE to the i40e_get_ethtool_stats function. This warning will trigger whenever the data pointer is not at the expected address, similar to the check that we make in the i40e_get_stat_strings() function. Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions