/kernel/linux/build/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/ |
H A D | cpuisolation03.sh | 87 cpu_num=$(cat isolated_cpu1.txt | sed -n "1p" ) 88 echo 0 > /sys/devices/system/cpu/cpu${cpu_num}/online 89 cpu_number=$(( $cpu_num + 1 )) 93 tst_res TPASS "cpu${cpu_num} is offline." 95 tst_res TFAIL "cpu${cpu_num} is online." 102 tst_res TPASS "cpu${cpu_num} isolated state was cleaned." 104 tst_res TFAIL "cpu${cpu_num} isolated state was not cleaned." 113 if [ $(sed -n '/^cpu#${cpu_num}/,/cpu#${cpu_number}$/p' $proc_sd \ 120 tst_res TPASS "cpu$cpu_num process migrated." 122 tst_res TFAIL "cpu$cpu_num proces [all...] |
H A D | cpuisolation02.sh | 128 if [ $res_012_pid -eq $(eval echo '$'cpu_num"$i") ];then
|
/kernel/linux/linux-5.10/tools/virtio/virtio-trace/ |
H A D | trace-agent-rw.c | 30 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() 99 /* bind my thread to cpu_num by assigning zero to the first argument */ 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() [all...] |
H A D | trace-agent.c | 109 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()
|
H A D | trace-agent.h | 28 * @cpu_num: cpu number operating this read/write thread 29 * @in_fd: fd of reading trace data path in cpu_num 30 * @out_fd: fd of writing trace data path in cpu_num 36 int cpu_num; member
|
/kernel/linux/linux-6.6/tools/virtio/virtio-trace/ |
H A D | trace-agent-rw.c | 30 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() 99 /* bind my thread to cpu_num by assigning zero to the first argument */ 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() [all...] |
H A D | trace-agent.c | 110 static const char *make_path(int cpu_num, bool this_is_write_path) in make_path() argument 123 ret = snprintf(buf, PATH_MAX, WRITE_PATH_FMT, cpu_num); in make_path() 126 ret = snprintf(buf, PATH_MAX, READ_PATH_FMT, TRACEFS, cpu_num); in make_path() 128 ret = snprintf(buf, PATH_MAX, READ_PATH_FMT, DEBUGFS, cpu_num); in make_path() 133 this_is_write_path ? "read" : "write", cpu_num, ret); in make_path() 144 static const char *make_input_path(int cpu_num) in make_input_path() argument 146 return make_path(cpu_num, false); in make_input_path() 149 static const char *make_output_path(int cpu_num) in make_output_path() argument 151 return make_path(cpu_num, true); in make_output_path()
|
H A D | trace-agent.h | 28 * @cpu_num: cpu number operating this read/write thread 29 * @in_fd: fd of reading trace data path in cpu_num 30 * @out_fd: fd of writing trace data path in cpu_num 36 int cpu_num; member
|
/kernel/linux/linux-5.10/drivers/cpufreq/ |
H A D | cppc_cpufreq.c | 187 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, re in cppc_cpufreq_cpu_init() [all...] |
/kernel/linux/linux-5.10/arch/parisc/kernel/ |
H A D | processor.c | 103 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() 170 p->cpu_num = cpu_info.cpu_num; in processor_probe()
|
/kernel/linux/linux-6.6/arch/parisc/kernel/ |
H A D | processor.c | 105 cpu_info.cpu_num = cpu_info.cpu_loc = cpuid; in processor_probe() 136 cpuid, cpu_info.cpu_num, cpu_info.cpu_loc, in processor_probe() 146 if (cpu_info.cpu_num >= NR_CPUS) { in processor_probe() 150 &dev->hpa.start, cpu_info.cpu_num, NR_CPUS); in processor_probe() 155 cpuid = cpu_info.cpu_num; in processor_probe() 172 p->cpu_num = cpu_info.cpu_num; in processor_probe()
|
/kernel/linux/linux-5.10/arch/x86/platform/sfi/ |
H A D | sfi.c | 43 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/ |
H A D | mpic_msgr.h | 105 * @cpu_num: the Linux CPU number to bind the message register to 111 u32 cpu_num) in mpic_msgr_set_destination() 113 out_be32(msgr->base, 1 << get_hard_smp_processor_id(cpu_num)); in mpic_msgr_set_destination() 110 mpic_msgr_set_destination(struct mpic_msgr *msgr, u32 cpu_num) mpic_msgr_set_destination() argument
|
/kernel/linux/linux-6.6/arch/powerpc/include/asm/ |
H A D | mpic_msgr.h | 105 * @cpu_num: the Linux CPU number to bind the message register to 111 u32 cpu_num) in mpic_msgr_set_destination() 113 out_be32(msgr->base, 1 << get_hard_smp_processor_id(cpu_num)); in mpic_msgr_set_destination() 110 mpic_msgr_set_destination(struct mpic_msgr *msgr, u32 cpu_num) mpic_msgr_set_destination() argument
|
/kernel/linux/linux-5.10/arch/ia64/kernel/ |
H A D | crash.c | 67 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-6.6/arch/ia64/kernel/ |
H A D | crash.c | 68 int cpu_num = num_online_cpus() - 1; in kdump_wait_cpu_freeze() local 71 if (atomic_read(&kdump_cpu_frozen) == cpu_num) in kdump_wait_cpu_freeze()
|
/kernel/linux/linux-5.10/tools/power/x86/x86_energy_perf_policy/ |
H A D | x86_energy_perf_policy.c | 1193 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-6.6/tools/power/x86/x86_energy_perf_policy/ |
H A D | x86_energy_perf_policy.c | 1282 int cpu_num; in for_all_proc_cpus() local 1292 retval = fscanf(fp, "cpu%u %*d %*d %*d %*d %*d %*d %*d %*d %*d %*d\n", &cpu_num); in for_all_proc_cpus() 1296 retval = func(cpu_num); in for_all_proc_cpus() 1308 int cpu_num; in for_all_cpus_in_set() local 1310 for (cpu_num = 0; cpu_num <= max_cpu_num; ++cpu_num) in for_all_cpus_in_set() 1311 if (CPU_ISSET_S(cpu_num, set_size, cpu_set)) in for_all_cpus_in_set() 1312 func(cpu_num); in for_all_cpus_in_set()
|
/kernel/linux/linux-5.10/drivers/irqchip/ |
H A D | irq-ls-scfg-msi.c | 382 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-6.6/drivers/irqchip/ |
H A D | irq-ls-scfg-msi.c | 376 u32 cpu_num; in ls_scfg_msi_probe() local 378 cpu_num = num_possible_cpus(); in ls_scfg_msi_probe() 379 if (msi_data->msir_num >= cpu_num) in ls_scfg_msi_probe() 380 msi_data->msir_num = cpu_num; in ls_scfg_msi_probe()
|
/kernel/linux/linux-5.10/drivers/crypto/marvell/octeontx/ |
H A D | otx_cptvf_algs.c | 68 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...] |
/kernel/linux/linux-6.6/drivers/crypto/marvell/octeontx/ |
H A D | otx_cptvf_algs.c | 69 static inline int get_se_device(struct pci_dev **pdev, int *cpu_num) in get_se_device() argument 77 *cpu_num = get_cpu(); in get_se_device() 86 if (*cpu_num >= count) in get_se_device() 87 *cpu_num %= count; in get_se_device() 88 *pdev = se_devices.desc[*cpu_num].dev; in get_se_device() 347 int status, cpu_num; in cpt_enc_dec() local 362 status = get_se_device(&pdev, &cpu_num); in cpt_enc_dec() 378 status = otx_cpt_do_request(pdev, req_info, cpu_num); in cpt_enc_dec() 1225 u32 status, cpu_num; in cpt_aead_enc_dec() local 1268 status = get_se_device(&pdev, &cpu_num); in cpt_aead_enc_dec() [all...] |
/kernel/linux/linux-6.6/drivers/crypto/marvell/octeontx2/ |
H A D | otx2_cptvf_algs.c | 57 static inline int get_se_device(struct pci_dev **pdev, int *cpu_num) in get_se_device() argument 65 *cpu_num = get_cpu(); in get_se_device() 73 if (*cpu_num >= se_devices.desc[0].num_queues) in get_se_device() 74 *cpu_num %= se_devices.desc[0].num_queues; in get_se_device() 356 int status, cpu_num; in cpt_enc_dec() local 376 status = get_se_device(&pdev, &cpu_num); in cpt_enc_dec() 392 status = otx2_cpt_do_request(pdev, req_info, cpu_num); in cpt_enc_dec() 1290 int status, cpu_num; in cpt_aead_enc_dec() local 1330 status = get_se_device(&pdev, &cpu_num); in cpt_aead_enc_dec() 1341 return otx2_cpt_do_request(pdev, req_info, cpu_num); in cpt_aead_enc_dec() [all...] |
H A D | otx2_cptvf_reqmgr.c | 343 int cpu_num) in otx2_cpt_do_request() 348 return process_request(lfs->pdev, req, &lfs->lf[cpu_num].pqueue, in otx2_cpt_do_request() 349 &lfs->lf[cpu_num]); in otx2_cpt_do_request() 342 otx2_cpt_do_request(struct pci_dev *pdev, struct otx2_cpt_req_info *req, int cpu_num) otx2_cpt_do_request() argument
|
/kernel/linux/linux-5.10/arch/parisc/include/asm/ |
H A D | processor.h | 96 unsigned long cpu_num; /* CPU number from PAT firmware */ member
|