aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorJacob Keller <jacob.e.keller@intel.com>2018-05-17 01:08:38 -0700
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2018-05-22 08:37:06 -0700
commite08696dcd988dbe5fe8e51753e23d16ee7e75f3e (patch)
tree271c48579cc72fb6c963ab8e6bd4209db703ae29 /scripts/gdb/linux/utils.py
parentbf1c39e64016c2c29991f20f29a91a76272b043a (diff)
i40e: update data pointer directly when copying to the buffer
A future patch is going to add a helper function i40e_add_ethtool_stats that will help lower the amount of boiler plate code in the i40e_get_ethtool_stats function. This conversion will take place over many patches, and the helper function will work by directly updating a reference to the data pointer. Since this would not work combined with the current method of accessing data like an array, update all the code that copies stats into the data buffer to use direct updates to the pointer instead of array accesses. This will prevent incorrect stat updates for patches in between the conversion. Similarly, when copying strings, we used a separate char *p pointer. Instead, use the data pointer directly as it's already a (u8 *) type which is the same size. 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 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions