Home
last modified time | relevance | path

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

1234

/tools/testing/selftests/arm64/signal/
Dtest_signals.c15 struct tdescr *current; variable
19 current = &tde; in main()
21 ksft_print_msg("%s :: %s\n", current->name, current->descr); in main()
22 if (test_setup(current) && test_init(current)) { in main()
23 test_run(current); in main()
24 test_cleanup(current); in main()
26 test_result(current); in main()
28 return current->result; in main()
Dtest_signals_utils.c23 extern struct tdescr *current;
101 default_result(current, 1); in handle_signal_unsupported()
158 default_result(current, 1); in handle_signal_ok()
179 if (current->sig_unsupp && signum == current->sig_unsupp && in default_handler()
180 handle_signal_unsupported(current, si, uc)) { in default_handler()
182 } else if (current->sig_trig && signum == current->sig_trig && in default_handler()
183 handle_signal_trigger(current, si, uc)) { in default_handler()
185 } else if (current->sig_ok && signum == current->sig_ok && in default_handler()
186 handle_signal_ok(current, si, uc)) { in default_handler()
188 } else if (signum == sig_copyctx && current->live_uc && in default_handler()
[all …]
Dsignals.S51 ldr x0, current
/tools/power/cpupower/lib/
Dcpufreq.c265 struct cpufreq_available_governors *current = NULL; in cpufreq_get_available_governors() local
280 if (current) { in cpufreq_get_available_governors()
281 current->next = malloc(sizeof(*current)); in cpufreq_get_available_governors()
282 if (!current->next) in cpufreq_get_available_governors()
284 current = current->next; in cpufreq_get_available_governors()
289 current = first; in cpufreq_get_available_governors()
291 current->first = first; in cpufreq_get_available_governors()
292 current->next = NULL; in cpufreq_get_available_governors()
294 current->governor = malloc(i - pos + 1); in cpufreq_get_available_governors()
295 if (!current->governor) in cpufreq_get_available_governors()
[all …]
/tools/testing/selftests/rtc/
Dsetdate.c24 struct rtc_time new, current; in main() local
65 retval = ioctl(fd, RTC_RD_TIME, &current); in main()
72 current.tm_mday, current.tm_mon + 1, current.tm_year + 1900, in main()
73 current.tm_hour, current.tm_min, current.tm_sec); in main()
/tools/iio/
Diio_utils.c31 char *current; in iioutils_break_up_name() local
43 current = strdup(full_name + strlen(prefix) + 1); in iioutils_break_up_name()
44 if (!current) in iioutils_break_up_name()
47 working = strtok(current, "_\0"); in iioutils_break_up_name()
49 free(current); in iioutils_break_up_name()
66 free(current); in iioutils_break_up_name()
321 struct iio_channel_info *current; in build_channel_array() local
385 current = &(*ci_array)[count++]; in build_channel_array()
421 current->scale = 1.0; in build_channel_array()
422 current->offset = 0; in build_channel_array()
[all …]
/tools/testing/selftests/cgroup/
Dtest_kmem.c56 long slab0, slab1, current; in test_kmem_basic() local
77 current = cg_read_long(cg, "memory.current"); in test_kmem_basic()
78 if (current <= 0) in test_kmem_basic()
81 if (slab1 < slab0 / 2 && current < slab0 / 2) in test_kmem_basic()
165 long current, slab, anon, file, kernel_stack, pagetables, percpu, sock, sum; in test_kmem_memcg_deletion() local
182 current = cg_read_long(parent, "memory.current"); in test_kmem_memcg_deletion()
190 if (current < 0 || slab < 0 || anon < 0 || file < 0 || in test_kmem_memcg_deletion()
195 if (abs(sum - current) < MAX_VMSTAT_ERROR) { in test_kmem_memcg_deletion()
198 printf("memory.current = %ld\n", current); in test_kmem_memcg_deletion()
359 long current, percpu; in test_percpu_basic() local
[all …]
Dtest_memcontrol.c93 long anon, current; in alloc_anon_50M_check() local
100 current = cg_read_long(cgroup, "memory.current"); in alloc_anon_50M_check()
101 if (current < size) in alloc_anon_50M_check()
104 if (!values_close(size, current, 3)) in alloc_anon_50M_check()
111 if (!values_close(anon, current, 3)) in alloc_anon_50M_check()
124 long current, file; in alloc_pagecache_50M_check() local
134 current = cg_read_long(cgroup, "memory.current"); in alloc_pagecache_50M_check()
135 if (current < size) in alloc_pagecache_50M_check()
142 if (!values_close(file, current, 10)) in alloc_pagecache_50M_check()
160 long current; in test_memcg_current() local
[all …]
/tools/testing/selftests/bpf/progs/
Dtest_task_pt_regs.c20 struct task_struct *current; in handle_uprobe() local
23 current = bpf_get_current_task_btf(); in handle_uprobe()
24 regs = (struct pt_regs *) bpf_task_pt_regs(current); in handle_uprobe()
/tools/testing/selftests/drivers/net/mlxsw/
Dqos_headroom.sh70 local current=$(get_prio_pg)
71 test "$current" = "$expect"
72 check_err $? "prio2buffer is '$current', expected '$expect'"
79 local current=$(get_prio_pfc)
80 test "$current" = "$expect"
81 check_err $? "prio PFC is '$current', expected '$expect'"
88 local current=$(get_prio_tc)
89 test "$current" = "$expect"
90 check_err $? "prio_tc is '$current', expected '$expect'"
99 local current=$(get_buf_size $idx)
[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()
Dcount_stcx_fail.c81 u64 current, overhead; in determine_overhead() local
89 current = events[0].result.value; in determine_overhead()
90 if (current < overhead) { in determine_overhead()
91 printf("Replacing overhead %llu with %llu\n", overhead, current); in determine_overhead()
92 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.c102 struct per_pidcomm *current; member
224 p->current = c; in pid_set_comm()
229 p->current = c; in pid_set_comm()
237 p->current = c; in pid_set_comm()
248 if (pp->current && pp->current->comm && !p->current) in pid_fork()
249 pid_set_comm(tchart, pid, pp->current->comm); in pid_fork()
252 if (p->current && !p->current->start_time) { in pid_fork()
253 p->current->start_time = timestamp; in pid_fork()
254 p->current->state_since = timestamp; in pid_fork()
263 if (p->current) in pid_exit()
[all …]
/tools/testing/selftests/drivers/net/netdevsim/
Dethtool-coalesce.sh111 current=$(update_current_settings)
113 check $? "$current" "$expected"
Dethtool-ring.sh73 current=$(update_current_settings)
75 check $? "$current" "$expected"
/tools/testing/selftests/bpf/bpf_testmod/
Dbpf_testmod.c27 trace_bpf_testmod_test_read(current, &ctx); in bpf_testmod_test_read()
45 trace_bpf_testmod_test_write_bare(current, &ctx); in bpf_testmod_test_write()
/tools/testing/selftests/ftrace/test.d/
Dfunctions13 reset_tracer() { # reset the current tracer
33 reset_trigger() { # reset all current setting triggers
40 reset_events_filter() { # reset all current setting filters
79 clear_synthetic_events() { # reset all current synthetic events
86 clear_dynamic_events() { # reset all current dynamic events
/tools/testing/selftests/net/forwarding/
Dethtool.sh240 for current in ${speeds_arr[@]}; do
241 if [[ $current -gt $max_speed ]]; then
242 max_speed=$current
/tools/spi/
Dspidev_test.c477 struct timespec current; in main() local
481 clock_gettime(CLOCK_MONOTONIC, &current); in main()
482 if (current.tv_sec - last_stat.tv_sec > interval) { in main()
484 last_stat = current; in main()
/tools/include/linux/
Dlockdep.h41 #define current (__curr()) macro
/tools/lib/traceevent/Documentation/
Dlibtraceevent-endian_read.txt20 account the endianness of the raw data and the current host. The _tep_ argument
27 the current host. In case of an error, 0 is returned.
/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
/tools/perf/util/
Ddb-export.c216 struct call_path *current = &dbe->cpr->call_path; in call_path_from_sample() local
263 current = call_path__findnew(dbe->cpr, current, in call_path_from_sample()
273 if (current == &dbe->cpr->call_path) { in call_path_from_sample()
278 return current; in call_path_from_sample()

1234