/tools/testing/selftests/rseq/ |
D | rseq-arm.h | 121 #define RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, label) \ argument 124 "cmp %[" __rseq_str(cpu_id) "], r0\n\t" \ 164 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, 4f) in rseq_cmpeqv_storev() 171 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, %l[error1]) in rseq_cmpeqv_storev() 184 : [cpu_id] "r" (cpu), in rseq_cmpeqv_storev() 185 [current_cpu_id] "m" (rseq_get_abi()->cpu_id), in rseq_cmpeqv_storev() 232 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, 4f) in rseq_cmpnev_storeoffp_load() 239 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, %l[error1]) in rseq_cmpnev_storeoffp_load() 255 : [cpu_id] "r" (cpu), in rseq_cmpnev_storeoffp_load() 256 [current_cpu_id] "m" (rseq_get_abi()->cpu_id), in rseq_cmpnev_storeoffp_load() [all …]
|
D | rseq-s390.h | 117 #define RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, label) \ argument 119 "c %[" __rseq_str(cpu_id) "], %[" __rseq_str(current_cpu_id) "]\n\t" \ 151 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, 4f) in rseq_cmpeqv_storev() 157 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, %l[error1]) in rseq_cmpeqv_storev() 167 : [cpu_id] "r" (cpu), in rseq_cmpeqv_storev() 168 [current_cpu_id] "m" (rseq_get_abi()->cpu_id), in rseq_cmpeqv_storev() 219 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, 4f) in rseq_cmpnev_storeoffp_load() 226 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, %l[error1]) in rseq_cmpnev_storeoffp_load() 240 : [cpu_id] "r" (cpu), in rseq_cmpnev_storeoffp_load() 241 [current_cpu_id] "m" (rseq_get_abi()->cpu_id), in rseq_cmpnev_storeoffp_load() [all …]
|
D | rseq-mips.h | 127 #define RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, label) \ argument 130 "bne $4, %[" __rseq_str(cpu_id) "], " __rseq_str(label) "\n\t" 171 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, 4f) in rseq_cmpeqv_storev() 177 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, %l[error1]) in rseq_cmpeqv_storev() 189 : [cpu_id] "r" (cpu), in rseq_cmpeqv_storev() 190 [current_cpu_id] "m" (rseq_get_abi()->cpu_id), in rseq_cmpeqv_storev() 232 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, 4f) in rseq_cmpnev_storeoffp_load() 238 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, %l[error1]) in rseq_cmpnev_storeoffp_load() 253 : [cpu_id] "r" (cpu), in rseq_cmpnev_storeoffp_load() 254 [current_cpu_id] "m" (rseq_get_abi()->cpu_id), in rseq_cmpnev_storeoffp_load() [all …]
|
D | rseq-ppc.h | 143 #define RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, label) \ argument 146 "cmpw cr7, %[" __rseq_str(cpu_id) "], %%r17\n\t" \ 227 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, 4f) in rseq_cmpeqv_storev() 234 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, %l[error1]) in rseq_cmpeqv_storev() 243 : [cpu_id] "r" (cpu), in rseq_cmpeqv_storev() 244 [current_cpu_id] "m" (rseq_get_abi()->cpu_id), in rseq_cmpeqv_storev() 292 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, 4f) in rseq_cmpnev_storeoffp_load() 299 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, %l[error1]) in rseq_cmpnev_storeoffp_load() 314 : [cpu_id] "r" (cpu), in rseq_cmpnev_storeoffp_load() 315 [current_cpu_id] "m" (rseq_get_abi()->cpu_id), in rseq_cmpnev_storeoffp_load() [all …]
|
D | rseq-arm64.h | 174 #define RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, label) \ argument 176 RSEQ_ASM_OP_CMPEQ32(current_cpu_id, cpu_id, label) 220 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, 4f) in rseq_cmpeqv_storev() 225 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, %l[error1]) in rseq_cmpeqv_storev() 232 : [cpu_id] "r" (cpu), in rseq_cmpeqv_storev() 233 [current_cpu_id] "Qo" (rseq_get_abi()->cpu_id), in rseq_cmpeqv_storev() 278 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, 4f) in rseq_cmpnev_storeoffp_load() 283 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, %l[error1]) in rseq_cmpnev_storeoffp_load() 293 : [cpu_id] "r" (cpu), in rseq_cmpnev_storeoffp_load() 294 [current_cpu_id] "Qo" (rseq_get_abi()->cpu_id), in rseq_cmpnev_storeoffp_load() [all …]
|
D | rseq-x86.h | 93 #define RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, label) \ argument 95 "cmpl %[" __rseq_str(cpu_id) "], " __rseq_str(current_cpu_id) "\n\t" \ 129 RSEQ_ASM_CMP_CPU_ID(cpu_id, RSEQ_ASM_TP_SEGMENT:RSEQ_CPU_ID_OFFSET(%[rseq_offset]), 4f) in rseq_cmpeqv_storev() 135 RSEQ_ASM_CMP_CPU_ID(cpu_id, RSEQ_ASM_TP_SEGMENT:RSEQ_CPU_ID_OFFSET(%[rseq_offset]), %l[error1]) in rseq_cmpeqv_storev() 145 : [cpu_id] "r" (cpu), in rseq_cmpeqv_storev() 195 RSEQ_ASM_CMP_CPU_ID(cpu_id, RSEQ_ASM_TP_SEGMENT:RSEQ_CPU_ID_OFFSET(%[rseq_offset]), 4f) in rseq_cmpnev_storeoffp_load() 202 RSEQ_ASM_CMP_CPU_ID(cpu_id, RSEQ_ASM_TP_SEGMENT:RSEQ_CPU_ID_OFFSET(%[rseq_offset]), %l[error1]) in rseq_cmpnev_storeoffp_load() 216 : [cpu_id] "r" (cpu), in rseq_cmpnev_storeoffp_load() 261 RSEQ_ASM_CMP_CPU_ID(cpu_id, RSEQ_ASM_TP_SEGMENT:RSEQ_CPU_ID_OFFSET(%[rseq_offset]), 4f) in rseq_addv() 264 RSEQ_ASM_CMP_CPU_ID(cpu_id, RSEQ_ASM_TP_SEGMENT:RSEQ_CPU_ID_OFFSET(%[rseq_offset]), %l[error1]) in rseq_addv() [all …]
|
D | rseq-abi.h | 90 __u32 cpu_id; member
|
D | rseq.c | 63 .cpu_id = RSEQ_ABI_CPU_ID_UNINITIALIZED,
|
D | rseq.h | 125 return RSEQ_ACCESS_ONCE(rseq_get_abi()->cpu_id); in rseq_current_cpu_raw()
|
/tools/testing/selftests/net/ |
D | reuseport_bpf_cpu.c | 94 static void send_from_cpu(int cpu_id, int family, int proto) in send_from_cpu() argument 130 CPU_SET(cpu_id, &cpu_set); in send_from_cpu() 151 void receive_on_cpu(int *rcv_fd, int len, int epfd, int cpu_id, int proto) in receive_on_cpu() argument 179 fprintf(stderr, "send cpu %d, receive socket %d\n", cpu_id, i); in receive_on_cpu() 180 if (cpu_id != i) in receive_on_cpu()
|
/tools/power/x86/turbostat/ |
D | turbostat.c | 177 unsigned int cpu_id; member 338 if (cpu_is_not_present(t->cpu_id)) in for_all_cpus() 809 t->cpu_id, t->flags); in dump_counters() 905 (cpu_subset && !CPU_ISSET_S(t->cpu_id, cpu_subset_size, cpu_subset))) in format_counters() 949 outp += sprintf(outp, "%s%d", (printed++ ? delim : ""), cpus[t->cpu_id].die_id); in format_counters() 957 cpus[t->cpu_id].physical_node_id); in format_counters() 969 outp += sprintf(outp, "%s%d", (printed++ ? delim : ""), t->cpu_id); in format_counters() 1373 fprintf(outf, "cpu%d MPERF 0!\n", old->cpu_id); in delta_thread() 1770 t->cpu_id, t->apic_id, t->x2apic_id); in get_apic_id() 1780 int cpu = t->cpu_id; in get_counters() [all …]
|
/tools/perf/ |
D | builtin-timechart.c | 583 u32 cpu_id = perf_evsel__intval(evsel, sample, "cpu_id"); in process_sample_cpu_idle() local 586 c_state_end(tchart, cpu_id, sample->time); in process_sample_cpu_idle() 588 c_state_start(cpu_id, sample->time, state); in process_sample_cpu_idle() 599 u32 cpu_id = perf_evsel__intval(evsel, sample, "cpu_id"); in process_sample_cpu_frequency() local 601 p_state_change(tchart, cpu_id, sample->time, state); in process_sample_cpu_frequency() 641 u64 cpu_id = perf_evsel__intval(evsel, sample, "cpu_id"); in process_sample_power_start() local 644 c_state_start(cpu_id, sample->time, value); in process_sample_power_start() 664 u64 cpu_id = perf_evsel__intval(evsel, sample, "cpu_id"); in process_sample_power_frequency() local 667 p_state_change(tchart, cpu_id, sample->time, value); in process_sample_power_frequency()
|