aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorPatrisious Haddad <phaddad@nvidia.com>2023-06-05 13:33:19 +0300
committerLeon Romanovsky <leon@kernel.org>2023-06-11 11:25:39 +0300
commitc2ea687e5e0e29802714a981a1ccdc17c2c4b2be (patch)
tree9239f1242d86cf61871346c3f940c70848f78885 /tools/perf/scripts/python/event_analyzing_sample.py
parentRDMA/mlx5: Create an indirect flow table for steering anchor (diff)
downloadlinux-c2ea687e5e0e29802714a981a1ccdc17c2c4b2be.tar.gz
linux-c2ea687e5e0e29802714a981a1ccdc17c2c4b2be.zip
RDMA/mlx5: Fix Q-counters per vport allocation
Previously Q-counters data was being allocated over the PF for all of the available vports, however that isn't necessary. Since each VF or SF has a Q-counter allocated for itself. So we only need to allocate two counters data structures, one for the device counters, and one for all the other vports to expose the representors, since they only need to read from it in order to determine mainly counters numbers and names, so they can all share. This in turn also solves a bug we previously had where we couldn't switch the device to switchdev mode when there were more than 128 SF/VFs configured, since that is the maximum amount of Q-counters available for a single port Fixes: d22467a71ebe ("RDMA/mlx5: Expand switchdev Q-counters to expose representor statistics") Signed-off-by: Patrisious Haddad <phaddad@nvidia.com> Reviewed-by: Mark Zhang <markzhang@nvidia.com> Link: https://lore.kernel.org/r/f54671df16e2227a069b229b33b62cd9ee24c475.1685960567.git.leon@kernel.org Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
id=f0a0251cee800bf90cff92ecfaf4a4d4c9c493b2&follow=1'>perf intel-pt: Add support for synthesizing branch stacks for regular eventsAdrian Hunter1-7/+66 2020-05-05perf thread-stack: Add thread_stack__br_sample_late()Adrian Hunter2-0/+107 2020-05-05perf evsel: Add support for synthesized branch stack sample typeAdrian Hunter2-1/+11 2020-05-05perf auxtrace: Add option to synthesize branch stack for regular eventsAdrian Hunter6-5/+15 2020-05-05perf intel-pt: Change branch stack support to use thread-stacksAdrian Hunter1-102/+39 2020-05-05perf intel-pt: Consolidate thread-stack use conditionAdrian Hunter1-2/+6 2020-05-05perf thread-stack: Add branch stack supportAdrian Hunter4-14/+108 2020-05-05perf tools: Simplify checking if SMT is active.Konstantin Khlebnikov1-0/+4 2020-05-05perf tools: Fix reading new topology attribute "core_cpus"Konstantin Khlebnikov1-3/+3 2020-05-05libperf evlist: Fix a refcount leakIan Rogers1-0/+1 2020-05-05perf parse-events: Fix another memory leaks found on parse_events()Ian Rogers1-0/+1 2020-05-05perf parse-events: Fix memory leaks found on parse_eventsIan Rogers1-1/+1 2020-05-05perf parse-events: Fix memory leaks found on parse_eventsIan Rogers1-0/+1 2020-05-05libperf: Add NULL pointer check for cpu_map iteration and NULL assignment for...He Zhe2-1/+2 2020-05-05perf record: Move side band evlist setup to separate routineArnaldo Carvalho de Melo1-30/+41 2020-05-05perf record: Introduce --switch-output-eventArnaldo Carvalho de Melo2-4/+50 2020-05-05libsubcmd: Introduce OPT_CALLBACK_SET()Arnaldo Carvalho de Melo1-0/+2 2020-05-05perf evlist: Allow reusing the side band thread for more purposesArnaldo Carvalho de Melo2-0/+24 2020-05-05perf evlist: Move the sideband thread routines to separate objectArnaldo Carvalho de Melo3-117/+126 2020-05-05perf parse-events: Add parse_events_option() variant that creates evlistArnaldo Carvalho de Melo2-0/+24 2020-05-05perf bpf: Decouple creating the evlist from adding the SB eventArnaldo Carvalho de Melo6-29/+36 2020-05-05perf top: Move sb_evlist to 'struct perf_top'Arnaldo Carvalho de Melo2-5/+4 2020-05-05perf record: Move sb_evlist to 'struct record'Arnaldo Carvalho de Melo1-4/+4 2020-05-05perf tools: Move routines that probe for perf API features to separate fileArnaldo Carvalho de Melo11-158/+186