Home
last modified time | relevance | path

Searched defs:cpu (Results 1 – 25 of 195) sorted by relevance

12345678

/tools/power/cpupower/utils/
Dcpufreq-info.c58 unsigned int cpu, nr_cpus; in proc_cpufreq_output() local
163 static int get_boost_mode_x86(unsigned int cpu) in get_boost_mode_x86()
245 static int get_boost_mode(unsigned int cpu) in get_boost_mode()
272 static int get_freq_kernel(unsigned int cpu, unsigned int human) in get_freq_kernel()
291 static int get_freq_hardware(unsigned int cpu, unsigned int human) in get_freq_hardware()
309 static int get_hardware_limits(unsigned int cpu, unsigned int human) in get_hardware_limits()
332 static int get_driver(unsigned int cpu) in get_driver()
346 static int get_policy(unsigned int cpu) in get_policy()
368 static int get_available_governors(unsigned int cpu) in get_available_governors()
391 static int get_affected_cpus(unsigned int cpu) in get_affected_cpus()
[all …]
/tools/power/x86/intel-speed-select/
Disst-core.c9 int isst_write_pm_config(int cpu, int cp_state) in isst_write_pm_config()
29 int isst_read_pm_config(int cpu, int *cp_state, int *cp_cap) in isst_read_pm_config()
47 int isst_get_ctdp_levels(int cpu, struct isst_pkg_ctdp *pkg_dev) in isst_get_ctdp_levels()
74 int isst_get_ctdp_control(int cpu, int config_index, in isst_get_ctdp_control()
109 int isst_get_tdp_info(int cpu, int config_index, in isst_get_tdp_info()
132 int isst_get_pwr_info(int cpu, int config_index, in isst_get_pwr_info()
154 void isst_get_uncore_p0_p1_info(int cpu, int config_index, in isst_get_uncore_p0_p1_info()
176 void isst_get_p1_info(int cpu, int config_index, in isst_get_p1_info()
199 void isst_get_uncore_mem_freq(int cpu, int config_index, in isst_get_uncore_mem_freq()
217 int isst_get_tjmax_info(int cpu, int config_index, in isst_get_tjmax_info()
[all …]
Disst-display.c169 static int print_package_info(int cpu, FILE *outf) in print_package_info()
191 static void _isst_pbf_display_information(int cpu, FILE *outf, int level, in _isst_pbf_display_information()
234 static void _isst_fact_display_information(int cpu, FILE *outf, int level, in _isst_fact_display_information()
322 void isst_ctdp_display_core_info(int cpu, FILE *outf, char *prefix, in isst_ctdp_display_core_info()
356 void isst_ctdp_display_information(int cpu, FILE *outf, int tdp_level, in isst_ctdp_display_information()
586 void isst_pbf_display_information(int cpu, FILE *outf, int level, in isst_pbf_display_information()
596 void isst_fact_display_information(int cpu, FILE *outf, int level, in isst_fact_display_information()
608 void isst_clos_display_information(int cpu, FILE *outf, int clos, in isst_clos_display_information()
650 void isst_clos_display_clos_information(int cpu, FILE *outf, in isst_clos_display_clos_information()
694 void isst_clos_display_assoc_information(int cpu, FILE *outf, int clos) in isst_clos_display_assoc_information()
[all …]
Disst-config.c69 short cpu; member
202 static int get_stored_topology_info(int cpu, int *core_id, int *pkg_id, int *die_id) in get_stored_topology_info()
284 int get_physical_package_id(int cpu) in get_physical_package_id()
302 int get_physical_core_id(int cpu) in get_physical_core_id()
320 int get_physical_die_id(int cpu) in get_physical_die_id()
341 int get_cpufreq_base_freq(int cpu) in get_cpufreq_base_freq()
351 static void set_cpu_online_offline(int cpu, int state) in set_cpu_online_offline()
652 void set_cpu_mask_from_punit_coremask(int cpu, unsigned long long core_mask, in set_cpu_mask_from_punit_coremask()
693 static int isst_send_mmio_command(unsigned int cpu, unsigned int reg, int write, in isst_send_mmio_command()
740 int isst_send_mbox_command(unsigned int cpu, unsigned char command, in isst_send_mbox_command()
[all …]
/tools/power/cpupower/lib/
Dcpufreq.c23 static unsigned int sysfs_cpufreq_read_file(unsigned int cpu, const char *fname, in sysfs_cpufreq_read_file()
35 static unsigned int sysfs_cpufreq_write_file(unsigned int cpu, in sysfs_cpufreq_write_file()
87 static unsigned long sysfs_cpufreq_get_one_value(unsigned int cpu, in sysfs_cpufreq_get_one_value()
126 static char *sysfs_cpufreq_get_one_string(unsigned int cpu, in sysfs_cpufreq_get_one_string()
168 static int sysfs_cpufreq_write_one_value(unsigned int cpu, in sysfs_cpufreq_write_one_value()
182 unsigned long cpufreq_get_freq_kernel(unsigned int cpu) in cpufreq_get_freq_kernel()
187 unsigned long cpufreq_get_freq_hardware(unsigned int cpu) in cpufreq_get_freq_hardware()
192 unsigned long cpufreq_get_transition_latency(unsigned int cpu) in cpufreq_get_transition_latency()
197 int cpufreq_get_hardware_limits(unsigned int cpu, in cpufreq_get_hardware_limits()
215 char *cpufreq_get_driver(unsigned int cpu) in cpufreq_get_driver()
[all …]
Dcpuidle.c29 unsigned int cpuidle_state_file_exists(unsigned int cpu, in cpuidle_state_file_exists()
51 unsigned int cpuidle_state_read_file(unsigned int cpu, in cpuidle_state_read_file()
86 unsigned int cpuidle_state_write_file(unsigned int cpu, in cpuidle_state_write_file()
133 unsigned long long cpuidle_state_get_one_value(unsigned int cpu, in cpuidle_state_get_one_value()
173 static char *cpuidle_state_get_one_string(unsigned int cpu, in cpuidle_state_get_one_string()
207 int cpuidle_is_state_disabled(unsigned int cpu, in cpuidle_is_state_disabled()
228 int cpuidle_state_disable(unsigned int cpu, in cpuidle_state_disable()
251 unsigned long cpuidle_state_latency(unsigned int cpu, in cpuidle_state_latency()
257 unsigned long cpuidle_state_usage(unsigned int cpu, in cpuidle_state_usage()
263 unsigned long long cpuidle_state_time(unsigned int cpu, in cpuidle_state_time()
[all …]
/tools/perf/scripts/python/
Dstat-cpi.py10 def get_key(time, event, cpu, thread): argument
13 def store_key(time, cpu, thread): argument
23 def store(time, event, cpu, thread, val, ena, run): argument
31 def get(time, event, cpu, thread): argument
35 def stat__cycles_k(cpu, thread, time, val, ena, run): argument
38 def stat__instructions_k(cpu, thread, time, val, ena, run): argument
41 def stat__cycles_u(cpu, thread, time, val, ena, run): argument
44 def stat__instructions_u(cpu, thread, time, val, ena, run): argument
47 def stat__cycles(cpu, thread, time, val, ena, run): argument
50 def stat__instructions(cpu, thread, time, val, ena, run): argument
Dnetdev-times.py232 def irq__softirq_entry(name, context, cpu, sec, nsec, pid, comm, callchain, vec): argument
238 def irq__softirq_exit(name, context, cpu, sec, nsec, pid, comm, callchain, vec): argument
244 def irq__softirq_raise(name, context, cpu, sec, nsec, pid, comm, callchain, vec): argument
250 def irq__irq_handler_entry(name, context, cpu, sec, nsec, pid, comm, argument
256 def irq__irq_handler_exit(name, context, cpu, sec, nsec, pid, comm, callchain, irq, ret): argument
260 def napi__napi_poll(name, context, cpu, sec, nsec, pid, comm, callchain, napi, argument
266 def net__netif_receive_skb(name, context, cpu, sec, nsec, pid, comm, callchain, skbaddr, argument
272 def net__netif_rx(name, context, cpu, sec, nsec, pid, comm, callchain, skbaddr, argument
278 def net__net_dev_queue(name, context, cpu, sec, nsec, pid, comm, callchain, argument
284 def net__net_dev_xmit(name, context, cpu, sec, nsec, pid, comm, callchain, argument
[all …]
/tools/testing/selftests/rseq/
Drseq-skip.h9 int rseq_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t newv, int cpu) in rseq_cmpeqv_storev()
16 long voffp, intptr_t *load, int cpu) in rseq_cmpnev_storeoffp_load()
22 int rseq_addv(intptr_t *v, intptr_t count, int cpu) in rseq_addv()
30 intptr_t newv, int cpu) in rseq_cmpeqv_trystorev_storev()
38 intptr_t newv, int cpu) in rseq_cmpeqv_trystorev_storev_release()
46 intptr_t newv, int cpu) in rseq_cmpeqv_cmpeqv_storev()
54 intptr_t newv, int cpu) in rseq_cmpeqv_trymemcpy_storev()
62 intptr_t newv, int cpu) in rseq_cmpeqv_trymemcpy_storev_release()
Drseq-x86.h116 int rseq_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t newv, int cpu) in rseq_cmpeqv_storev()
182 long voffp, intptr_t *load, int cpu) in rseq_cmpnev_storeoffp_load()
250 int rseq_addv(intptr_t *v, intptr_t count, int cpu) in rseq_addv()
304 int rseq_offset_deref_addv(intptr_t *ptr, long off, intptr_t inc, int cpu) in rseq_offset_deref_addv()
357 intptr_t newv, int cpu) in rseq_cmpeqv_trystorev_storev()
428 intptr_t newv, int cpu) in rseq_cmpeqv_trystorev_storev_release()
436 intptr_t newv, int cpu) in rseq_cmpeqv_cmpeqv_storev()
512 intptr_t newv, int cpu) in rseq_cmpeqv_trymemcpy_storev()
626 intptr_t newv, int cpu) in rseq_cmpeqv_trymemcpy_storev_release()
725 int rseq_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t newv, int cpu) in rseq_cmpeqv_storev()
[all …]
Drseq-arm.h151 int rseq_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t newv, int cpu) in rseq_cmpeqv_storev()
219 long voffp, intptr_t *load, int cpu) in rseq_cmpnev_storeoffp_load()
291 int rseq_addv(intptr_t *v, intptr_t count, int cpu) in rseq_addv()
346 intptr_t newv, int cpu) in rseq_cmpeqv_trystorev_storev()
422 intptr_t newv, int cpu) in rseq_cmpeqv_trystorev_storev_release()
499 intptr_t newv, int cpu) in rseq_cmpeqv_cmpeqv_storev()
583 intptr_t newv, int cpu) in rseq_cmpeqv_trymemcpy_storev()
706 intptr_t newv, int cpu) in rseq_cmpeqv_trymemcpy_storev_release()
Drseq-s390.h138 int rseq_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t newv, int cpu) in rseq_cmpeqv_storev()
206 long voffp, intptr_t *load, int cpu) in rseq_cmpnev_storeoffp_load()
276 int rseq_addv(intptr_t *v, intptr_t count, int cpu) in rseq_addv()
330 intptr_t newv, int cpu) in rseq_cmpeqv_trystorev_storev()
403 intptr_t newv, int cpu) in rseq_cmpeqv_trystorev_storev_release()
411 intptr_t newv, int cpu) in rseq_cmpeqv_cmpeqv_storev()
489 intptr_t newv, int cpu) in rseq_cmpeqv_trymemcpy_storev()
605 intptr_t newv, int cpu) in rseq_cmpeqv_trymemcpy_storev_release()
/tools/power/cpupower/utils/helpers/
Dsysfs.c47 int sysfs_is_cpu_online(unsigned int cpu) in sysfs_is_cpu_online()
103 unsigned int sysfs_idlestate_file_exists(unsigned int cpu, in sysfs_idlestate_file_exists()
124 unsigned int sysfs_idlestate_read_file(unsigned int cpu, unsigned int idlestate, in sysfs_idlestate_read_file()
157 unsigned int sysfs_idlestate_write_file(unsigned int cpu, in sysfs_idlestate_write_file()
203 static unsigned long long sysfs_idlestate_get_one_value(unsigned int cpu, in sysfs_idlestate_get_one_value()
243 static char *sysfs_idlestate_get_one_string(unsigned int cpu, in sysfs_idlestate_get_one_string()
277 int sysfs_is_idlestate_disabled(unsigned int cpu, in sysfs_is_idlestate_disabled()
298 int sysfs_idlestate_disable(unsigned int cpu, in sysfs_idlestate_disable()
321 unsigned long sysfs_get_idlestate_latency(unsigned int cpu, in sysfs_get_idlestate_latency()
327 unsigned long sysfs_get_idlestate_usage(unsigned int cpu, in sysfs_get_idlestate_usage()
[all …]
Dmsr.c27 int read_msr(int cpu, unsigned int idx, unsigned long long *val) in read_msr()
56 int write_msr(int cpu, unsigned int idx, unsigned long long val) in write_msr()
76 int msr_intel_get_perf_bias(unsigned int cpu) in msr_intel_get_perf_bias()
90 int msr_intel_set_perf_bias(unsigned int cpu, unsigned int val) in msr_intel_set_perf_bias()
103 unsigned long long msr_intel_get_turbo_ratio(unsigned int cpu) in msr_intel_get_turbo_ratio()
Dhelpers.h144 static inline int decode_pstates(unsigned int cpu, unsigned int cpu_family, in decode_pstates()
149 static inline int read_msr(int cpu, unsigned int idx, unsigned long long *val) in read_msr()
151 static inline int write_msr(int cpu, unsigned int idx, unsigned long long val) in write_msr()
153 static inline int msr_intel_set_perf_bias(unsigned int cpu, unsigned int val) in msr_intel_set_perf_bias()
155 static inline int msr_intel_get_perf_bias(unsigned int cpu) in msr_intel_get_perf_bias()
157 static inline unsigned long long msr_intel_get_turbo_ratio(unsigned int cpu) in msr_intel_get_turbo_ratio()
162 static inline int cpufreq_has_boost_support(unsigned int cpu, int *support, in cpufreq_has_boost_support()
/tools/perf/util/
Dcpumap.c54 int cpu, i = 0; in cpu_map__from_mask() local
98 static int cpu__get_topology_int(int cpu, const char *name, int *value) in cpu__get_topology_int()
108 int cpu_map__get_socket_id(int cpu) in cpu_map__get_socket_id()
116 int cpu; in cpu_map__get_socket() local
131 int cpu_map__build_map(struct perf_cpu_map *cpus, struct perf_cpu_map **res, in cpu_map__build_map()
137 int cpu, s1, s2; in cpu_map__build_map() local
163 int cpu_map__get_die_id(int cpu) in cpu_map__get_die_id()
172 int cpu, die_id, s; in cpu_map__get_die() local
203 int cpu_map__get_core_id(int cpu) in cpu_map__get_core_id()
209 int cpu_map__get_node_id(int cpu) in cpu_map__get_node_id()
[all …]
Dstat-shadow.c30 int cpu; member
99 int cpu, in saved_value_lookup()
196 int ctx, int cpu, u64 count) in update_runtime_stat()
211 int cpu, struct runtime_stat *st) in perf_stat__update_shadow_stats()
425 enum stat_type type, int ctx, int cpu) in runtime_stat_avg()
437 enum stat_type type, int ctx, int cpu) in runtime_stat_n()
449 int cpu, in print_stalled_cycles_frontend()
473 int cpu, in print_stalled_cycles_backend()
493 int cpu, in print_branch_misses()
514 int cpu, in print_l1_dcache_misses()
[all …]
Dcounts.h21 perf_counts(struct perf_counts *counts, int cpu, int thread) in perf_counts()
27 perf_counts__is_loaded(struct perf_counts *counts, int cpu, int thread) in perf_counts__is_loaded()
33 perf_counts__set_loaded(struct perf_counts *counts, int cpu, int thread, bool loaded) in perf_counts__set_loaded()
/tools/lib/perf/
Devsel.c47 int cpu, thread; in perf_evsel__alloc_fd() local
60 pid_t pid, int cpu, int group_fd, in sys_perf_event_open()
69 int cpu, thread, err = 0; in perf_evsel__open() local
117 static void perf_evsel__close_fd_cpu(struct perf_evsel *evsel, int cpu) in perf_evsel__close_fd_cpu()
130 int cpu; in perf_evsel__close_fd() local
151 void perf_evsel__close_cpu(struct perf_evsel *evsel, int cpu) in perf_evsel__close_cpu()
184 int perf_evsel__read(struct perf_evsel *evsel, int cpu, int thread, in perf_evsel__read()
202 int cpu) in perf_evsel__run_ioctl()
217 int perf_evsel__enable_cpu(struct perf_evsel *evsel, int cpu) in perf_evsel__enable_cpu()
232 int perf_evsel__disable_cpu(struct perf_evsel *evsel, int cpu) in perf_evsel__disable_cpu()
/tools/power/x86/x86_energy_perf_policy/
Dx86_energy_perf_policy.c361 int cpu; in validate_cpu_selected_set() local
376 int cpu = 0; in parse_cmdline_cpu() local
677 int get_msr(int cpu, int offset, unsigned long long *msr) in get_msr()
701 int put_msr(int cpu, int offset, unsigned long long new_msr) in put_msr()
724 void print_hwp_cap(int cpu, struct msr_hwp_cap *cap, char *str) in print_hwp_cap()
732 void read_hwp_cap(int cpu, struct msr_hwp_cap *cap, unsigned int msr_offset) in read_hwp_cap()
744 void print_hwp_request(int cpu, struct msr_hwp_request *h, char *str) in print_hwp_request()
767 void read_hwp_request(int cpu, struct msr_hwp_request *hwp_req, unsigned int msr_offset) in read_hwp_request()
781 void write_hwp_request(int cpu, struct msr_hwp_request *hwp_req, unsigned int msr_offset) in write_hwp_request()
801 int print_cpu_msrs(int cpu) in print_cpu_msrs()
[all …]
/tools/power/cpupower/utils/idle_monitor/
Damd_fam14h_idle.c99 unsigned int cpu) in amd_fam14h_get_pci_info()
124 static int amd_fam14h_init(cstate_t *state, unsigned int cpu) in amd_fam14h_init()
159 static int amd_fam14h_disable(cstate_t *state, unsigned int cpu) in amd_fam14h_disable()
196 unsigned int cpu) in fam14h_nbp1_count()
208 unsigned int cpu) in fam14h_get_count_percent()
230 int num, cpu; in amd_fam14h_start() local
247 int num, cpu; in amd_fam14h_stop() local
Dmperf_monitor.c93 static int get_aperf_mperf(int cpu, unsigned long long *aval, in get_aperf_mperf()
130 static int mperf_init_stats(unsigned int cpu) in mperf_init_stats()
143 static int mperf_measure_stats(unsigned int cpu) in mperf_measure_stats()
157 unsigned int cpu) in mperf_get_count_percent()
194 unsigned int cpu) in mperf_get_count_freq()
227 int cpu; in mperf_start() local
241 int cpu; in mperf_stop() local
Dhsw_ext_idle.c63 unsigned int cpu) in hsw_ext_get_count()
89 unsigned int cpu) in hsw_ext_get_count_percent()
115 int num, cpu; in hsw_ext_start() local
131 int num, cpu; in hsw_ext_stop() local
Dsnb_idle.c61 unsigned int cpu) in snb_get_count()
87 unsigned int cpu) in snb_get_count_percent()
113 int num, cpu; in snb_start() local
129 int num, cpu; in snb_stop() local
/tools/power/cpupower/debug/i386/
Dcentrino-decode.c28 static int rdmsr(unsigned int cpu, unsigned int msr, in rdmsr()
75 static int decode_live(unsigned int cpu) in decode_live()
96 unsigned int cpu, mode = 0; in main() local

12345678