aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorBrett Creeley <[email protected]>2023-12-04 13:09:35 -0800
committerJakub Kicinski <[email protected]>2023-12-05 20:49:51 -0800
commitab807e9183425ddf6dd85ca622a51fe4cad2c577 (patch)
treeb9384cea5cc837888cc5e364e0f70cf0fbee96ef /tools/perf/scripts/python/syscall-counts.py
parent2d0b80c3a550f7828f26dba029c2b9346be789af (diff)
ionic: Make the check for Tx HW timestamping more obvious
Currently the checks are: [1] unlikely(q->features & IONIC_TXQ_F_HWSTAMP) [2] !unlikely(q->features & IONIC_TXQ_F_HWSTAMP) [1] is clear enough, but [2] isn't exactly obvious to the reader because !unlikely reads as likely. However, that's not what this means. [2] means that it's unlikely that the q has IONIC_TXQ_F_HWSTAMP enabled. Write an inline helper function to hide the unlikely optimization to make these checks more readable. Signed-off-by: Brett Creeley <[email protected]> Signed-off-by: Shannon Nelson <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Reviewed-by: Rahul Rameshbabu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions