Home
last modified time | relevance | path

Searched refs:cpu_num (Results 1 – 22 of 22) sorted by relevance

/kernel/linux/linux-5.10/tools/virtio/virtio-trace/
Dtrace-agent-rw.c30 rw_ti->cpu_num = -1; in rw_thread_info_new()
46 rw_ti->cpu_num = cpu; in rw_thread_init()
92 static void bind_cpu(int cpu_num) in bind_cpu() argument
97 CPU_SET(cpu_num, &mask); in bind_cpu()
101 pr_err("Could not set CPU#%d affinity\n", (int)cpu_num); in bind_cpu()
110 bind_cpu(ts->cpu_num); in rw_thread_main()
131 pr_err("Splice_read in rw-thread(%d)\n", ts->cpu_num); in rw_thread_main()
141 pr_debug("Read retry(cpu:%d)\n", ts->cpu_num); in rw_thread_main()
154 ts->cpu_num); in rw_thread_main()
185 pr_err("Could not create a rw thread(%d)\n", rw_ti->cpu_num); in rw_thread_run()
Dtrace-agent.c109 static const char *make_path(int cpu_num, bool this_is_write_path) in make_path() argument
122 ret = snprintf(buf, PATH_MAX, WRITE_PATH_FMT, cpu_num); in make_path()
125 ret = snprintf(buf, PATH_MAX, READ_PATH_FMT, cpu_num); in make_path()
129 this_is_write_path ? "read" : "write", cpu_num, ret); in make_path()
140 static const char *make_input_path(int cpu_num) in make_input_path() argument
142 return make_path(cpu_num, false); in make_input_path()
145 static const char *make_output_path(int cpu_num) in make_output_path() argument
147 return make_path(cpu_num, true); in make_output_path()
Dtrace-agent.h36 int cpu_num; member
/kernel/linux/build/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/
Dcpuisolation03.sh90 cpu_num=$(cat isolated_cpu1.txt | sed -n "1p" )
91 echo 0 > /sys/devices/system/cpu/cpu${cpu_num}/online
92 cpu_number=$(( $cpu_num + 1 ))
96 tst_res TPASS "cpu${cpu_num} is offline."
98 tst_res TFAIL "cpu${cpu_num} is online."
105 tst_res TPASS "cpu${cpu_num} isolated state was cleaned."
107 tst_res TFAIL "cpu${cpu_num} isolated state was not cleaned."
123 tst_res TPASS "cpu$cpu_num process migrated."
125 tst_res TFAIL "cpu$cpu_num process is not migrated."
132 echo 1 > /sys/devices/system/cpu/cpu${cpu_num}/online
[all …]
Dcpuisolation02.sh131 if [ $res_012_pid -eq $(eval echo '$'cpu_num"$i") ];then
/kernel/linux/linux-5.10/drivers/cpufreq/
Dcppc_cpufreq.c187 int cpu_num = policy->cpu; in cppc_cpufreq_stop_cpu() local
188 struct cppc_cpudata *cpu = all_cpu_data[cpu_num]; in cppc_cpufreq_stop_cpu()
193 ret = cppc_set_perf(cpu_num, &cpu->perf_ctrls); in cppc_cpufreq_stop_cpu()
196 cpu->perf_caps.lowest_perf, cpu_num, ret); in cppc_cpufreq_stop_cpu()
245 unsigned int cpu_num = policy->cpu; in cppc_cpufreq_cpu_init() local
250 cpu->cpu = cpu_num; in cppc_cpufreq_cpu_init()
255 cpu_num, ret); in cppc_cpufreq_cpu_init()
278 policy->transition_delay_us = cppc_cpufreq_get_transition_delay_us(cpu_num); in cppc_cpufreq_cpu_init()
313 ret = cppc_set_perf(cpu_num, &cpu->perf_ctrls); in cppc_cpufreq_cpu_init()
316 cpu->perf_caps.highest_perf, cpu_num, ret); in cppc_cpufreq_cpu_init()
Dintel_pstate.c2170 static void intel_pstate_set_update_util_hook(unsigned int cpu_num) in intel_pstate_set_update_util_hook() argument
2172 struct cpudata *cpu = all_cpu_data[cpu_num]; in intel_pstate_set_update_util_hook()
2182 cpufreq_add_update_util_hook(cpu_num, &cpu->update_util, in intel_pstate_set_update_util_hook()
/kernel/linux/linux-5.10/arch/parisc/kernel/
Dprocessor.c103 cpu_info.cpu_num = cpu_info.cpu_loc = cpuid; in processor_probe()
134 cpuid, cpu_info.cpu_num, cpu_info.cpu_loc, in processor_probe()
144 if (cpu_info.cpu_num >= NR_CPUS) { in processor_probe()
148 &dev->hpa.start, cpu_info.cpu_num, NR_CPUS); in processor_probe()
153 cpuid = cpu_info.cpu_num; in processor_probe()
171 p->cpu_num = cpu_info.cpu_num; in processor_probe()
/kernel/linux/linux-5.10/arch/x86/platform/sfi/
Dsfi.c43 int cpu_num; in sfi_parse_cpus() local
46 cpu_num = SFI_GET_NUM_ENTRIES(sb, struct sfi_cpu_table_entry); in sfi_parse_cpus()
49 for (i = 0; i < cpu_num; i++) { in sfi_parse_cpus()
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dmpic_msgr.h111 u32 cpu_num) in mpic_msgr_set_destination() argument
113 out_be32(msgr->base, 1 << get_hard_smp_processor_id(cpu_num)); in mpic_msgr_set_destination()
/kernel/linux/linux-5.10/tools/power/x86/x86_energy_perf_policy/
Dx86_energy_perf_policy.c1193 int cpu_num; in for_all_proc_cpus() local
1203 retval = fscanf(fp, "cpu%u %*d %*d %*d %*d %*d %*d %*d %*d %*d %*d\n", &cpu_num); in for_all_proc_cpus()
1207 retval = func(cpu_num); in for_all_proc_cpus()
1219 int cpu_num; in for_all_cpus_in_set() local
1221 for (cpu_num = 0; cpu_num <= max_cpu_num; ++cpu_num) in for_all_cpus_in_set()
1222 if (CPU_ISSET_S(cpu_num, set_size, cpu_set)) in for_all_cpus_in_set()
1223 func(cpu_num); in for_all_cpus_in_set()
/kernel/linux/linux-5.10/arch/ia64/kernel/
Dcrash.c67 int cpu_num = num_online_cpus() - 1; in kdump_wait_cpu_freeze() local
70 if (atomic_read(&kdump_cpu_frozen) == cpu_num) in kdump_wait_cpu_freeze()
/kernel/linux/linux-5.10/drivers/irqchip/
Dirq-ls-scfg-msi.c382 u32 cpu_num; in ls_scfg_msi_probe() local
384 cpu_num = num_possible_cpus(); in ls_scfg_msi_probe()
385 if (msi_data->msir_num >= cpu_num) in ls_scfg_msi_probe()
386 msi_data->msir_num = cpu_num; in ls_scfg_msi_probe()
/kernel/linux/linux-5.10/drivers/crypto/marvell/octeontx/
Dotx_cptvf_algs.c68 static inline int get_se_device(struct pci_dev **pdev, int *cpu_num) in get_se_device() argument
76 *cpu_num = get_cpu(); in get_se_device()
85 if (*cpu_num >= count) in get_se_device()
86 *cpu_num %= count; in get_se_device()
87 *pdev = se_devices.desc[*cpu_num].dev; in get_se_device()
346 int status, cpu_num; in cpt_enc_dec() local
361 status = get_se_device(&pdev, &cpu_num); in cpt_enc_dec()
377 status = otx_cpt_do_request(pdev, req_info, cpu_num); in cpt_enc_dec()
1223 u32 status, cpu_num; in cpt_aead_enc_dec() local
1266 status = get_se_device(&pdev, &cpu_num); in cpt_aead_enc_dec()
[all …]
Dotx_cptvf_reqmgr.h225 int cpu_num);
Dotx_cptvf_reqmgr.c405 int cpu_num) in otx_cpt_do_request() argument
/kernel/linux/linux-5.10/arch/parisc/include/asm/
Dprocessor.h96 unsigned long cpu_num; /* CPU number from PAT firmware */ member
Dpdcpat.h233 unsigned long cpu_num; member
/kernel/linux/linux-5.10/drivers/acpi/
Dcppc_acpi.c1369 unsigned int cppc_get_transition_latency(int cpu_num) in cppc_get_transition_latency() argument
1385 int pcc_ss_id = per_cpu(cpu_pcc_subspace_idx, cpu_num); in cppc_get_transition_latency()
1388 cpc_desc = per_cpu(cpc_desc_ptr, cpu_num); in cppc_get_transition_latency()
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/microcode/
Dintel.c719 static int collect_cpu_info(int cpu_num, struct cpu_signature *csig) in collect_cpu_info() argument
722 struct cpuinfo_x86 *c = &cpu_data(cpu_num); in collect_cpu_info()
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/liquidio/
Docteon_device.c830 int cpu_num; in octeon_allocate_ioq_vector() local
846 cpu_num = i % num_online_cpus(); in octeon_allocate_ioq_vector()
847 cpumask_set_cpu(cpu_num, &ioq_vector->affinity_mask); in octeon_allocate_ioq_vector()
/kernel/linux/linux-5.10/tools/power/x86/turbostat/
Dturbostat.c2861 int cpu_num; in for_all_proc_cpus() local
2871 retval = fscanf(fp, "cpu%u %*d %*d %*d %*d %*d %*d %*d %*d %*d %*d\n", &cpu_num); in for_all_proc_cpus()
2875 retval = func(cpu_num); in for_all_proc_cpus()