Home
last modified time | relevance | path

Searched +full:per +full:- +full:cpu (Results 1 – 25 of 1063) sorted by relevance

12345678910>>...43

/Linux-v5.15/Documentation/core-api/
Dthis_cpu_ops.rst8 this_cpu operations are a way of optimizing access to per cpu
11 the cpu permanently stored the beginning of the per cpu area for a
14 this_cpu operations add a per cpu variable offset to the processor
15 specific per cpu base and encode that operation in the instruction
16 operating on the per cpu variable.
24 Read-modify-write operations are of particular interest. Frequently
32 synchronization is not necessary since we are dealing with per cpu
37 Please note that accesses by remote processors to a per cpu area are
66 ------------------------------------
69 per cpu area. It is then possible to simply use the segment override
[all …]
Dlocal_ops.rst29 Local atomic operations are meant to provide fast and highly reentrant per CPU
34 Having fast per CPU atomic counters is interesting in many cases: it does not
40 CPU which owns the data. Therefore, care must taken to make sure that only one
41 CPU writes to the ``local_t`` data. This is done by using per cpu data and
43 however permitted to read ``local_t`` data from any CPU: it will then appear to
44 be written out of order wrt other memory writes by the owner CPU.
54 ``asm-generic/local.h`` in your architecture's ``local.h`` is sufficient.
66 * Variables touched by local ops must be per cpu variables.
67 * *Only* the CPU owner of these variables must write to them.
68 * This CPU can use local ops from any context (process, irq, softirq, nmi, ...)
[all …]
/Linux-v5.15/arch/ia64/mm/
Ddiscontig.c1 // SPDX-License-Identifier: GPL-2.0
7 * Copyright (c) 2002 Kimio Suganuma <k-suganuma@da.jp.nec.com>
34 * Track per-node information needed to setup the boot memory allocator, the
35 * per-node areas, and the real VM.
51 * To prevent cache aliasing effects, align per-node structures so that they
56 ((((addr) + 1024*1024-1) & ~(1024*1024-1)) + \
57 (((node)*PERCPU_PAGE_SIZE) & (MAX_NODE_ALIGN_OFFSET - 1)))
60 * build_node_maps - callback to setup mem_data structs for each node
68 * if necessary. Any non-existent pages will simply be part of the virtual
91 * early_nr_cpus_node - return number of cpus on a given node
[all …]
/Linux-v5.15/tools/power/x86/x86_energy_perf_policy/
Dx86_energy_perf_policy.81 .\" This page Copyright (C) 2010 - 2015 Len Brown <len.brown@intel.com>
5 x86_energy_perf_policy \- Manage Energy vs. Performance Policy via x86 Model Specific Registers
10 .RB "scope: \-\-cpu\ cpu-list | \-\-pkg\ pkg-list"
12 .RB "cpu-list, pkg-list: # | #,# | #-# | all"
14 .RB "field: \-\-all | \-\-epb | \-\-hwp-epp | \-\-hwp-min | \-\-hwp-max | \-\-hwp-desired"
16 .RB "other: (\-\-force | \-\-hwp-enable | \-\-turbo-enable) value)"
18 .RB "value: # | default | performance | balance-performance | balance-power | power"
21 displays and updates energy-performance policy settings specific to
23 updates, no matter if the Linux cpufreq sub-system is enabled or not.
27 such as how aggressively the hardware enters and exits CPU idle states (C-states)
[all …]
/Linux-v5.15/Documentation/virt/
Dguest-halt-polling.rst15 2) The VM-exit cost can be avoided.
25 ("per-cpu guest_halt_poll_ns"), which is adjusted by the algorithm
42 Division factor used to shrink per-cpu guest_halt_poll_ns when
49 Multiplication factor used to grow per-cpu guest_halt_poll_ns
50 when event occurs after per-cpu guest_halt_poll_ns
57 The per-cpu guest_halt_poll_ns eventually reaches zero
59 per-cpu guest_halt_poll_ns when growing. This can
70 to avoid it (per-cpu guest_halt_poll_ns will remain
82 - Care should be taken when setting the guest_halt_poll_ns parameter as a
83 large value has the potential to drive the cpu usage to 100% on a machine
/Linux-v5.15/Documentation/trace/
Devents-kmem.rst8 - Slab allocation of small objects of unknown type (kmalloc)
9 - Slab allocation of small objects of known type
10 - Page allocation
11 - Per-CPU Allocator Activity
12 - External Fragmentation
40 These events are similar in usage to the kmalloc-related events except that
50 mm_page_alloc_zone_locked page=%p pfn=%lu order=%u migratetype=%d cpu=%d percpu_refill=%d
56 the per-CPU allocator (high performance) or the buddy allocator.
60 amounts of activity imply high activity on the zone->lock. Taking this lock
72 contention on the lruvec->lru_lock.
[all …]
/Linux-v5.15/tools/perf/pmu-events/arch/x86/broadwell/
Dbdw-metrics.json7-lines are fetched from the memory subsystem; parsed into instructions; and lastly decoded into mi…
10 …nd undersupplies its Backend. SMT version; use when SMT is enabled and measuring per logical CPU.",
14-lines are fetched from the memory subsystem; parsed into instructions; and lastly decoded into mi…
18 …"MetricExpr": "( UOPS_ISSUED.ANY - UOPS_RETIRED.RETIRE_SLOTS + 4 * INT_MISC.RECOVERY_CYCLES ) / (4…
21 …s for which the issue-pipeline was blocked due to recovery from earlier incorrect speculation. For…
24 …ue to incorrect speculations. SMT version; use when SMT is enabled and measuring per logical CPU.",
25 …"MetricExpr": "( UOPS_ISSUED.ANY - UOPS_RETIRED.RETIRE_SLOTS + 4 * (( INT_MISC.RECOVERY_CYCLES_ANY…
28-pipeline was blocked due to recovery from earlier incorrect speculation. For example; wasted work…
32 …"MetricExpr": "1 - ( (IDQ_UOPS_NOT_DELIVERED.CORE / (4 * cycles)) + (( UOPS_ISSUED.ANY - UOPS_RETI…
35-of-order scheduler dispatches ready uops into their respective execution units; and once complete…
[all …]
/Linux-v5.15/include/linux/
Dlocal_lock.h1 /* SPDX-License-Identifier: GPL-2.0 */
8 * local_lock_init - Runtime initialize a lock instance
13 * local_lock - Acquire a per CPU local lock
19 * local_lock_irq - Acquire a per CPU local lock and disable interrupts
25 * local_lock_irqsave - Acquire a per CPU local lock, save and disable
34 * local_unlock - Release a per CPU local lock
40 * local_unlock_irq - Release a per CPU local lock and enable interrupts
46 * local_unlock_irqrestore - Release a per CPU local lock and restore
Dsrcutree.h1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Sleepable Read-Copy Update mechanism for mutual exclusion,
21 * Per-CPU structure feeding into leaf srcu_node, similar in function
25 /* Read-side state. */
26 unsigned long srcu_lock_count[2]; /* Locks per CPU. */
27 unsigned long srcu_unlock_count[2]; /* Unlocks per CPU. */
29 /* Update-side state. */
40 /* ->srcu_data_have_cbs[]. */
41 int cpu; member
52 /* is > ->srcu_gq_seq. */
[all …]
Dpercpu-defs.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * linux/percpu-defs.h - basic definitions for percpu areas
40 * Base implementations of per-CPU variable declarations and definitions, where
108 * Variant on the per-CPU variable declaration/definition theme used for
109 * ordinary per-CPU variables.
118 * Declaration/definition used for per-CPU variables that must come first in
128 * Declaration/definition used for per-CPU variables that must be cacheline
130 * data corresponds to a particular CPU, inefficiencies due to direct access by
134 * An example of this would be statistical data, where each CPU's set of data
135 * is updated by that CPU alone, but the data from across all CPUs is collated
[all …]
/Linux-v5.15/drivers/irqchip/
Dirq-armada-370-xp.c7 * Gregory CLEMENT <gregory.clement@free-electrons.com>
8 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
23 #include <linux/cpu.h>
40 * To CPU 0 To CPU 1
44 * +---------------+ +---------------+
46 * | per-CPU | | per-CPU |
50 * +---------------+ +---------------+
55 * +-------------------+
60 * +-------------------+
71 * The "per-CPU mask/unmask" is modified using the
[all …]
/Linux-v5.15/tools/perf/pmu-events/arch/x86/sandybridge/
Dsnb-metrics.json7-lines are fetched from the memory subsystem; parsed into instructions; and lastly decoded into mi…
10 …nd undersupplies its Backend. SMT version; use when SMT is enabled and measuring per logical CPU.",
14-lines are fetched from the memory subsystem; parsed into instructions; and lastly decoded into mi…
18 …"MetricExpr": "( UOPS_ISSUED.ANY - UOPS_RETIRED.RETIRE_SLOTS + 4 * INT_MISC.RECOVERY_CYCLES ) / (4…
21 …s for which the issue-pipeline was blocked due to recovery from earlier incorrect speculation. For…
24 …ue to incorrect speculations. SMT version; use when SMT is enabled and measuring per logical CPU.",
25 …"MetricExpr": "( UOPS_ISSUED.ANY - UOPS_RETIRED.RETIRE_SLOTS + 4 * (( INT_MISC.RECOVERY_CYCLES_ANY…
28-pipeline was blocked due to recovery from earlier incorrect speculation. For example; wasted work…
32 …"MetricExpr": "1 - ( (IDQ_UOPS_NOT_DELIVERED.CORE / (4 * cycles)) + (( UOPS_ISSUED.ANY - UOPS_RETI…
35-of-order scheduler dispatches ready uops into their respective execution units; and once complete…
[all …]
/Linux-v5.15/tools/perf/pmu-events/arch/x86/jaketown/
Djkt-metrics.json7-lines are fetched from the memory subsystem; parsed into instructions; and lastly decoded into mi…
10 …nd undersupplies its Backend. SMT version; use when SMT is enabled and measuring per logical CPU.",
14-lines are fetched from the memory subsystem; parsed into instructions; and lastly decoded into mi…
18 …"MetricExpr": "( UOPS_ISSUED.ANY - UOPS_RETIRED.RETIRE_SLOTS + 4 * INT_MISC.RECOVERY_CYCLES ) / (4…
21 …s for which the issue-pipeline was blocked due to recovery from earlier incorrect speculation. For…
24 …ue to incorrect speculations. SMT version; use when SMT is enabled and measuring per logical CPU.",
25 …"MetricExpr": "( UOPS_ISSUED.ANY - UOPS_RETIRED.RETIRE_SLOTS + 4 * (( INT_MISC.RECOVERY_CYCLES_ANY…
28-pipeline was blocked due to recovery from earlier incorrect speculation. For example; wasted work…
32 …"MetricExpr": "1 - ( (IDQ_UOPS_NOT_DELIVERED.CORE / (4 * cycles)) + (( UOPS_ISSUED.ANY - UOPS_RETI…
35-of-order scheduler dispatches ready uops into their respective execution units; and once complete…
[all …]
/Linux-v5.15/tools/perf/pmu-events/arch/x86/haswellx/
Dhsx-metrics.json7-lines are fetched from the memory subsystem; parsed into instructions; and lastly decoded into mi…
10 …nd undersupplies its Backend. SMT version; use when SMT is enabled and measuring per logical CPU.",
14-lines are fetched from the memory subsystem; parsed into instructions; and lastly decoded into mi…
18 …"MetricExpr": "( UOPS_ISSUED.ANY - UOPS_RETIRED.RETIRE_SLOTS + 4 * INT_MISC.RECOVERY_CYCLES ) / (4…
21 …s for which the issue-pipeline was blocked due to recovery from earlier incorrect speculation. For…
24 …ue to incorrect speculations. SMT version; use when SMT is enabled and measuring per logical CPU.",
25 …"MetricExpr": "( UOPS_ISSUED.ANY - UOPS_RETIRED.RETIRE_SLOTS + 4 * (( INT_MISC.RECOVERY_CYCLES_ANY…
28-pipeline was blocked due to recovery from earlier incorrect speculation. For example; wasted work…
32 …"MetricExpr": "1 - ( (IDQ_UOPS_NOT_DELIVERED.CORE / (4 * cycles)) + (( UOPS_ISSUED.ANY - UOPS_RETI…
35-of-order scheduler dispatches ready uops into their respective execution units; and once complete…
[all …]
/Linux-v5.15/tools/perf/pmu-events/arch/x86/haswell/
Dhsw-metrics.json7-lines are fetched from the memory subsystem; parsed into instructions; and lastly decoded into mi…
10 …nd undersupplies its Backend. SMT version; use when SMT is enabled and measuring per logical CPU.",
14-lines are fetched from the memory subsystem; parsed into instructions; and lastly decoded into mi…
18 …"MetricExpr": "( UOPS_ISSUED.ANY - UOPS_RETIRED.RETIRE_SLOTS + 4 * INT_MISC.RECOVERY_CYCLES ) / (4…
21 …s for which the issue-pipeline was blocked due to recovery from earlier incorrect speculation. For…
24 …ue to incorrect speculations. SMT version; use when SMT is enabled and measuring per logical CPU.",
25 …"MetricExpr": "( UOPS_ISSUED.ANY - UOPS_RETIRED.RETIRE_SLOTS + 4 * (( INT_MISC.RECOVERY_CYCLES_ANY…
28-pipeline was blocked due to recovery from earlier incorrect speculation. For example; wasted work…
32 …"MetricExpr": "1 - ( (IDQ_UOPS_NOT_DELIVERED.CORE / (4 * cycles)) + (( UOPS_ISSUED.ANY - UOPS_RETI…
35-of-order scheduler dispatches ready uops into their respective execution units; and once complete…
[all …]
/Linux-v5.15/Documentation/x86/
Dtopology.rst1 .. SPDX-License-Identifier: GPL-2.0
11 The architecture-agnostic topology definitions are in
12 Documentation/admin-guide/cputopology.rst. This file holds x86-specific
17 Needless to say, code should use the generic functions - this file is *only*
35 - packages
36 - cores
37 - threads
48 Package-related topology information in the kernel:
50 - cpuinfo_x86.x86_max_cores:
54 - cpuinfo_x86.x86_max_dies:
[all …]
/Linux-v5.15/tools/perf/pmu-events/arch/x86/broadwellde/
Dbdwde-metrics.json3 "BriefDescription": "Instructions Per Cycle (per logical thread)",
9 "BriefDescription": "Uops Per Instruction",
27 "BriefDescription": "Cycles Per Instruction (threaded)",
33 …"BriefDescription": "Per-thread actual clocks when the logical processor is active. This is called…
39 "BriefDescription": "Total issue-pipeline slots",
51 "BriefDescription": "Instructions Per Cycle (per physical core)",
57 …"BriefDescription": "Instruction-Level-Parallelism (average number of uops executed when there is …
58 …"MetricExpr": "UOPS_EXECUTED.THREAD / ( cpu@uops_executed.core\\,cmask\\=1@ / 2) if #SMT_on else U…
64 …"MetricExpr": "2* ( RS_EVENTS.EMPTY_CYCLES - ICACHE.IFDATA_STALL - ( 14 * ITLB_MISSES.STLB_HIT +
75 "BriefDescription": "Actual Average Latency for L1 data-cache miss demand loads",
[all …]
/Linux-v5.15/tools/testing/selftests/powerpc/ptrace/
Dptrace-perf-hwbreak.c1 // SPDX-License-Identifier: GPL-2.0+
21 /* Non-overlapping address range */
38 while (getline(&line, &len, fp) != -1) { in pid_max_addr()
51 return -1; in pid_max_addr()
57 attr->type = PERF_TYPE_BREAKPOINT; in perf_user_event_attr_set()
58 attr->size = sizeof(struct perf_event_attr); in perf_user_event_attr_set()
59 attr->bp_type = HW_BREAKPOINT_R; in perf_user_event_attr_set()
60 attr->bp_addr = addr; in perf_user_event_attr_set()
61 attr->bp_len = len; in perf_user_event_attr_set()
62 attr->exclude_kernel = 1; in perf_user_event_attr_set()
[all …]
/Linux-v5.15/tools/perf/Documentation/
Dperf-stat.txt1 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 …]
/Linux-v5.15/tools/perf/pmu-events/arch/x86/ivytown/
Divt-metrics.json7-lines are fetched from the memory subsystem; parsed into instructions; and lastly decoded into mi…
10 …nd undersupplies its Backend. SMT version; use when SMT is enabled and measuring per logical CPU.",
14-lines are fetched from the memory subsystem; parsed into instructions; and lastly decoded into mi…
18 …"MetricExpr": "( UOPS_ISSUED.ANY - UOPS_RETIRED.RETIRE_SLOTS + 4 * INT_MISC.RECOVERY_CYCLES ) / (4…
21 …s for which the issue-pipeline was blocked due to recovery from earlier incorrect speculation. For…
24 …ue to incorrect speculations. SMT version; use when SMT is enabled and measuring per logical CPU.",
25 …"MetricExpr": "( UOPS_ISSUED.ANY - UOPS_RETIRED.RETIRE_SLOTS + 4 * (( INT_MISC.RECOVERY_CYCLES_ANY…
28-pipeline was blocked due to recovery from earlier incorrect speculation. For example; wasted work…
32 …"MetricExpr": "1 - ( (IDQ_UOPS_NOT_DELIVERED.CORE / (4 * cycles)) + (( UOPS_ISSUED.ANY - UOPS_RETI…
35-of-order scheduler dispatches ready uops into their respective execution units; and once complete…
[all …]
/Linux-v5.15/tools/perf/pmu-events/arch/x86/ivybridge/
Divb-metrics.json7-lines are fetched from the memory subsystem; parsed into instructions; and lastly decoded into mi…
10 …nd undersupplies its Backend. SMT version; use when SMT is enabled and measuring per logical CPU.",
14-lines are fetched from the memory subsystem; parsed into instructions; and lastly decoded into mi…
18 …"MetricExpr": "( UOPS_ISSUED.ANY - UOPS_RETIRED.RETIRE_SLOTS + 4 * INT_MISC.RECOVERY_CYCLES ) / (4…
21 …s for which the issue-pipeline was blocked due to recovery from earlier incorrect speculation. For…
24 …ue to incorrect speculations. SMT version; use when SMT is enabled and measuring per logical CPU.",
25 …"MetricExpr": "( UOPS_ISSUED.ANY - UOPS_RETIRED.RETIRE_SLOTS + 4 * (( INT_MISC.RECOVERY_CYCLES_ANY…
28-pipeline was blocked due to recovery from earlier incorrect speculation. For example; wasted work…
32 …"MetricExpr": "1 - ( (IDQ_UOPS_NOT_DELIVERED.CORE / (4 * cycles)) + (( UOPS_ISSUED.ANY - UOPS_RETI…
35-of-order scheduler dispatches ready uops into their respective execution units; and once complete…
[all …]
/Linux-v5.15/Documentation/devicetree/bindings/arm/
Dete.yaml1 # SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause
4 ---
6 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
11 - Suzuki K Poulose <suzuki.poulose@arm.com>
12 - Mathieu Poirier <mathieu.poirier@linaro.org>
15 Arm Embedded Trace Extension(ETE) is a per CPU trace component that
16 allows tracing the CPU execution. It overlaps with the CoreSight ETMv4
19 components (e.g, TMC-ETR) or other means (e.g, using a per CPU buffer
21 legacy CoreSight components, a node must be listed per instance, along
22 with any optional connection graph as per the coresight bindings.
[all …]
/Linux-v5.15/samples/bpf/
Dxdp_sample_user.c1 // SPDX-License-Identifier: GPL-2.0-only
56 #define __COLUMN(x) "%'10" x " %-13s"
94 struct datarec *cpu; member
172 static const char *xdp_redirect_err_help[XDP_REDIRECT_ERR_MAX - 1] = {
213 "By default, redirect success statistics are disabled, use -s to enable.\n" in sample_print_help()
214 "The terse output mode is default, verbose mode can be activated using -v\n" in sample_print_help()
217 " rx/s Number of packets received per second\n" in sample_print_help()
218 " redir/s Number of packets successfully redirected per second\n" in sample_print_help()
219 " err,drop/s Aggregated count of errors per second (including dropped packets)\n" in sample_print_help()
220 " xmit/s Number of packets transmitted on the output device per second\n\n" in sample_print_help()
[all …]
Dmap_perf_test_user.c1 // SPDX-License-Identifier: GPL-2.0-only
83 static void test_hash_prealloc(int cpu) in test_hash_prealloc() argument
91 printf("%d:hash_map_perf pre-alloc %lld events per sec\n", in test_hash_prealloc()
92 cpu, max_cnt * 1000000000ll / (time_get_ns() - start_time)); in test_hash_prealloc()
121 static void do_test_lru(enum test_type test, int cpu) in do_test_lru() argument
130 if (test == INNER_LRU_HASH_PREALLOC && cpu) { in do_test_lru()
131 /* If CPU is not 0, create inner_lru hash map and insert the fd in do_test_lru()
132 * value into the array_of_lru_hash map. In case of CPU 0, in do_test_lru()
138 assert(cpu < MAX_NR_CPUS); in do_test_lru()
143 inner_lru_map_fds[cpu] = in do_test_lru()
[all …]
/Linux-v5.15/scripts/gdb/linux/
Dcpus.py4 # per-cpu tools
6 # Copyright (c) Siemens AG, 2011-2013
27 return gdb.selected_thread().num - 1
30 if tid > (0x100000000 - MAX_CPUS - 2):
31 return 0x100000000 - tid - 2
33 return tasks.get_thread_info(tasks.get_task_by_pid(tid))['cpu']
35 raise gdb.GdbError("Sorry, obtaining the current CPU is not yet "
39 def per_cpu(var_ptr, cpu): argument
40 if cpu == -1:
41 cpu = get_current_cpu()
[all …]

12345678910>>...43