| /tools/testing/selftests/arm64/signal/ |
| D | test_signals.c | 15 struct tdescr *current = &tde; variable 19 ksft_print_msg("%s :: %s\n", current->name, current->descr); in main() 20 if (test_setup(current) && test_init(current)) { in main() 21 test_run(current); in main() 22 test_cleanup(current); in main() 24 test_result(current); in main() 26 return current->result; in main()
|
| D | test_signals_utils.c | 23 extern struct tdescr *current; 106 default_result(current, 1); in handle_signal_unsupported() 163 default_result(current, 1); in handle_signal_ok() 235 if (current->sig_unsupp && signum == current->sig_unsupp && in default_handler() 236 handle_signal_unsupported(current, si, uc)) { in default_handler() 238 } else if (current->sig_trig && signum == current->sig_trig && in default_handler() 239 handle_signal_trigger(current, si, uc)) { in default_handler() 241 } else if (current->sig_ok && signum == current->sig_ok && in default_handler() 242 handle_signal_ok(current, si, uc)) { in default_handler() 244 } else if (signum == sig_copyctx && current->live_uc && in default_handler() [all …]
|
| /tools/power/cpupower/lib/ |
| D | cpufreq.c | 274 struct cpufreq_available_governors *current = NULL; in cpufreq_get_available_governors() local 289 if (current) { in cpufreq_get_available_governors() 290 current->next = malloc(sizeof(*current)); in cpufreq_get_available_governors() 291 if (!current->next) in cpufreq_get_available_governors() 293 current = current->next; in cpufreq_get_available_governors() 298 current = first; in cpufreq_get_available_governors() 300 current->first = first; in cpufreq_get_available_governors() 301 current->next = NULL; in cpufreq_get_available_governors() 303 current->governor = malloc(i - pos + 1); in cpufreq_get_available_governors() 304 if (!current->governor) in cpufreq_get_available_governors() [all …]
|
| /tools/testing/selftests/cgroup/ |
| D | test_hugetlb_memcg.c | 99 long old_current, expected_current, current; in hugetlb_test_program() local 104 current = cg_read_long(test_group, "memory.current"); in hugetlb_test_program() 105 if (current - old_current >= MB(2)) { in hugetlb_test_program() 108 ksft_print_msg("before: %ld, after: %ld\n", old_current, current); in hugetlb_test_program() 117 current = cg_read_long(test_group, "memory.current"); in hugetlb_test_program() 118 if (current - old_current >= MB(2)) { in hugetlb_test_program() 120 ksft_print_msg("before: %ld, after: %ld\n", old_current, current); in hugetlb_test_program() 123 old_current = current; in hugetlb_test_program() 128 current = cg_read_long(test_group, "memory.current"); in hugetlb_test_program() 129 if (!values_close(expected_current, current, 5)) { in hugetlb_test_program() [all …]
|
| D | test_kmem.c | 56 long slab0, slab1, current; in test_kmem_basic() local 81 current = cg_read_long(cg, "memory.current"); in test_kmem_basic() 82 if (current < 0) in test_kmem_basic() 85 if (slab1 < slab0 / 2 && current < slab0 / 2) in test_kmem_basic() 169 long current, anon, file, kernel, sock, sum; in test_kmem_memcg_deletion() local 186 current = cg_read_long(parent, "memory.current"); in test_kmem_memcg_deletion() 191 if (current < 0 || anon < 0 || file < 0 || kernel < 0 || sock < 0) in test_kmem_memcg_deletion() 195 if (labs(sum - current) < MAX_VMSTAT_ERROR) { in test_kmem_memcg_deletion() 198 printf("memory.current = %ld\n", current); in test_kmem_memcg_deletion() 356 long current, percpu; in test_percpu_basic() local [all …]
|
| D | test_memcontrol.c | 97 long anon, current; in alloc_anon_50M_check() local 109 current = cg_read_long(cgroup, "memory.current"); in alloc_anon_50M_check() 110 if (current < size) in alloc_anon_50M_check() 113 if (!values_close(size, current, 3)) in alloc_anon_50M_check() 120 if (!values_close(anon, current, 3)) in alloc_anon_50M_check() 133 long current, file; in alloc_pagecache_50M_check() local 143 current = cg_read_long(cgroup, "memory.current"); in alloc_pagecache_50M_check() 144 if (current < size) in alloc_pagecache_50M_check() 151 if (!values_close(file, current, 10)) in alloc_pagecache_50M_check() 169 long current, peak, peak_reset; in test_memcg_current_peak() local [all …]
|
| D | memcg_protection.m | 7 % (as it depends also on their current consumption). 17 % c vector current consumption -,,- (memory.current)
|
| /tools/testing/selftests/rtc/ |
| D | setdate.c | 24 struct rtc_time new, current; in main() local 65 retval = ioctl(fd, RTC_RD_TIME, ¤t); 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/ |
| D | iio_utils.c | 31 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/bpf/progs/ |
| D | rcu_tasks_trace_gp.c | 18 struct task_struct *current; in do_call_rcu_tasks_trace() local 21 current = bpf_get_current_task_btf(); in do_call_rcu_tasks_trace() 22 v = bpf_task_storage_get(&task_ls_map, current, NULL, BPF_LOCAL_STORAGE_GET_F_CREATE); in do_call_rcu_tasks_trace() 26 return bpf_task_storage_delete(&task_ls_map, current); in do_call_rcu_tasks_trace()
|
| D | lru_bug.c | 34 struct task_struct *current; in nanosleep() local 41 current = bpf_get_current_task_btf(); in nanosleep() 42 v->ptr = current; in nanosleep() 43 pid = current->pid; in nanosleep()
|
| D | test_task_pt_regs.c | 20 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()
|
| D | map_kptr.c | 493 struct task_struct *current; in test_ls_map_kptr_ref1() local 496 current = bpf_get_current_task_btf(); in test_ls_map_kptr_ref1() 497 if (!current) in test_ls_map_kptr_ref1() 499 v = bpf_task_storage_get(&task_ls_map, current, NULL, 0); in test_ls_map_kptr_ref1() 502 v = bpf_task_storage_get(&task_ls_map, current, NULL, BPF_LOCAL_STORAGE_GET_F_CREATE); in test_ls_map_kptr_ref1() 511 struct task_struct *current; in test_ls_map_kptr_ref2() local 514 current = bpf_get_current_task_btf(); in test_ls_map_kptr_ref2() 515 if (!current) in test_ls_map_kptr_ref2() 517 v = bpf_task_storage_get(&task_ls_map, current, NULL, 0); in test_ls_map_kptr_ref2() 526 struct task_struct *current; in test_ls_map_kptr_ref_del() local [all …]
|
| D | verifier_kfunc_prog_types.c | 21 struct task_struct *current, *ref_1, *ref_2; in task_kfunc_load_test() local 23 current = bpf_get_current_task_btf(); in task_kfunc_load_test() 24 ref_1 = bpf_task_from_pid(current->pid); in task_kfunc_load_test()
|
| D | verifier_vfs_reject.c | 118 struct task_struct *current; in BPF_PROG() local 120 current = bpf_get_current_task_btf(); in BPF_PROG() 124 pwd = ¤t->fs->pwd; in BPF_PROG()
|
| /tools/testing/selftests/drivers/net/mlxsw/ |
| D | qos_headroom.sh | 69 local current=$(get_prio_pg) 70 test "$current" = "$expect" 71 check_err $? "prio2buffer is '$current', expected '$expect'" 78 local current=$(get_prio_pfc) 79 test "$current" = "$expect" 80 check_err $? "prio PFC is '$current', expected '$expect'" 87 local current=$(get_prio_tc) 88 test "$current" = "$expect" 89 check_err $? "prio_tc is '$current', expected '$expect'" 98 local current=$(get_buf_size $idx) [all …]
|
| D | devlink_linecard.sh | 26 local current=$("$@") 28 echo "$current" 29 [ "$current" == "$state" ] 65 local current=$("$@") 67 echo "$current" 68 [ $current == $port_count ]
|
| /tools/testing/selftests/powerpc/pmu/ |
| D | count_instructions.c | 76 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()
|
| D | count_stcx_fail.c | 81 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()
|
| D | lib.c | 179 long current; in require_paranoia_below() local 181 err = read_long(PARANOID_PATH, ¤t, 10); in require_paranoia_below() 187 return current < level; in require_paranoia_below()
|
| /tools/testing/selftests/powerpc/pmu/ebb/ |
| D | instruction_count_test.c | 72 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/ |
| D | builtin-timechart.c | 105 struct per_pidcomm *current; member 226 p->current = c; in create_pidcomm() 240 p->current = c; in pid_set_comm() 245 p->current = c; in pid_set_comm() 261 if (pp->current && pp->current->comm && !p->current) in pid_fork() 262 pid_set_comm(tchart, pid, pp->current->comm); in pid_fork() 265 if (p->current && !p->current->start_time) { in pid_fork() 266 p->current->start_time = timestamp; in pid_fork() 267 p->current->state_since = timestamp; in pid_fork() 276 if (p->current) in pid_exit() [all …]
|
| /tools/testing/selftests/drivers/net/netdevsim/ |
| D | ethtool-coalesce.sh | 111 current=$(update_current_settings) 113 check $? "$current" "$expected"
|
| D | ethtool-ring.sh | 73 current=$(update_current_settings) 75 check $? "$current" "$expected"
|
| /tools/testing/selftests/livepatch/test_modules/ |
| D | test_klp_syscall.c | 50 if (current->pid == klp_pids[i]) { in lp_sys_getpid() 59 return task_tgid_vnr(current); in lp_sys_getpid()
|