Home
last modified time | relevance | path

Searched refs:tmp (Results 1 – 25 of 320) sorted by relevance

12345678910>>...13

/tools/crypto/ccp/
Ddbc.c23 struct dbc_user_nonce tmp = { in get_nonce() local
30 memcpy(tmp.signature, signature, sizeof(tmp.signature)); in get_nonce()
32 if (ioctl(fd, DBCIOCNONCE, &tmp)) 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()
[all …]
/tools/power/cpupower/utils/idle_monitor/
Dcpuidle_sysfs.c79 void fix_up_intel_idle_driver_name(char *tmp, int num) in fix_up_intel_idle_driver_name() argument
82 if (!strncmp(tmp, "NHM-", 4)) { in fix_up_intel_idle_driver_name()
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()
94 } else if (!strncmp(tmp, "SNB-", 4)) { 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()
106 strcpy(tmp, "C7"); in fix_up_intel_idle_driver_name()
[all …]
/tools/power/cpupower/utils/
Dcpuidle-info.c26 char *tmp; in cpuidle_cpu_output() local
37 tmp = cpuidle_state_name(cpu, idlestate); in cpuidle_cpu_output()
38 if (!tmp) in cpuidle_cpu_output()
40 printf(" %s", tmp); in cpuidle_cpu_output()
41 free(tmp); in cpuidle_cpu_output()
53 tmp = cpuidle_state_name(cpu, idlestate); in cpuidle_cpu_output()
54 if (!tmp) in cpuidle_cpu_output()
56 printf("%s%s:\n", tmp, (disabled) ? " (DISABLED) " : ""); in cpuidle_cpu_output()
57 free(tmp); in cpuidle_cpu_output()
59 tmp = cpuidle_state_desc(cpu, idlestate); in cpuidle_cpu_output()
[all …]
/tools/testing/selftests/hyp-trace/
Dhyp-trace-test97 local tmp="$(mktemp)"
102 echo "Output trace file: $tmp"
105 pid=$(consuming_read $tmp)
113 validate_test $tmp $nr_events $start_ts $end_ts
115 rm $tmp
178 local tmp="$(mktemp)"
188 pid=$(consuming_read $tmp)
206 local tmp="$(mktemp)"
216 pid=$(consuming_read $tmp)
221 validate_test $tmp 5 $clock_before $(host_clock)
[all …]
/tools/testing/selftests/intel_pstate/
Drun.sh65 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
118 …result_freq=$(cat /tmp/result.${freq} | grep "cpu MHz" | awk ' { print $4 } ' | awk -F "." ' { pri…
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 } ' )
[all …]
/tools/perf/Documentation/
Dcat-texi.perl9 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/
Dtest_core_autosize.c142 __u64 tmp; in handle_probed() local
144 tmp = 0; in handle_probed()
145 bpf_core_read_int(&tmp, bpf_core_field_size(in->ptr), &in->ptr); in handle_probed()
146 ptr_probed = tmp; in handle_probed()
148 tmp = 0; in handle_probed()
149 bpf_core_read_int(&tmp, bpf_core_field_size(in->val1), &in->val1); in handle_probed()
150 val1_probed = tmp; in handle_probed()
152 tmp = 0; in handle_probed()
153 bpf_core_read_int(&tmp, bpf_core_field_size(in->val2), &in->val2); in handle_probed()
154 val2_probed = tmp; in handle_probed()
[all …]
Dtest_usdt.c18 long tmp; in usdt0() local
28 usdt0_arg_ret = bpf_usdt_arg(ctx, bpf_get_prandom_u32(), &tmp); in usdt0()
41 long tmp; in usdt3() local
51 usdt3_arg_rets[0] = bpf_usdt_arg(ctx, 0, &tmp); in usdt3()
52 usdt3_args[0] = (int)tmp; in usdt3()
54 usdt3_arg_rets[1] = bpf_usdt_arg(ctx, 1, &tmp); in usdt3()
55 usdt3_args[1] = (long)tmp; in usdt3()
57 usdt3_arg_rets[2] = bpf_usdt_arg(ctx, 2, &tmp); in usdt3()
58 usdt3_args[2] = (uintptr_t)tmp; in usdt3()
/tools/testing/selftests/perf_events/
Dremove_on_exec.c125 int tmp; in TEST_F() local
148 ASSERT_EQ(waitpid(pid_exec, &tmp, WNOHANG), 0); /* Child is running. */ in TEST_F()
150 EXPECT_EQ(read(pipefd[0], &tmp, sizeof(int)), sizeof(int)); in TEST_F()
151 EXPECT_EQ(tmp, 42); in TEST_F()
157 EXPECT_EQ(waitpid(pid_exec, &tmp, WNOHANG), 0); /* Should still be running. */ in TEST_F()
161 tmp = signal_count; in TEST_F()
162 while (signal_count == tmp); /* Should not hang! */ in TEST_F()
164 EXPECT_EQ(waitpid(pid_only_fork, &tmp, 0), pid_only_fork); in TEST_F()
165 EXPECT_EQ(WEXITSTATUS(tmp), 42); in TEST_F()
175 int tmp; in TEST_F() local
[all …]
/tools/testing/selftests/bpf/
Dbpf_arena_list.h45 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/
Drbtree.c88 struct rb_node *parent = rb_red_parent(node), *gparent, *tmp; in __rb_insert() local
115 tmp = gparent->rb_right; in __rb_insert()
116 if (parent != tmp) { /* parent == gparent->rb_left */ in __rb_insert()
117 if (tmp && rb_is_red(tmp)) { in __rb_insert()
131 rb_set_parent_color(tmp, gparent, RB_BLACK); in __rb_insert()
139 tmp = parent->rb_right; in __rb_insert()
140 if (node == tmp) { in __rb_insert()
154 tmp = node->rb_left; in __rb_insert()
155 WRITE_ONCE(parent->rb_right, tmp); in __rb_insert()
157 if (tmp) in __rb_insert()
[all …]
/tools/perf/tests/
Dwp.c83 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()
131 unsigned long tmp, tmp1 = rand(); in test__wp_rw()
138 tmp = data1; in test__wp_rw()
141 data1 = tmp1 + tmp; in test__wp_rw()
155 unsigned long tmp = rand(); in test__wp_modify()
[all …]
/tools/include/linux/
Drbtree_augmented.h191 struct rb_node *tmp = node->rb_left; in __rb_erase_augmented() local
195 if (!tmp) { in __rb_erase_augmented()
211 tmp = parent; in __rb_erase_augmented()
214 tmp->__rb_parent_color = pc = node->__rb_parent_color; in __rb_erase_augmented()
216 __rb_change_child(node, tmp, parent, root); 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()
[all …]
/tools/testing/selftests/timers/
Drtcpie.c33 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()
Dclocksource-switch.c45 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/
Dprobe_user.c17 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/s390x/
Dshared_zeropage_test.c50 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/
Dsubcmd-util.h59 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/
Dkconfig.c47 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()
Dftrace.c88 struct opts_list_t *tmp; in disable_trace_options() local
93 tmp = malloc(sizeof(*tmp)); in disable_trace_options()
94 if (!tmp) { in disable_trace_options()
98 tmp->next = opts_list; in disable_trace_options()
99 tmp->opt_name = test_sprintf("no%s", line); in disable_trace_options()
100 if (!tmp->opt_name) { in disable_trace_options()
102 free(tmp); in disable_trace_options()
105 opts_list = tmp; in disable_trace_options()
109 struct opts_list_t *tmp = opts_list; in disable_trace_options() local
112 fwrite(tmp->opt_name, 1, strlen(tmp->opt_name), opts); in disable_trace_options()
[all …]
/tools/testing/selftests/powerpc/ptrace/
Dptrace-gpr.c49 __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/
Dcopyfile.c79 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/
Dbuildid.sh32 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/
Dtest-libbfd.c9 char *tmp; in main() local
11 tmp = bfd_demangle(0, symbol, 0); in main()
13 printf("demangled symbol: {%s}\n", tmp); in main()
Dtest-cplus-demangle.c8 char *tmp; in main() local
10 tmp = cplus_demangle(symbol, 0); in main()
12 printf("demangled symbol: {%s}\n", tmp); in main()

12345678910>>...13