summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2026-03-11 11:00:33 +0200
committerLen Brown <len.brown@intel.com>2026-03-17 23:39:42 -0400
commitb6398bc2ef3a78f1be37ba01ae0a5eedaee47803 (patch)
tree48bc9b9cd802f74fc6cbd090765c2191b288bd9e /tools/perf/scripts/python/netdev-times.py
parent23cb4f5c81766e70e5f32ed0987ee8fb5ab2e00a (diff)
downloadkernel-b6398bc2ef3a78f1be37ba01ae0a5eedaee47803.tar.gz
tools/power turbostat: Fix --show/--hide for individual cpuidle counters
Problem: individual swidle counter names (C1, C1+, C1-, etc.) cannot be selected via --show/--hide due to two bugs in probe_cpuidle_counts(): 1. The function returns immediately when BIC_cpuidle is not enabled, without checking deferred_add_index. 2. The deferred name check runs against name_buf before the trailing newline is stripped, so is_deferred_add("C1\n") never matches "C1". Fix: 1. Relax the early return to pass through when deferred names are queued. 2. Strip the trailing newline from name_buf before performing deferred name checks. 3. Check each suffixed variant (C1+, C1, C1-) individually so that e.g. "--show C1+" enables only the requested metric. In addition, introduce a helper function to avoid repeating the condition (readability cleanup). Fixes: ec4acd3166d8 ("tools/power turbostat: disable "cpuidle" invocation counters, by default") Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
k_pci.c?id=54b3c9cfad6bf0488a031171805c52346f4efa3d'>fm10k: start service timer on probeJeff Kirsher 2015-04-14fm10k: don't handle mailbox events in iov_event path and always process mailboxJeff Kirsher 2015-04-14fm10k: use separate workqueue for fm10k driverJeff Kirsher 2015-04-14fm10k: only increment tx_timeout_count in Tx hang pathJeff Kirsher 2015-04-14fm10k: use hw->mac.max_queues for statsJeff Kirsher 2015-04-14fm10k: fix unused warningsJeff Kirsher 2015-04-14fm10k: Add netconsole supportJeff Kirsher 2015-04-14fm10k: Remove redundant rx_errors in ethtoolJeff Kirsher 2015-03-03fm10k: Resolve various spelling errors and checkpatch warningsMatthew Vick 2014-11-16fm10k: use netdev_rss_key_fill() helperEric Dumazet 2014-10-16fm10k: Check the host state when bringing the interface upMatthew Vick 2014-09-23fm10k: Add support for PTPAlexander Duyck 2014-09-23fm10k: Add support for debugfsAlexander Duyck 2014-09-23fm10k: Add support for IEEE DCBxAlexander Duyck 2014-09-23fm10k: Add support for SR-IOV to driverAlexander Duyck 2014-09-23fm10k: Add support for VFAlexander Duyck 2014-09-23fm10k: Add support for MACVLAN accelerationAlexander Duyck 2014-09-23fm10k: Add support for PCI power management and error handlingAlexander Duyck 2014-09-23fm10k: Add transmit and receive fastpath and interrupt handlersAlexander Duyck 2014-09-23fm10k: Add Tx/Rx hardware ring bring-up/tear-downAlexander Duyck 2014-09-23fm10k: Add service task to handle delayed eventsAlexander Duyck 2014-09-23fm10k: add support for Tx/Rx ringsAlexander Duyck 2014-09-23fm10k: Add interrupt supportAlexander Duyck 2014-09-23fm10k: Add support for ndo_open/stopAlexander Duyck 2014-09-23fm10k: Add netdevAlexander Duyck 2014-09-23fm10k: Add support for basic interaction with hardwareAlexander Duyck 2014-09-23fm10k: Add skeletal frame for Intel(R) FM10000 Ethernet Switch Host Interface...Alexander Duyck