/linux/Documentation/ABI/testing/ |
H A D | sysfs-bus-pci-devices-aer_stats | 2 -------------------------- 5 statistical counters indicate the errors "as seen/reported by the device". 7 counters may increment at its link partner (e.g. root port) because the 9 problematic endpoint itself (which may report all counters as 0 as it never 15 Contact: linux-pci@vger.kernel.org, rajatja@google.com 28 Advisory Non-Fatal 0 36 Contact: linux-pci@vger.kernel.org, rajatja@google.com 46 Surprise Down Error 0 66 Contact: linux-pci@vger.kernel.org, rajatja@google.com 76 Surprise Down Error 0 [all …]
|
/linux/tools/testing/selftests/net/netfilter/ |
H A D | nft_flowtable.sh | 2 # SPDX-License-Identifier: GPL-2.0 7 # Originator (MTU 9000) <-Router1-> MTU 1500 <-Router2-> Responder (MTU 2000) 14 # nft_flowtable.sh -o8000 -l1500 -r2000 26 log_netns=$(sysctl -n net.netfilter.nf_log_all_netns) 28 checktool "nft --version" "run test without nft tool" 29 checktool "socat -h" "run test without socat" 39 rm -f "$nsin" "$ns1out" "$ns2out" 41 [ "$log_netns" -eq 0 ] && sysctl -q net.netfilter.nf_log_all_netns="$log_netns" 46 sysctl -q net.netfilter.nf_log_all_netns=1 54 ip -net "$nsr1" link set "$dev" up [all …]
|
/linux/tools/perf/Documentation/ |
H A D | perf-stat.txt | 1 perf-stat(1) 5 ---- 6 perf-stat - Run a command and gather performance counter statistics 9 -------- 11 'perf stat' [-e <EVENT> | --event=EVENT] [-a] <command> 12 'perf stat' [-e <EVENT> | --event=EVENT] [-a] \-- <command> [<options>] 13 'perf stat' [-e <EVENT> | --event=EVENT] [-a] record [-o file] \-- <command> [<options>] 14 'perf stat' report [-i file] 17 ----------- 23 ------- [all …]
|
H A D | topdown.txt | 2 --------------------- 11 perf stat --topdown implements this using available metrics that vary 14 % perf stat -a --topdown -I1000 28 fixed counters and do not require generic counters. This allows 53 metric event, and allow user programs to read the performance counters. 84 int slots_fd = perf_event_open(&slots, 0, -1, -1, 0); 104 int metrics_fd = perf_event_open(&metrics, 0, -1, slots_fd, 0); 123 #define RDPMC_FIXED (1 << 30) /* return fixed counters */ 124 #define RDPMC_METRIC (1 << 29) /* return metric counters */ 147 _rdpmc calls should not be mixed with reading the metrics and slots counters [all …]
|
/linux/Documentation/networking/device_drivers/ethernet/mellanox/mlx5/ |
H A D | counters.rst | 1 .. SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 5 Ethtool counters 13 - `Overview`_ 14 - `Groups`_ 15 - `Types`_ 16 - `Descriptions`_ 22 addition, each group of counters may have different counter types. 27 ---------------------------------------- 29 ---------------------------------------- ---------------------------------------- | 32 | ------------------- --------------- | | ------------------- --------------- | | [all …]
|
/linux/tools/testing/selftests/net/forwarding/ |
H A D | vxlan_bridge_1d.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 # +--------------------+ +----------------------+ 8 # +----|---------------+ +--|-------------------+ 10 # +----|--------------------------------------------------|-------------------+ 12 # | +--|--------------------------------------------------|-----------------+ | 19 # | +-----------------------------------------------------------------------+ | 26 # +----|----------------------------------------------------------------------+ 28 # +----|--------------------------------------------------------+ 37 # +----|---------------------------------------|----------------+ 39 # +----|------------------------------+ +----|------------------------------+ [all …]
|
H A D | vxlan_bridge_1q.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 # +-----------------------+ +------------------------+ 13 # +----|------------------+ +----|-------------------+ 15 # +----|--------------------------------------------------|-------------------+ 17 # | +--|--------------------------------------------------|-----------------+ | 27 # | +-----------------------------------------------------------------------+ | 34 # +----|----------------------------------------------------------------------+ 36 # +----|--------------------------------------------------------+ 45 # +----|---------------------------------------|----------------+ 47 # +----|------------------------------+ +----|------------------------------+ [all …]
|
H A D | vxlan_bridge_1q_ipv6.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 # +-----------------------+ +------------------------+ 15 # +----|------------------+ +----|-------------------+ 17 # +----|--------------------------------------------------|-------------------+ 19 # | +--|--------------------------------------------------|-----------------+ | 31 # | +-----------------------------------------------------------------------+ | 38 # +----|----------------------------------------------------------------------+ 40 # +----|----------------------------------------------------------+ 49 # +----|---------------------------------------|------------------+ 51 # +----|--------------------------------+ +----|-------------------------------+ [all …]
|
H A D | vxlan_bridge_1d_ipv6.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 # +-----------------------+ +------------------------+ 9 # +----|------------------+ +----|-------------------+ 11 # +----|--------------------------------------------------|-------------------+ 13 # | +--|--------------------------------------------------|-----------------+ | 20 # | +-----------------------------------------------------------------------+ | 27 # +----|----------------------------------------------------------------------+ 29 # +----|----------------------------------------------------------+ 38 # +----|---------------------------------------|------------------+ 40 # +----|--------------------------------+ +----|-------------------------------+ [all …]
|
/linux/arch/arm64/kernel/ |
H A D | topology.c | 61 cpu_topology[cpu].thread_id = -1; in parse_acpi_topology() 107 pr_debug("CPU%d: counters are not supported.\n", cpu); in freq_counters_valid() 113 pr_debug("CPU%d: cycle counters are not enabled.\n", cpu); in freq_counters_valid() 131 * Pre-compute the fixed ratio between the frequency of the constant in freq_inv_set_max_ratio() 135 * arch_max_freq_scale = ---------- * SCHED_CAPACITY_SCALE² in freq_inv_set_max_ratio() 138 * We use a factor of 2 * SCHED_CAPACITY_SHIFT -> SCHED_CAPACITY_SCALE² in freq_inv_set_max_ratio() 140 * very low reference frequencies (down to the KHz range which should in freq_inv_set_max_ratio() 172 * scale = ------- * -------------------- in amu_scale_freq_tick() 178 scale = core_cnt - prev_core_cnt; in amu_scale_freq_tick() 181 const_cnt - prev_const_cnt); in amu_scale_freq_tick() [all …]
|
/linux/tools/testing/selftests/drivers/net/hw/ |
H A D | ethtool_rmon.sh | 2 # SPDX-License-Identifier: GPL-2.0 16 declare -A netif_mtu 22 local current=$(ip -j link show dev $iface | jq -r '.[0].mtu') 23 local required=$((len - ETH_HLEN - ETH_FCS_LEN)) 25 if [ $current -lt $required ]; then 44 # Mausezahn does not include FCS bytes in its length - but the 45 # histogram counters do 46 len=$((len - ETH_FCS_LEN)) 49 before=$(ethtool --json -S $iface --groups rmon | \ 50 jq -r ".[0].rmon[\"${set}-pktsNtoM\"][$bucket].val") [all …]
|
/linux/arch/mips/sibyte/common/ |
H A D | sb_tbprof.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2007 Ralf Baechle <ralf@linux-mips.org> 7 * written by Ralf Baechle <ralf@linux-mips.org> 85 * Routines for using 40-bit SCD cycle counter 89 * zclk_timer_init(0) at least every 2^40 - 1 ZCLKs. 145 u64 next = (1ULL << 40) - tb_period; in arm_tb() 156 * Unfortunately, in Pass 2 we must clear all counters to knock down in arm_tb() 158 * requires ALL of the SCD perf counters. in arm_tb() 162 /* keep counters 0,2,3,4,5,6,7 as is */ in arm_tb() 167 M_SPC_CFG_CLEAR | /* clear all counters */ in arm_tb() [all …]
|
/linux/drivers/md/dm-vdo/indexer/ |
H A D | sparse-cache.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 #include "sparse-cache.h" 10 #include <linux/dm-bufio.h> 13 #include "memory-alloc.h" 16 #include "chapter-index.h" 23 * least-recently-used (LRU). Again, the small size of the cache allows the LRU order to be 46 * All fields that might be frequently updated by that thread are kept in separate cache-aligned 75 * clear the skip_search flag, once again allowing the non-hook searches to use that cache entry. 84 * These counters are essentially fields of the struct cached_chapter_index, but are segregated 118 * The cache-aligned counters change often and are placed at the end of the structure to in __aligned() [all …]
|
/linux/tools/perf/ |
H A D | design.txt | 2 Performance Counters for Linux 3 ------------------------------ 5 Performance counters are special hardware registers available on most modern 7 as instructions executed, cachemisses suffered, or branches mis-predicted - 8 without slowing down the kernel or applications. These registers can also 9 trigger interrupts when a threshold number of events have passed - and can 13 hardware capabilities. It provides per task and per CPU counters, counter 15 provides "virtual" 64-bit counters, regardless of the width of the 16 underlying hardware counters. 18 Performance counters are accessed via special file descriptors. [all …]
|
/linux/tools/perf/pmu-events/arch/x86/lunarlake/ |
H A D | pipeline.json | 28 …-speculative execution path is known. The branch prediction unit (BPU) predicts the target address… 54 …e. It is counted on a dedicated fixed counter, leaving the programmable counters available for oth… 125 …e. It is counted on a dedicated fixed counter, leaving the programmable counters available for oth… 157 "BriefDescription": "Number of instructions retired. Fixed Counter - architectural event", 161 …- an Architectural PerfMon event. Counting continues during hardware interrupts, traps, and inside… 176 "BriefDescription": "Number of instructions retired. General Counter - architectural event", 181 …- an Architectural PerfMon event. Counting continues during hardware interrupts, traps, and inside… 186 … because its address partially overlaps with an older store (size mismatch) - unknown_sta/bad_forw… 226 … the Topdown Slots event that were not consumed by the back-end pipeline due to lack of back-end r… 230 …-end pipeline due to lack of back-end resources, as a result of memory subsystem delays, execution… [all …]
|
/linux/drivers/infiniband/ulp/opa_vnic/ |
H A D | opa_vnic_encap.h | 26 * - Redistributions of source code must retain the above copyright 28 * - Redistributions in binary form must reproduce the above copyright 32 * - Neither the name of Intel Corporation nor the names of its 84 #define OPA_VNIC_EMA_DATA (OPA_MGMT_MAD_SIZE - IB_MGMT_VENDOR_HDR) 118 * struct opa_vesw_info - OPA vnic switch information 119 * @fabric_id: 10-bit fabric id 120 * @vesw_id: 12-bit virtual ethernet switch id 155 * struct opa_per_veswport_info - OPA vnic per port information 171 * @non_vlan_sc_uc: sc for non-vlan unicast ethernet packets 172 * @non_vlan_vl_uc: vl for non-vlan unicast ethernet packets [all …]
|
/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | qos_mc_aware.sh | 2 # SPDX-License-Identifier: GPL-2.0 6 # MC load. This issue can be overcome by putting the switch to MC-aware mode. 8 # under MC flood, and therefore that the MC-aware mode is enabled and correctly 17 # So instead we send traffic with mausezahn and use RX ethtool counters at $h3. 19 # each gets a different priority and we can use per-prio ethtool counters to 28 # +-- [all...] |
H A D | devlink_trap_l3_exceptions.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 # Test devlink-trap L3 exceptions functionality over mlxsw. 8 # +------ [all...] |
/linux/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_common.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2013 - 2018 Intel Corporation. */ 7 * fm10k_get_bus_info_generic - Generic set PCI bus info 22 hw->bus_caps.width = fm10k_bus_width_pcie_x1; in fm10k_get_bus_info_generic() 25 hw->bus_caps.width = fm10k_bus_width_pcie_x2; in fm10k_get_bus_info_generic() 28 hw->bus_caps.width = fm10k_bus_width_pcie_x4; in fm10k_get_bus_info_generic() 31 hw->bus_caps.width = fm10k_bus_width_pcie_x8; in fm10k_get_bus_info_generic() 34 hw->bus_caps.width = fm10k_bus_width_unknown; in fm10k_get_bus_info_generic() 40 hw->bus_caps.speed = fm10k_bus_speed_2500; in fm10k_get_bus_info_generic() 43 hw->bus_caps.speed = fm10k_bus_speed_5000; in fm10k_get_bus_info_generic() [all …]
|
/linux/drivers/media/test-drivers/vivid/ |
H A D | vivid-kthread-touch.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * vivid-kthread-touch.c - touch capture thread support functions. 9 #include "vivid-core.h" 10 #include "vivid-kthread-touch.h" 11 #include "vivid-touch-cap.h" 18 spin_lock(&dev->slock); in vivid_thread_tch_cap_tick() 19 if (!list_empty(&dev->touch_cap_active)) { in vivid_thread_tch_cap_tick() 20 tch_cap_buf = list_entry(dev->touch_cap_active.next, in vivid_thread_tch_cap_tick() 22 list_del(&tch_cap_buf->list); in vivid_thread_tch_cap_tick() 25 spin_unlock(&dev->slock); in vivid_thread_tch_cap_tick() [all …]
|
/linux/Documentation/timers/ |
H A D | timekeeping.rst | 10 If you grep through the kernel source you will find a number of architecture- 12 architecture-specific overrides of the sched_clock() function and some 17 on this timeline, providing facilities such as high-resolution timers. 19 provide an accurate delay source using hardware counters. 23 ------------- 31 n bits which count from 0 to (2^n)-1 and then wraps around to 0 and start over. 36 shall be as stable and correct as possible as compared to a real-world wall 46 When the wall-clock accuracy of the clock source isn't satisfactory, there 48 the user-visible time to RTC clocks in the system or against networked time 73 register counts up or down, and the timer clock rate, and then conjure all [all …]
|
/linux/mm/ |
H A D | Kconfig.debug | 1 # SPDX-License-Identifier: GPL-2.0-only 24 use-after-free). The error reports for these checks can be augmented 71 "slab_debug=-". 86 detect use-after-free accesses in such caches. 118 for user-space helper. 166 bool "Enable tracepoint to track down page reference manipulation" 170 This is a feature to add tracepoint for tracking down page reference 178 bool "Testcase for the marking rodata read-only" 181 This option enables a testcase for the setting rodata read-only. 211 once the kernel has booted up - it's a one time check. [all …]
|
/linux/drivers/scsi/elx/efct/ |
H A D | efct_xport.c | 1 // SPDX-License-Identifier: GPL-2.0 35 xport->efct = efct; in efct_xport_alloc() 49 if (!efct->sess_debugfs_dir) { in efct_xport_init_debugfs() 50 efct->sess_debugfs_dir = debugfs_create_dir("sessions", in efct_xport_init_debugfs() 52 if (IS_ERR(efct->sess_debugfs_dir)) { in efct_xport_init_debugfs() 63 return -EIO; in efct_xport_init_debugfs() 69 debugfs_remove(efct->sess_debugfs_dir); in efct_xport_delete_debugfs() 70 efct->sess_debugfs_dir = NULL; in efct_xport_delete_debugfs() 83 struct efct *efct = xport->efct; in efct_xport_attach() 86 rc = efct_hw_setup(&efct->hw, efct, efct->pci); in efct_xport_attach() [all …]
|
/linux/drivers/infiniband/hw/mlx5/ |
H A D | counters.c | 1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 3 * Copyright (c) 2013-2020, Mellanox Technologies inc. All rights reserved. 9 #include "counters.h" 143 static int mlx5_ib_read_counters(struct ib_counters *counters, in mlx5_ib_read_counters() argument 147 struct mlx5_ib_mcounters *mcounters = to_mcounters(counters); in mlx5_ib_read_counters() 152 mutex_lock(&mcounters->mcntrs_mutex); in mlx5_ib_read_counters() 153 if (mcounters->cntrs_max_index > read_attr->ncounters) { in mlx5_ib_read_counters() 154 ret = -EINVAL; in mlx5_ib_read_counters() 158 mread_attr.out = kcalloc(mcounters->counters_num, sizeof(u64), in mlx5_ib_read_counters() 161 ret = -ENOMEM; in mlx5_ib_read_counters() [all …]
|
/linux/drivers/edac/ |
H A D | edac_device.c | 44 edac_dev, edac_dev->dev_idx); in edac_device_dump_device() 45 edac_dbg(4, "\tedac_dev->edac_check = %p\n", edac_dev->edac_check); in edac_device_dump_device() 46 edac_dbg(3, "\tdev = %p\n", edac_dev->dev); in edac_device_dump_device() 48 edac_dev->mod_name, edac_dev->ctl_name); in edac_device_dump_device() 49 edac_dbg(3, "\tpvt_info = %p\n\n", edac_dev->pvt_info); in edac_device_dump_device() 78 dev_ctl->instances = dev_inst; in edac_device_alloc_ctl_info() 84 dev_ctl->blocks = dev_blk; in edac_device_alloc_ctl_info() 91 dev_ctl->pvt_info = pvt; in edac_device_alloc_ctl_info() 94 dev_ctl->dev_idx = device_index; in edac_device_alloc_ctl_info() 95 dev_ctl->nr_instances = nr_instances; in edac_device_alloc_ctl_info() [all …]
|