Home
last modified time | relevance | path

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

12345678910>>...43

/linux/kernel/events/
H A Dhw_breakpoint.c1 // SPDX-License-Identifier: GPL-2.0+
15 * HW_breakpoint: a unified kernel/user-space hardware breakpoint facility,
16 * using the CPU's debug registers.
17 * This file contains the arch-independent routines.
24 #include <linux/cpu.h>
32 #include <linux/percpu-rwsem.h>
51 * Per-CPU constraints data.
54 /* Number of pinned CPU breakpoints in a CPU. */
56 /* Histogram of pinned task breakpoints in a CPU. */
62 static struct bp_cpuinfo *get_bp_info(int cpu, enum bp_type_idx type) in get_bp_info() argument
[all …]
/linux/arch/arm/boot/dts/samsung/
H A Dexynos5422-odroidxu3-common.dtsi1 // SPDX-License-Identifier: GPL-2.0
3 * Hardkernel Odroid XU3/XU3-Lite/XU4 boards common device tree source
12 #include <dt-bindings/input/input.h>
13 #include "exynos5422-odroid-core.dtsi"
20 gpio-keys {
21 compatible = "gpio-keys";
22 pinctrl-names = "default";
23 pinctrl-0 = <&power_key>;
25 power-key {
36 debounce-interval = <0>;
[all …]
H A Dexynos5422-odroidhc1.dts1 // SPDX-License-Identifier: GPL-2.0
10 /dts-v1/;
11 #include <dt-bindings/leds/common.h>
12 #include "exynos5422-odroid-core.dtsi"
16 compatible = "hardkernel,odroid-hc1", "samsung,exynos5800", \
19 led-controller {
20 compatible = "pwm-leds";
22 led-1 {
26 pwm-names = "pwm2";
27 max-brightness = <255>;
[all …]
/linux/drivers/bus/
H A Dmips_cdmm.c4 * Copyright (C) 2014-2015 Imagination Technologies Ltd.
13 #include <linux/cpu.h>
53 for (; table->type; ++table) { in mips_cdmm_lookup()
54 ret = (dev->type == table->type); in mips_cdmm_lookup()
67 return mips_cdmm_lookup(cdrv->id_table, cdev) != NULL; in mips_cdmm_match()
75 retval = add_uevent_var(env, "CDMM_CPU=%u", cdev->cpu); in mips_cdmm_uevent()
79 retval = add_uevent_var(env, "CDMM_TYPE=0x%02x", cdev->type); in mips_cdmm_uevent()
83 retval = add_uevent_var(env, "CDMM_REV=%u", cdev->rev); in mips_cdmm_uevent()
87 retval = add_uevent_var(env, "MODALIAS=mipscdmm:t%02X", cdev->type); in mips_cdmm_uevent()
102 CDMM_ATTR(cpu, "%u\n", dev->cpu);
[all …]
H A Darm-cci.c17 #include <linux/arm-cci.h>
49 {.compatible = "arm,cci-400", .data = CCI400_PORTS_DATA },
52 { .compatible = "arm,cci-500", },
53 { .compatible = "arm,cci-550", },
59 OF_DEV_AUXDATA("arm,cci-400-pmu", 0, NULL, &cci_ctrl_base),
60 OF_DEV_AUXDATA("arm,cci-400-pmu,r0", 0, NULL, &cci_ctrl_base),
61 OF_DEV_AUXDATA("arm,cci-400-pmu,r1", 0, NULL, &cci_ctrl_base),
62 OF_DEV_AUXDATA("arm,cci-500-pmu,r0", 0, NULL, &cci_ctrl_base),
63 OF_DEV_AUXDATA("arm,cci-550-pmu,r0", 0, NULL, &cci_ctrl_base),
67 #define DRIVER_NAME "ARM-CCI"
[all …]
/linux/tools/perf/util/bpf_skel/
H A Dkwork_top.bpf.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
40 __u32 type; member
47 __u32 cpu; member
51 __uint(type, BPF_MAP_TYPE_TASK_STORAGE);
58 __uint(type, BPF_MAP_TYPE_PERCPU_HASH);
65 __uint(type, BPF_MAP_TYPE_HASH);
72 __uint(type, BPF_MAP_TYPE_PERCPU_HASH);
79 __uint(type, BPF_MAP_TYPE_HASH);
92 static __always_inline int cpu_is_filtered(__u32 cpu) in cpu_is_filtered() argument
97 cpu_val = bpf_map_lookup_elem(&kwork_top_cpu_filter, &cpu); in cpu_is_filtered()
[all …]
H A Dkwork_trace.bpf.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
22 __u32 type; member
23 __u32 cpu; member
36 __uint(type, BPF_MAP_TYPE_HASH);
43 __uint(type, BPF_MAP_TYPE_HAS
95 __u32 cpu = bpf_get_smp_processor_id(); trace_event_match() local
[all...]
/linux/tools/perf/tests/
H A Dperf-record.c1 // SPDX-License-Identifier: GPL-2.0
20 int i, cpu = -1; in sched__get_first_possible_cpu() local
21 int nrcpus = cpu__max_cpu().cpu; in sched__get_first_possible_cpu()
27 if (sched_getaffinity(pid, size, maskp) == -1) { in sched__get_first_possible_cpu()
28 if (errno == EINVAL && nrcpus < (cpu__max_cpu().cpu << 8)) { in sched__get_first_possible_cpu()
33 return -1; in sched__get_first_possible_cpu()
38 if (cpu in sched__get_first_possible_cpu()
73 u32 cpu; test__PERF_RECORD() local
197 const u32 type = event->header.type; test__PERF_RECORD() local
[all...]
/linux/Documentation/devicetree/bindings/powerpc/
H A Dibm,powerpc-cpu-features.txt3 (skiboot/doc/device-tree/ibm,powerpc-cpu-features/binding.txt)
9 ibm,powerpc-cpu-features binding
12 This device tree binding describes CPU features available to software, with
19 /cpus/ibm,powerpc-cpu-features node binding
20 -------------------------------------------
22 Node: ibm,powerpc-cpu-features
24 Description: Container of CPU feature nodes.
26 The node name must be "ibm,powerpc-cpu-features".
35 - compatible
37 Value type: string
[all …]
/linux/Documentation/devicetree/bindings/csky/
H A Dcpus.txt2 C-SKY CPU Bindings
6 the "cpus" node, which in turn contains a number of subnodes (ie "cpu")
7 defining properties for every cpu.
13 cpus and cpu node bindings definition
16 - cpus node
18 Description: Container of cpu nodes
24 - #address-cells
26 Value type: <u32>
28 - #size-cells
30 Value type: <u32>
[all …]
/linux/tools/bpf/bpftool/
H A Dmap_perf_ring.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
53 int cpu; member
58 print_bpf_output(void *private_data, int cpu, struct perf_event_header *event) in print_bpf_output() argument
67 int idx = ctx->all_cpus ? cpu : ctx->idx; in print_bpf_output()
71 jsonw_name(json_wtr, "type"); in print_bpf_output()
72 jsonw_uint(json_wtr, e->header.type); in print_bpf_output()
73 jsonw_name(json_wtr, "cpu"); in print_bpf_output()
74 jsonw_uint(json_wtr, cpu); in print_bpf_output()
77 if (e->header.type == PERF_RECORD_SAMPLE) { in print_bpf_output()
79 jsonw_uint(json_wtr, e->time); in print_bpf_output()
[all …]
/linux/arch/x86/events/intel/
H A Duncore.c1 // SPDX-License-Identifier: GPL-2.0-only
5 #include <asm/intel-family.h>
44 int die_id = -1; in uncore_pcibus_to_dieid()
48 if (map->segment == pci_domain_nr(bus)) { in uncore_pcibus_to_dieid()
49 die_id = map->pbus_to_dieid[bus->number]; in uncore_pcibus_to_dieid()
67 return bus ? pci_domain_nr(bus) : -EINVAL; in uncore_die_to_segment()
73 int node = pcibus_to_node(dev->bus); in uncore_device_to_die()
74 int cpu; in uncore_device_to_die() local
76 for_each_cpu(cpu, cpumask_of_pcibus(dev->bus)) { in uncore_device_to_die()
77 struct cpuinfo_x86 *c = &cpu_data(cpu); in uncore_device_to_die()
[all …]
/linux/arch/x86/kernel/acpi/
H A Dcstate.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * - Added _PDC for SMP C-states on Intel CPUs
12 #include <linux/cpu.h>
23 * Initialize bm_flags based on the CPU cache properties
25 * - When cache is not shared among all CPUs, we flush cache
27 * - When cache is shared among all CPUs, we use bm_check
33 unsigned int cpu) in acpi_processor_power_init_bm_check() argument
35 struct cpuinfo_x86 *c = &cpu_data(cpu); in acpi_processor_power_init_bm_check()
37 flags->bm_check = 0; in acpi_processor_power_init_bm_check()
39 flags->bm_check = 1; in acpi_processor_power_init_bm_check()
[all …]
/linux/include/linux/sched/
H A Disolation.h9 /* Inverse of boot-time isolcpus= argument */
17 /* Inverse of boot-time isolcpus=managed_irq argument */
19 /* Inverse of boot-time nohz_full= or isolcpus=nohz arguments */
41 extern int housekeeping_any_cpu(enum hk_type type);
42 extern const struct cpumask *housekeeping_cpumask(enum hk_type type);
43 extern bool housekeeping_enabled(enum hk_type type);
44 extern void housekeeping_affine(struct task_struct *t, enum hk_type type);
45 extern bool housekeeping_test_cpu(int cpu, enum hk_type type);
51 static inline int housekeeping_any_cpu(enum hk_type type) in housekeeping_any_cpu() argument
56 static inline const struct cpumask *housekeeping_cpumask(enum hk_type type) in housekeeping_cpumask() argument
[all …]
/linux/Documentation/networking/dsa/
H A Dconfiguration.rst1 .. SPDX-License-Identifier: GPL-2.0
10 .. _dsa-config-showcases:
13 -----------------------
33 interface. The CPU port is the switch port connected to an Ethernet MAC chip.
42 - when a DSA user interface is brought up, the conduit interface is
44 - when the conduit interface is brought down, all DSA user interfaces are
71 * lan1: 192.0.2.1/30 (192.0.2.0 - 192.0.2.3)
72 * lan2: 192.0.2.5/30 (192.0.2.4 - 192.0.2.7)
73 * lan3: 192.0.2.9/30 (192.0.2.8 - 192.0.2.11)
76 * br0: 192.0.2.129/25 (192.0.2.128 - 192.0.2.255)
[all …]
/linux/arch/s390/kernel/
H A Dcache.c1 // SPDX-License-Identifier: GPL-2.0
3 * Extract CPU cache information and expose them via sysfs.
9 #include <linux/cpu.h>
43 unsigned char type : 2; member
74 for (idx = 0; idx < this_cpu_ci->num_leaves; idx++) { in show_cacheinfo()
75 cache = this_cpu_ci->info_list + idx; in show_cacheinfo()
76 seq_printf(m, "cache%-11d: ", idx); in show_cacheinfo()
77 seq_printf(m, "level=%d ", cache->level); in show_cacheinfo()
78 seq_printf(m, "type=%s ", cache_type_string[cache->type]); in show_cacheinfo()
80 cache->disable_sysfs ? "Shared" : "Private"); in show_cacheinfo()
[all …]
/linux/arch/arm64/kernel/
H A Dcacheinfo.c1 // SPDX-License-Identifier: GPL-2.0-only
35 enum cache_type type, unsigned int level) in ci_leaf_init() argument
37 this_leaf->level = level; in ci_leaf_init()
38 this_leaf->type = type; in ci_leaf_init()
48 level--; in detect_cache_level()
59 int early_cache_level(unsigned int cpu) in early_cache_level() argument
61 struct cpu_cacheinfo *this_cpu_ci = get_cpu_cacheinfo(cpu); in early_cache_level()
63 detect_cache_level(&this_cpu_ci->num_levels, &this_cpu_ci->num_leaves); in early_cache_level()
68 int init_cache_level(unsigned int cpu) in init_cache_level() argument
72 struct cpu_cacheinfo *this_cpu_ci = get_cpu_cacheinfo(cpu); in init_cache_level()
[all …]
/linux/drivers/soc/rockchip/
H A Ddtpm.c1 // SPDX-License-Identifier: GPL-2.0-only
16 .type = DTPM_NODE_VIRTUAL },
18 .type = DTPM_NODE_VIRTUAL,
20 [2] = { .name = "/cpus/cpu@0",
21 .type = DTPM_NODE_DT,
23 [3] = { .name = "/cpus/cpu@1",
24 .type = DTPM_NODE_DT,
26 [4] = { .name = "/cpus/cpu@2",
27 .type = DTPM_NODE_DT,
29 [5] = { .name = "/cpus/cpu@3",
[all …]
/linux/tools/perf/arch/arm/util/
H A Dcs-etm.c1 // SPDX-License-Identifier: GPL-2.0
6 #include "../../../util/cs-etm.h"
14 #include <linux/coresight-pmu.h>
37 #include "cs-etm.h"
73 static bool cs_etm_is_ete(struct perf_pmu *cs_etm_pmu, struct perf_cpu cpu);
74 static int cs_etm_get_ro(struct perf_pmu *pmu, struct perf_cpu cpu, const char *path, __u64 *val);
75 static bool cs_etm_pmu_path_exists(struct perf_pmu *pmu, struct perf_cpu cpu, const char *path); in cs_etm_get_version()
78 struct perf_cpu cpu) in cs_etm_get_version()
76 cs_etm_get_version(struct perf_pmu * cs_etm_pmu,struct perf_cpu cpu) cs_etm_get_version() argument
89 cs_etm_validate_context_id(struct perf_pmu * cs_etm_pmu,struct evsel * evsel,struct perf_cpu cpu) cs_etm_validate_context_id() argument
148 cs_etm_validate_timestamp(struct perf_pmu * cs_etm_pmu,struct evsel * evsel,struct perf_cpu cpu) cs_etm_validate_timestamp() argument
204 struct perf_cpu cpu; cs_etm_validate_config() local
554 struct perf_cpu cpu; cs_etm_info_priv_size() local
583 cs_etm_get_ro(struct perf_pmu * pmu,struct perf_cpu cpu,const char * path,__u64 * val) cs_etm_get_ro() argument
600 cs_etm_get_ro_signed(struct perf_pmu * pmu,struct perf_cpu cpu,const char * path,__u64 * out_val) cs_etm_get_ro_signed() argument
620 cs_etm_pmu_path_exists(struct perf_pmu * pmu,struct perf_cpu cpu,const char * path) cs_etm_pmu_path_exists() argument
638 cs_etm_is_ete(struct perf_pmu * cs_etm_pmu,struct perf_cpu cpu) cs_etm_is_ete() argument
653 cs_etm_get_legacy_trace_id(struct perf_cpu cpu) cs_etm_get_legacy_trace_id() argument
659 cs_etm_save_etmv4_header(__u64 data[],struct auxtrace_record * itr,struct perf_cpu cpu) cs_etm_save_etmv4_header() argument
691 cs_etm_save_ete_header(__u64 data[],struct auxtrace_record * itr,struct perf_cpu cpu) cs_etm_save_ete_header() argument
722 cs_etm_get_metadata(struct perf_cpu cpu,u32 * offset,struct auxtrace_record * itr,struct perf_record_auxtrace_info * info) cs_etm_get_metadata() argument
789 u64 nr_cpu, type; cs_etm_info_fill() local
796 struct perf_cpu cpu; cs_etm_info_fill() local
[all...]
/linux/arch/x86/include/asm/
H A Ddesc.h1 /* SPDX-License-Identifier: GPL-2.0 */
18 desc->limit0 = info->limit & 0x0ffff; in fill_ldt()
20 desc->base0 = (info->base_addr & 0x0000ffff); in fill_ldt()
21 desc->base1 = (info->base_addr & 0x00ff0000) >> 16; in fill_ldt()
23 desc->type = (info->read_exec_only ^ 1) << 1; in fill_ldt()
24 desc->type |= info->contents << 2; in fill_ldt()
26 desc->type |= 1; in fill_ldt()
28 desc->s = 1; in fill_ldt()
29 desc->dpl = 0x3; in fill_ldt()
30 desc->p = info->seg_not_present ^ 1; in fill_ldt()
[all …]
/linux/samples/bpf/
H A Dtracex6_user.c1 // SPDX-License-Identifier: GPL-2.0
18 #include "perf-sys.h"
25 static void check_on_cpu(int cpu, struct perf_event_attr *attr) in check_on_cpu() argument
32 /* Move to target CPU */ in check_on_cpu()
34 CPU_SET(cpu, &set); in check_on_cpu()
37 pmu_fd = sys_perf_event_open(attr, -1/*pid*/, cpu/*cpu*/, -1/*group_fd*/, 0); in check_on_cpu()
39 fprintf(stderr, "sys_perf_event_open failed on CPU %d\n", cpu); in check_on_cpu()
43 assert(bpf_map_update_elem(map_fd[0], &cpu, &pmu_fd, BPF_ANY) == 0); in check_on_cpu()
46 bpf_map_get_next_key(map_fd[1], &cpu, NULL); in check_on_cpu()
48 if (bpf_map_lookup_elem(map_fd[1], &cpu, &value)) { in check_on_cpu()
[all …]
/linux/tools/testing/selftests/mm/
H A Duffd-stress.c1 // SPDX-License-Identifier: GPL-2.0-only
11 * There are three threads running per CPU:
13 * 1) one per-CPU thread takes a per-page pthread_mutex in a random
15 * area_src), and increments a per-page counter in the same page,
18 * 2) another per-CP
104 unsigned long cpu = (unsigned long) args->cpu; locking_thread() local
163 unsigned long cpu = (unsigned long) args->cpu; background_thread() local
195 unsigned long cpu; stress() local
387 set_test_type(uffd_global_test_opts_t * gopts,const char * type) set_test_type() argument
[all...]
/linux/Documentation/bpf/
H A Dmap_cgroup_storage.rst1 .. SPDX-License-Identifier: GPL-2.0-only
8 The ``BPF_MAP_TYPE_CGROUP_STORAGE`` map type represents a local fix-sized
19 ``BPF_MAP_TYPE_CGROUP_STORAGE`` map type. Some of its behaviors was changed in
25 The map uses key of type of either ``__u64 cgroup_inode_id`` or
34 ``attach_type`` is the program's attach type.
36 Linux 5.9 added support for type ``__u64 cgroup_inode_id`` as the key type.
37 When this key type is used, then all attach types of the particular cgroup and
38 map will share the same storage. Otherwise, if the type is
57 Usage with key type as ``struct bpf_cgroup_storage_key``::
62 __uint(type, BPF_MAP_TYPE_CGROUP_STORAGE);
[all …]
/linux/arch/riscv/include/asm/
H A Dgdb_xml.h1 /* SPDX-License-Identifier: GPL-2.0-only */
13 "qXfer:features:read:riscv-64bit-cpu.xml";
17 "<!DOCTYPE target SYSTEM \"gdb-target.dtd\">"
19 "<xi:include href=\"riscv-64bit-cpu.xml\"/>"
24 "<!DOCTYPE feature SYSTEM \"gdb-target.dtd\">"
25 "<feature name=\"org.gnu.gdb.riscv.cpu\">"
26 "<reg name=\""DBG_REG_ZERO"\" bitsize=\"64\" type=\"int\" regnum=\"0\"/>"
27 "<reg name=\""DBG_REG_RA"\" bitsize=\"64\" type=\"code_ptr\"/>"
28 "<reg name=\""DBG_REG_SP"\" bitsize=\"64\" type=\"data_ptr\"/>"
29 "<reg name=\""DBG_REG_GP"\" bitsize=\"64\" type=\"data_ptr\"/>"
[all …]
/linux/tools/perf/util/
H A Dsvghelper.h1 /* SPDX-License-Identifier: GPL-2.0 */
10 void svg_ubox(int Yslot, u64 start, u64 end, double height, const char *type, int fd, int err, int …
11 void svg_lbox(int Yslot, u64 start, u64 end, double height, const char *type, int fd, int err, int …
12 void svg_fbox(int Yslot, u64 start, u64 end, double height, const char *type, int fd, int err, int …
13 void svg_box(int Yslot, u64 start, u64 end, const char *type);
14 void svg_blocked(int Yslot, int cpu, u64 start, u64 end, const char *backtrace);
15 void svg_running(int Yslot, int cpu, u64 start, u64 end, const char *backtrace);
16 void svg_waiting(int Yslot, int cpu, u64 start, u64 end, const char *backtrace);
17 void svg_cpu_box(int cpu, u64 max_frequency, u64 turbo_frequency);
20 void svg_process(int cpu, u64 start, u64 end, int pid, const char *name, const char *backtrace);
[all …]

12345678910>>...43