Home
last modified time | relevance | path

Searched refs:state (Results 1 – 17 of 17) sorted by relevance

/tools/power/cpupower/utils/idle_monitor/
Dcpuidle_sysfs.c48 int cpu, state; in cpuidle_start() local
51 for (state = 0; state < cpuidle_sysfs_monitor.hw_states_num; in cpuidle_start()
52 state++) { in cpuidle_start()
53 previous_count[cpu][state] = in cpuidle_start()
54 sysfs_get_idlestate_time(cpu, state); in cpuidle_start()
56 cpu, state, previous_count[cpu][state]); in cpuidle_start()
64 int cpu, state; in cpuidle_stop() local
70 for (state = 0; state < cpuidle_sysfs_monitor.hw_states_num; in cpuidle_stop()
71 state++) { in cpuidle_stop()
72 current_count[cpu][state] = in cpuidle_stop()
[all …]
Damd_fam14h_idle.c97 static int amd_fam14h_get_pci_info(struct cstate *state, in amd_fam14h_get_pci_info() argument
102 switch (state->id) { in amd_fam14h_get_pci_info()
125 static int amd_fam14h_init(cstate_t *state, unsigned int cpu) in amd_fam14h_init() argument
130 ret = amd_fam14h_get_pci_info(state, &pci_offset, &enable_bit, cpu); in amd_fam14h_init()
135 if (state->id == NBP1) { in amd_fam14h_init()
144 dprint("Init %s: read at offset: 0x%x val: %u\n", state->name, in amd_fam14h_init()
150 state->name, PCI_MONITOR_ENABLE_REG, enable_bit, in amd_fam14h_init()
155 previous_count[state->id][cpu] = 0; in amd_fam14h_init()
160 static int amd_fam14h_disable(cstate_t *state, unsigned int cpu) in amd_fam14h_disable() argument
165 ret = amd_fam14h_get_pci_info(state, &pci_offset, &enable_bit, cpu); in amd_fam14h_disable()
[all …]
Dcpupower-monitor.c88 int state, need_len; in print_header() local
121 for (state = 0; state < monitors[mon]->hw_states_num; state++) { in print_header()
122 if (state != 0) in print_header()
124 s = monitors[mon]->hw_states[state]; in print_header()
138 int state, ret; in print_results() local
158 for (state = 0; state < monitors[mon]->hw_states_num; state++) { in print_results()
159 if (state != 0) in print_results()
162 s = monitors[mon]->hw_states[state]; in print_results()
251 int state; in list_monitors() local
260 for (state = 0; state < monitors[mon]->hw_states_num; state++) { in list_monitors()
[all …]
/tools/testing/selftests/memory-hotplug/
Don-off-test.sh32 local state=${1:-.\*}
36 grep -q $state $memory/state; then
54 grep -q online $SYSFS/devices/system/memory/memory$1/state
59 grep -q offline $SYSFS/devices/system/memory/memory$1/state
64 echo online > $SYSFS/devices/system/memory/memory$1/state
69 echo offline > $SYSFS/devices/system/memory/memory$1/state
/tools/perf/
Dbuiltin-timechart.c96 long state; member
133 int state; member
318 u32 state; member
361 static void c_state_start(int cpu, u64 timestamp, int state) in c_state_start() argument
364 cpus_cstate_state[cpu] = state; in c_state_start()
374 pwr->state = cpus_cstate_state[cpu]; in c_state_end()
395 pwr->state = cpus_pstate_state[cpu]; in p_state_change()
441 if (p && p->current && p->current->state == TYPE_NONE) { in sched_wakeup()
443 p->current->state = TYPE_WAITING; in sched_wakeup()
445 if (p && p->current && p->current->state == TYPE_BLOCKED) { in sched_wakeup()
[all …]
Dbuiltin-lock.c99 int state; member
366 seq->state = SEQ_STATE_UNINITIALIZED; in get_seq()
415 switch (seq->state) { in report_lock_acquire_event()
419 seq->state = SEQ_STATE_ACQUIRING; in report_lock_acquire_event()
425 seq->state = SEQ_STATE_READ_ACQUIRED; in report_lock_acquire_event()
488 switch (seq->state) { in report_lock_acquired_event()
518 seq->state = SEQ_STATE_ACQUIRED; in report_lock_acquired_event()
551 switch (seq->state) { in report_lock_contended_event()
573 seq->state = SEQ_STATE_CONTENDED; in report_lock_contended_event()
606 switch (seq->state) { in report_lock_release_event()
Dbuiltin-sched.c80 enum thread_state state; member
856 atom->state = THREAD_WAIT_CPU; in add_sched_out_event()
889 if (atom->state != THREAD_WAIT_CPU) in add_sched_in_event()
893 atom->state = THREAD_IGNORE; in add_sched_in_event()
897 atom->state = THREAD_SCHED_IN; in add_sched_in_event()
1042 if (sched->profile_cpu == -1 && atom->state != THREAD_SLEEPING) in latency_wakeup_event()
1051 atom->state = THREAD_WAIT_CPU; in latency_wakeup_event()
Ddesign.txt210 'error' state, where reads return end-of-file (i.e. read() returns 0)
/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
DCore.py94 def taskState(state): argument
102 if state not in states:
105 return states[state]
/tools/virtio/
Dvirtio_test.c60 struct vhost_vring_state state = { .index = info->idx }; in vhost_vq_setup() local
72 state.num = info->vring.num; in vhost_vq_setup()
73 r = ioctl(dev->control, VHOST_SET_VRING_NUM, &state); in vhost_vq_setup()
75 state.num = 0; in vhost_vq_setup()
76 r = ioctl(dev->control, VHOST_SET_VRING_BASE, &state); in vhost_vq_setup()
/tools/testing/selftests/cpu-hotplug/
Don-off-test.sh32 local state=${1:-.\*}
35 if [ -f $cpu/online ] && grep -q $state $cpu/online; then
/tools/power/cpupower/po/
Dde.po49 msgid "Package in sleep state (PC1 or deeper)"
65 msgid "Processor Core in an idle state"
245 #. P state changes via MSR are identified via cpuid 80000007
252 msgid " boost state support: \n"
285 msgid " Pstate-Pb%d: %luMHz (boost state)\n"
808 msgid "CPU %u: Can't read idle state info\n"
813 msgid "Could not determine max idle state %u\n"
868 msgid "CPU %u: Can't read C-state info\n"
874 msgid "active state: C0\n"
924 msgid " -s, --silent Only show general C-state information\n"
Dfr.po49 msgid "Package in sleep state (PC1 or deeper)"
65 msgid "Processor Core in an idle state"
244 #. P state changes via MSR are identified via cpuid 80000007
251 msgid " boost state support: \n"
284 msgid " Pstate-Pb%d: %luMHz (boost state)\n"
797 msgid "CPU %u: Can't read idle state info\n"
802 msgid "Could not determine max idle state %u\n"
857 msgid "CPU %u: Can't read C-state info\n"
863 msgid "active state: C0\n"
913 msgid " -s, --silent Only show general C-state information\n"
Dpt.po47 msgid "Package in sleep state (PC1 or deeper)"
63 msgid "Processor Core in an idle state"
243 #. P state changes via MSR are identified via cpuid 80000007
250 msgid " boost state support: \n"
283 msgid " Pstate-Pb%d: %luMHz (boost state)\n"
808 msgid "CPU %u: Can't read idle state info\n"
813 msgid "Could not determine max idle state %u\n"
868 msgid "CPU %u: Can't read C-state info\n"
874 msgid "active state: C0\n"
924 msgid " -s, --silent Only show general C-state information\n"
Dcs.po52 msgid "Package in sleep state (PC1 or deeper)"
68 msgid "Processor Core in an idle state"
249 #. P state changes via MSR are identified via cpuid 80000007
256 msgid " boost state support: \n"
289 msgid " Pstate-Pb%d: %luMHz (boost state)\n"
797 msgid "CPU %u: Can't read idle state info\n"
802 msgid "Could not determine max idle state %u\n"
857 msgid "CPU %u: Can't read C-state info\n"
863 msgid "active state: C0\n"
913 msgid " -s, --silent Only show general C-state information\n"
Dit.po49 msgid "Package in sleep state (PC1 or deeper)"
65 msgid "Processor Core in an idle state"
244 #. P state changes via MSR are identified via cpuid 80000007
251 msgid " boost state support: \n"
284 msgid " Pstate-Pb%d: %luMHz (boost state)\n"
806 msgid "CPU %u: Can't read idle state info\n"
811 msgid "Could not determine max idle state %u\n"
866 msgid "CPU %u: Can't read C-state info\n"
872 msgid "active state: C0\n"
922 msgid " -s, --silent Only show general C-state information\n"
/tools/testing/ktest/
Dktest.pl3240 my $state = "NONE";
3278 $state = "NEW";
3286 } elsif ($state eq "NEW" && /^\s*depends\s+on\s+(.*)$/) {
3291 } elsif ($state eq "NEW" && /^\s*select\s+(\S+)/) {
3313 $state = "NONE";