aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorMike Marciniszyn <[email protected]>2021-09-13 09:28:31 -0400
committerJason Gunthorpe <[email protected]>2021-09-27 20:06:41 -0300
commit4bf0ca0c9f77b064ece279ff83b6d7eb679551fb (patch)
tree72ba48d5cd5abe39f2ad5d84ddc26652613505f9 /tools/perf/scripts/python/syscall-counts-by-pid.py
parentd47dfc2b00e69001c8eeae71f7e25066ccc36144 (diff)
IB/hfi1: Get rid of hot path divide
The pointer math in this statemet does a divide; struct hfi1_ipoib_txq *txq = &priv->txqs[napi - priv->tx_napis]; Elminate the divide by embedding the struct napi_strut in the txq and getting the txq with a container_of() using the newly embedded napi. Fixes: d99dc602e2a5 ("IB/hfi1: Add functions to transmit datagram ipoib packets") Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Dennis Dalessandro <[email protected]> Signed-off-by: Mike Marciniszyn <[email protected]> Signed-off-by: Dennis Dalessandro <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions