aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/intel-pt-events.py
diff options
context:
space:
mode:
authorBruce Allan <[email protected]>2020-05-15 17:42:18 -0700
committerJeff Kirsher <[email protected]>2020-05-27 17:58:21 -0700
commit7e34786a74e14038faadabb24b0d7f4436961c6b (patch)
treed63c3f017681e6231cf183453499e23ff3b8e227 /tools/perf/scripts/python/intel-pt-events.py
parentae15e0ba1b333f391ab0d678abb752cb6a7f2782 (diff)
ice: avoid undefined behavior
When writing the driver's struct ice_tlan_ctx structure, do not write the 8-bit element int_q_state with the associated internal-to-hardware field which is 122-bits, otherwise the helper function ice_write_byte() will use undefined behavior when setting the mask used for that write. This should not cause any functional change and will avoid use of undefined behavior. Also, update a comment to highlight this structure element is not written. Signed-off-by: Bruce Allan <[email protected]> Signed-off-by: Tony Nguyen <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions