| /tools/crypto/ccp/ |
| A D | dbc.c | 23 struct dbc_user_nonce tmp = { in get_nonce() local 30 memcpy(tmp.signature, signature, sizeof(tmp.signature)); in get_nonce() 34 memcpy(nonce_out, tmp.nonce, sizeof(tmp.nonce)); in get_nonce() 41 struct dbc_user_setuid tmp; in set_uid() local 46 memcpy(tmp.uid, uid, sizeof(tmp.uid)); in set_uid() 47 memcpy(tmp.signature, signature, sizeof(tmp.signature)); in set_uid() 49 if (ioctl(fd, DBCIOCUID, &tmp)) in set_uid() 56 struct dbc_user_param tmp = { in process_param() local 64 memcpy(tmp.signature, signature, sizeof(tmp.signature)); in process_param() 69 *data = tmp.param; in process_param() [all …]
|
| /tools/power/cpupower/utils/idle_monitor/ |
| A D | cpuidle_sysfs.c | 85 strcpy(tmp, "C1"); in fix_up_intel_idle_driver_name() 88 strcpy(tmp, "C3"); in fix_up_intel_idle_driver_name() 91 strcpy(tmp, "C6"); in fix_up_intel_idle_driver_name() 97 strcpy(tmp, "C1"); in fix_up_intel_idle_driver_name() 100 strcpy(tmp, "C3"); in fix_up_intel_idle_driver_name() 103 strcpy(tmp, "C6"); in fix_up_intel_idle_driver_name() 144 char *tmp; in cpuidle_register() local 157 if (tmp == NULL) in cpuidle_register() 163 free(tmp); in cpuidle_register() 166 if (tmp == NULL) in cpuidle_register() [all …]
|
| /tools/power/cpupower/utils/ |
| A D | cpuidle-info.c | 26 char *tmp; in cpuidle_cpu_output() local 38 if (!tmp) in cpuidle_cpu_output() 41 free(tmp); in cpuidle_cpu_output() 54 if (!tmp) in cpuidle_cpu_output() 57 free(tmp); in cpuidle_cpu_output() 60 if (!tmp) in cpuidle_cpu_output() 63 free(tmp); in cpuidle_cpu_output() 78 char *tmp; in cpuidle_general_output() local 81 if (!tmp) { in cpuidle_general_output() 87 free(tmp); in cpuidle_general_output() [all …]
|
| /tools/testing/selftests/net/ |
| A D | busy_poller.c | 82 unsigned long long tmp; in parse_opts() local 100 if (tmp == ULLONG_MAX || tmp > UINT32_MAX) in parse_opts() 106 if (tmp == ULLONG_MAX || tmp > 1) in parse_opts() 113 if (tmp == ULLONG_MAX || tmp > UINT16_MAX) in parse_opts() 120 if (tmp == ULLONG_MAX || tmp > UINT16_MAX) in parse_opts() 137 if (tmp == ULLONG_MAX || tmp > INT_MAX) in parse_opts() 144 if (tmp == ULLONG_MAX || tmp > INT32_MAX) in parse_opts() 151 if (tmp == ULLONG_MAX || tmp > UINT64_MAX) in parse_opts() 158 if (tmp == ULLONG_MAX || tmp > UINT64_MAX) in parse_opts() 165 if (tmp == ULLONG_MAX || tmp > INT_MAX) in parse_opts() [all …]
|
| /tools/testing/selftests/intel_pstate/ |
| A D | run.sh | 65 grep MHz /proc/cpuinfo | sort -u > /tmp/result.freqs 66 num_freqs=$(wc -l /tmp/result.freqs | awk ' { print $1 } ') 68 tail -n 1 /tmp/result.freqs > /tmp/result.$1 70 cp /tmp/result.freqs /tmp/result.$1 72 ./msr 0 >> /tmp/result.$1 75 echo "max_perf_pct $max_perf_pct" >> /tmp/result.$1 115 echo "Target Actual Difference MSR(0x199) max_perf_pct" | tr " " "\n" > /tmp/result.tab 119 msr=$(cat /tmp/result.${freq} | grep "msr" | awk ' { print $3 } ') 120 max_perf_pct=$(cat /tmp/result.${freq} | grep "max_perf_pct" | awk ' { print $2 } ' ) 121 cat >> /tmp/result.tab << EOF [all …]
|
| /tools/perf/Documentation/ |
| A D | cat-texi.perl | 9 open my $tmp, '>', "$output.tmp"; 19 print $tmp $_; 21 close $tmp; 40 open $tmp, '<', "$output.tmp"; 41 while (<$tmp>) { 44 close $tmp;
|
| /tools/testing/selftests/bpf/progs/ |
| A D | test_core_autosize.c | 142 __u64 tmp; in handle_probed() local 144 tmp = 0; in handle_probed() 146 ptr_probed = tmp; in handle_probed() 148 tmp = 0; in handle_probed() 150 val1_probed = tmp; in handle_probed() 152 tmp = 0; in handle_probed() 154 val2_probed = tmp; in handle_probed() 156 tmp = 0; in handle_probed() 158 val3_probed = tmp; in handle_probed() 160 tmp = 0; in handle_probed() [all …]
|
| A D | test_usdt.c | 19 long tmp; in usdt0() local 29 usdt0_arg_ret = bpf_usdt_arg(ctx, bpf_get_prandom_u32(), &tmp); in usdt0() 44 long tmp; in usdt3() local 54 usdt3_arg_rets[0] = bpf_usdt_arg(ctx, 0, &tmp); in usdt3() 55 usdt3_args[0] = (int)tmp; in usdt3() 58 usdt3_arg_rets[1] = bpf_usdt_arg(ctx, 1, &tmp); in usdt3() 59 usdt3_args[1] = (long)tmp; in usdt3() 62 usdt3_arg_rets[2] = bpf_usdt_arg(ctx, 2, &tmp); in usdt3() 63 usdt3_args[2] = (uintptr_t)tmp; in usdt3()
|
| A D | verifier_may_goto_2.c | 14 int i, tmp[3]; in may_goto_c_code() local 17 tmp[i] = 0; in may_goto_c_code() 20 tmp[i] = gvar - i; in may_goto_c_code() 23 gvar += tmp[i]; in may_goto_c_code()
|
| /tools/testing/selftests/perf_events/ |
| A D | remove_on_exec.c | 125 int tmp; in TEST_F() local 151 EXPECT_EQ(tmp, 42); in TEST_F() 161 tmp = signal_count; in TEST_F() 162 while (signal_count == tmp); /* Should not hang! */ in TEST_F() 165 EXPECT_EQ(WEXITSTATUS(tmp), 42); in TEST_F() 175 int tmp; in TEST_F() local 194 tmp = signal_count; in TEST_F() 201 int i, tmp; in TEST_F() local 219 EXPECT_EQ(waitpid(pids[i], &tmp, WNOHANG), 0); in TEST_F() 224 tmp = signal_count; in TEST_F() [all …]
|
| /tools/testing/selftests/bpf/ |
| A D | bpf_arena_list.h | 45 arena_list_node_t *first = h->first, * __arena *tmp; in list_add_head() local 52 tmp = &n->next; in list_add_head() 53 cast_user(tmp); in list_add_head() 54 WRITE_ONCE(first->pprev, tmp); in list_add_head() 59 tmp = &h->first; in list_add_head() 60 cast_user(tmp); in list_add_head() 62 WRITE_ONCE(n->pprev, tmp); in list_add_head() 67 arena_list_node_t *next = n->next, *tmp; in __list_del() local 72 tmp = *pprev; in __list_del() 73 cast_kern(tmp); in __list_del() [all …]
|
| /tools/lib/ |
| A D | rbtree.c | 117 if (tmp && rb_is_red(tmp)) { in __rb_insert() 140 if (node == tmp) { in __rb_insert() 154 tmp = node->rb_left; in __rb_insert() 157 if (tmp) in __rb_insert() 163 tmp = node->rb_right; in __rb_insert() 178 if (tmp) in __rb_insert() 185 if (tmp && rb_is_red(tmp)) { in __rb_insert() 196 if (node == tmp) { in __rb_insert() 201 if (tmp) in __rb_insert() 207 tmp = node->rb_left; in __rb_insert() [all …]
|
| /tools/perf/tests/ |
| A D | wp.c | 83 unsigned long tmp, tmp1 = rand(); in test__wp_ro() 89 tmp = data1; in test__wp_ro() 92 data1 = tmp1 + tmp; in test__wp_ro() 107 unsigned long tmp, tmp1 = rand(); in test__wp_wo() 113 tmp = data1; in test__wp_wo() 116 data1 = tmp1 + tmp; in test__wp_wo() 138 tmp = data1; in test__wp_rw() 141 data1 = tmp1 + tmp; in test__wp_rw() 155 unsigned long tmp = rand(); in test__wp_modify() 162 data1 = tmp; in test__wp_modify() [all …]
|
| /tools/include/linux/ |
| A D | rbtree_augmented.h | 195 if (!tmp) { in __rb_erase_augmented() 211 tmp = parent; in __rb_erase_augmented() 218 tmp = parent; in __rb_erase_augmented() 222 tmp = child->rb_left; in __rb_erase_augmented() 223 if (!tmp) { in __rb_erase_augmented() 254 successor = tmp; in __rb_erase_augmented() 255 tmp = tmp->rb_left; in __rb_erase_augmented() 256 } while (tmp); in __rb_erase_augmented() 266 tmp = node->rb_left; in __rb_erase_augmented() 271 tmp = __rb_parent(pc); in __rb_erase_augmented() [all …]
|
| /tools/testing/selftests/timers/ |
| A D | rtcpie.c | 33 unsigned long tmp, data, old_pie_rate; in main() local 78 for (tmp=2; tmp<=64; tmp*=2) { in main() 80 retval = ioctl(fd, RTC_IRQP_SET, tmp); in main() 92 fprintf(stderr, "\n%ldHz:\t", tmp); in main() 113 diff.tv_usec > ((1000000L / tmp) * 1.10)) { in main() 116 (1000000L / tmp)); in main()
|
| A D | clocksource-switch.c | 45 char *head, *tmp; in get_clocksources() local 60 for (tmp = head; *tmp != ' '; tmp++) { in get_clocksources() 61 if (*tmp == '\n') in get_clocksources() 63 if (*tmp == '\0') in get_clocksources() 66 *tmp = '\0'; in get_clocksources() 68 head = tmp + 1; in get_clocksources()
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | probe_user.c | 17 struct sockaddr curr, orig, tmp; in serial_test_probe_user() local 65 err = bpf_map_lookup_elem(results_map_fd, &zero, &tmp); in serial_test_probe_user() 70 in = (struct sockaddr_in *)&tmp; in serial_test_probe_user() 71 if (CHECK(memcmp(&tmp, &orig, sizeof(orig)), "check_kprobe_res", in serial_test_probe_user() 76 memset(&tmp, 0xab, sizeof(tmp)); in serial_test_probe_user() 79 if (CHECK(memcmp(&curr, &tmp, sizeof(tmp)), "check_kprobe_res", in serial_test_probe_user()
|
| /tools/testing/selftests/kvm/s390/ |
| A D | shared_zeropage_test.c | 50 char *mem, *page0, *page1, *page2, tmp; in main() local 78 tmp = *page0; in main() 79 asm volatile("" : "+r" (tmp)); in main() 85 tmp = *page1; in main() 86 asm volatile("" : "+r" (tmp)); in main() 103 tmp = *page2; in main() 104 asm volatile("" : "+r" (tmp)); in main()
|
| /tools/lib/subcmd/ |
| A D | subcmd-util.h | 59 char *tmp = *(out); \ 60 if (asprintf((out), "%s" fmt, tmp ?: "", ## __VA_ARGS__) == -1) \ 62 free(tmp); \ 67 char *tmp = *out; in astrcat() local 69 if (asprintf(out, "%s%s", tmp ?: "", add) == -1) in astrcat() 72 free(tmp); in astrcat()
|
| /tools/testing/selftests/net/tcp_ao/lib/ |
| A D | kconfig.c | 47 struct tcp_ao_add tmp = {}; in has_tcp_ao() local 57 tmp.sndid = 100; in has_tcp_ao() 58 tmp.rcvid = 100; in has_tcp_ao() 59 tmp.keylen = strlen(password); in has_tcp_ao() 60 memcpy(tmp.key, password, strlen(password)); in has_tcp_ao() 61 strcpy(tmp.alg_name, "hmac(sha1)"); in has_tcp_ao() 62 memcpy(&tmp.addr, &addr, sizeof(addr)); in has_tcp_ao() 64 if (setsockopt(sk, IPPROTO_TCP, TCP_AO_ADD_KEY, &tmp, sizeof(tmp)) < 0) { in has_tcp_ao()
|
| A D | ftrace.c | 93 tmp = malloc(sizeof(*tmp)); in disable_trace_options() 94 if (!tmp) { in disable_trace_options() 102 free(tmp); in disable_trace_options() 105 opts_list = tmp; in disable_trace_options() 112 fwrite(tmp->opt_name, 1, strlen(tmp->opt_name), opts); in disable_trace_options() 115 free(tmp->opt_name); in disable_trace_options() 116 free(tmp); in disable_trace_options() 125 free(tmp); in disable_trace_options() 149 char *tmp; in setup_ftrace_instance() local 152 if (!tmp) in setup_ftrace_instance() [all …]
|
| /tools/testing/selftests/powerpc/ptrace/ |
| A D | ptrace-gpr.c | 49 __u64 tmp, fpr[32], *peeked_fprs; in trace_gpr() local 60 memcpy(&tmp, &child_fpr_val, sizeof(tmp)); in trace_gpr() 61 FAIL_IF(validate_fpr(fpr, tmp)); in trace_gpr() 66 FAIL_IF(validate_fpr(peeked_fprs, tmp)); in trace_gpr() 73 memcpy(&tmp, &parent_fpr_val, sizeof(tmp)); in trace_gpr() 74 FAIL_IF(write_fpr(child, tmp)); in trace_gpr() 79 FAIL_IF(validate_fpr(peeked_fprs, tmp)); in trace_gpr()
|
| /tools/perf/util/ |
| A D | copyfile.c | 79 char *tmp = NULL, *ptr = NULL; in copyfile_mode_ns() local 90 if (asprintf(&tmp, "%s.XXXXXXx", to) < 0) { in copyfile_mode_ns() 91 tmp = NULL; in copyfile_mode_ns() 94 ptr = strrchr(tmp, '/'); in copyfile_mode_ns() 100 tofd = mkstemp(tmp); in copyfile_mode_ns() 105 err = slow_copyfile(from, tmp, nsi); in copyfile_mode_ns() 126 err = link(tmp, to); in copyfile_mode_ns() 127 unlink(tmp); in copyfile_mode_ns() 129 free(tmp); in copyfile_mode_ns()
|
| /tools/perf/tests/shell/ |
| A D | buildid.sh | 32 wineprefix=$(mktemp -d /tmp/perf.wineprefix.XXX) 39 ex_md5=$(mktemp /tmp/perf.ex.MD5.XXX) 40 ex_sha1=$(mktemp /tmp/perf.ex.SHA1.XXX) 117 build_id_dir=$(mktemp -d /tmp/perf.debug.XXX) 133 data=$(mktemp /tmp/perf.data.XXX) 134 build_id_dir=$(mktemp -d /tmp/perf.debug.XXX) 135 log_out=$(mktemp /tmp/perf.log.out.XXX) 136 log_err=$(mktemp /tmp/perf.log.err.XXX)
|
| /tools/build/feature/ |
| A D | test-libbfd.c | 9 char *tmp; in main() local 11 tmp = bfd_demangle(0, symbol, 0); in main() 13 printf("demangled symbol: {%s}\n", tmp); in main()
|