Home
last modified time | relevance | path

Searched refs:current (Results 1 – 25 of 36) sorted by relevance

12

/tools/power/cpupower/lib/
Dcpufreq.c266 struct cpufreq_available_governors *current = NULL; in cpufreq_get_available_governors() local
281 if (current) { in cpufreq_get_available_governors()
282 current->next = malloc(sizeof(*current)); in cpufreq_get_available_governors()
283 if (!current->next) in cpufreq_get_available_governors()
285 current = current->next; in cpufreq_get_available_governors()
290 current = first; in cpufreq_get_available_governors()
292 current->first = first; in cpufreq_get_available_governors()
293 current->next = NULL; in cpufreq_get_available_governors()
295 current->governor = malloc(i - pos + 1); in cpufreq_get_available_governors()
296 if (!current->governor) in cpufreq_get_available_governors()
[all …]
/tools/testing/selftests/timers/
Drtctest_setdate.c33 struct rtc_time new, current; in main() local
74 retval = ioctl(fd, RTC_RD_TIME, &current); in main()
81 current.tm_mday, current.tm_mon + 1, current.tm_year + 1900, in main()
82 current.tm_hour, current.tm_min, current.tm_sec); in main()
Drtctest.c348 struct rtc_time current; in main() local
359 retval = ioctl(fd, RTC_RD_TIME, &current); in main()
365 if(compare_dates(&cutoff_dates[i], &current)) { in main()
382 retval = ioctl(fd, RTC_ALM_READ, &current); in main()
388 if(compare_dates(&cutoff_dates[i], &current)) { in main()
/tools/testing/selftests/gpio/
Dgpio-mockup-chardev.c134 struct gpiochip_info *current; in list_gpiochip() local
145 current = cinfo; in list_gpiochip()
167 *ret = ioctl(fd, GPIO_GET_CHIPINFO_IOCTL, current); in list_gpiochip()
173 if (strcmp(current->label, gpiochip_name) == 0 in list_gpiochip()
174 || check_prefix(current->label, gpiochip_name)) { in list_gpiochip()
176 current++; in list_gpiochip()
279 struct gpiochip_info *current; in main() local
306 current = cinfo; in main()
308 gpio_pin_tests(current, 0); in main()
309 gpio_pin_tests(current, current->lines - 1); in main()
[all …]
/tools/iio/
Diio_utils.c34 char *current; in iioutils_break_up_name() local
46 current = strdup(full_name + strlen(prefix) + 1); in iioutils_break_up_name()
47 if (!current) in iioutils_break_up_name()
50 working = strtok(current, "_\0"); in iioutils_break_up_name()
52 free(current); in iioutils_break_up_name()
69 free(current); in iioutils_break_up_name()
320 struct iio_channel_info *current; in build_channel_array() local
387 current = &(*ci_array)[count++]; in build_channel_array()
426 current->scale = 1.0; in build_channel_array()
427 current->offset = 0; in build_channel_array()
[all …]
/tools/testing/selftests/powerpc/pmu/
Dcount_instructions.c76 u64 current, overhead; in determine_overhead() local
84 current = events[0].result.value; in determine_overhead()
85 if (current < overhead) { in determine_overhead()
86 printf("Replacing overhead %llu with %llu\n", overhead, current); in determine_overhead()
87 overhead = current; in determine_overhead()
Dlib.c193 long current; in require_paranoia_below() local
211 current = strtol(buf, &end, 10); in require_paranoia_below()
218 if (current >= level) in require_paranoia_below()
/tools/testing/selftests/powerpc/pmu/ebb/
Dinstruction_count_test.c72 uint64_t current, overhead; in determine_overhead() local
80 current = event->result.value; in determine_overhead()
81 if (current < overhead) { in determine_overhead()
82 printf("Replacing overhead %lu with %lu\n", overhead, current); in determine_overhead()
83 overhead = current; in determine_overhead()
/tools/perf/
Dbuiltin-timechart.c104 struct per_pidcomm *current; member
226 p->current = c; in pid_set_comm()
231 p->current = c; in pid_set_comm()
239 p->current = c; in pid_set_comm()
250 if (pp->current && pp->current->comm && !p->current) in pid_fork()
251 pid_set_comm(tchart, pid, pp->current->comm); in pid_fork()
254 if (p->current && !p->current->start_time) { in pid_fork()
255 p->current->start_time = timestamp; in pid_fork()
256 p->current->state_since = timestamp; in pid_fork()
265 if (p->current) in pid_exit()
[all …]
Ddesign.txt155 A read() on a counter returns the current value of the counter and possible
237 current task.
239 pid > 0: the counter is attached to a specific task (if the current task
441 This applies to all counters on the current process, whether created
Dbuiltin-trace.c85 struct thread *current; member
1535 if (trace->current == NULL) in trace__printf_interrupted_entry()
1538 ttrace = thread__priv(trace->current); in trace__printf_interrupted_entry()
1545 …printed = trace__fprintf_entry_head(trace, trace->current, duration, true, ttrace->entry_time, tr… in trace__printf_interrupted_entry()
1601 if (trace->current != thread) { in trace__sys_enter()
1602 thread__put(trace->current); in trace__sys_enter()
1603 trace->current = thread__get(thread); in trace__sys_enter()
2486 thread__zput(trace->current); in trace__run()
/tools/testing/selftests/ftrace/test.d/
Dfunctions14 reset_tracer() { # reset the current tracer
34 reset_trigger() { # reset all current setting triggers
41 reset_events_filter() { # reset all current setting filters
/tools/include/linux/
Dlockdep.h38 #define current (__curr()) macro
/tools/spi/
Dspidev_test.c465 struct timespec current; in main() local
469 clock_gettime(CLOCK_MONOTONIC, &current); in main()
470 if (current.tv_sec - last_stat.tv_sec > interval) { in main()
472 last_stat = current; in main()
/tools/perf/util/
Ddb-export.c276 struct call_path *current = &dbe->cpr->call_path; in call_path_from_sample() local
324 current = call_path__findnew(dbe->cpr, current, in call_path_from_sample()
334 if (current == &dbe->cpr->call_path) { in call_path_from_sample()
339 return current; in call_path_from_sample()
/tools/power/cpupower/
DToDo4 (current implementation has issues on AMD)
/tools/perf/Documentation/
Dperf-script-perl.txt100 $common_pid the pid of the current task
101 $common_comm the name of the current process
194 access this data in the context of the current event. Each of these
199 common_pc($context) - returns common_preempt count for the current event
200 common_flags($context) - returns common_flags for the current event
201 common_lock_depth($context) - returns common_lock_depth for the current event
Dperf-script-python.txt104 That single stream will be recorded in a file in the current directory
116 The output file created also in the current directory is named
492 common_pid the pid of the current task
493 common_comm the name of the current process
593 access this data in the context of the current event. Each of these
598 common_pc(context) - returns common_preempt count for the current event
599 common_flags(context) - returns common_flags for the current event
600 common_lock_depth(context) - returns common_lock_depth for the current event
Dtips.txt33 Show current config key-value pairs: perf config --list
Dperf-buildid-cache.txt29 Add specified kcore file to the cache. For the current host that is
Dperf-config.txt24 Show current config variables, name and value, for all sections.
188 This selects the colors for the current entry in a list of entries
352 current overhead (33.33%).
/tools/testing/selftests/tc-testing/
DREADME21 To check what is required in current setup run:
25 In the current release, tdc run will abort due to a failure in setup or
28 handled in a future version - the current workaround is to run the tests
/tools/perf/ui/
Dbrowser.h35 double percent, bool current);
Dbrowser.c22 double percent, bool current) in ui_browser__percent_color() argument
24 if (current && (!browser->use_navkeypressed || browser->navkeypressed)) in ui_browser__percent_color()
42 double percent, bool current) in ui_browser__set_percent_color() argument
44 int color = ui_browser__percent_color(browser, percent, current); in ui_browser__set_percent_color()
/tools/perf/ui/browsers/
Dannotate.c95 int nr, bool current) in annotate_browser__jumps_percent_color() argument
97 if (current && (!browser->b.use_navkeypressed || browser->b.navkeypressed)) in annotate_browser__jumps_percent_color()
107 int nr, bool current) in annotate_browser__set_jumps_percent_color() argument
109 int color = annotate_browser__jumps_percent_color(browser, nr, current); in annotate_browser__set_jumps_percent_color()

12