/tools/power/cpupower/utils/idle_monitor/ |
D | cpuidle_sysfs.c | 79 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/ |
D | cpuidle-info.c | 26 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/intel_pstate/ |
D | run.sh | 60 grep MHz /proc/cpuinfo | sort -u > /tmp/result.freqs 61 num_freqs=$(wc -l /tmp/result.freqs | awk ' { print $1 } ') 63 tail -n 1 /tmp/result.freqs > /tmp/result.$1 65 cp /tmp/result.freqs /tmp/result.$1 67 ./msr 0 >> /tmp/result.$1 70 echo "max_perf_pct $max_perf_pct" >> /tmp/result.$1 110 echo "Target Actual Difference MSR(0x199) max_perf_pct" | tr " " "\n" > /tmp/result.tab 113 …result_freq=$(cat /tmp/result.${freq} | grep "cpu MHz" | awk ' { print $4 } ' | awk -F "." ' { pri… 114 msr=$(cat /tmp/result.${freq} | grep "msr" | awk ' { print $3 } ') 115 max_perf_pct=$(cat /tmp/result.${freq} | grep "max_perf_pct" | awk ' { print $2 } ' ) [all …]
|
/tools/testing/selftests/bpf/progs/ |
D | test_core_autosize.c | 142 __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 …]
|
D | test_pkt_md_access.c | 15 TYPE tmp = *(volatile TYPE *)&skb->FIELD; \ 16 if (tmp != ((*(volatile __u32 *)&skb->FIELD) & MASK)) \ 23 TYPE tmp = *((volatile TYPE *)&skb->FIELD + \ 25 if (tmp != ((*(volatile __u32 *)&skb->FIELD) & MASK)) \
|
D | bpf_iter_sockmap.c | 39 __u32 tmp, *key = ctx->key; in copy() local 50 tmp = *key; in copy() 54 return bpf_map_update_elem(&dst, &tmp, sk, 0) != 0; in copy() 57 ret = bpf_map_delete_elem(&dst, &tmp); in copy()
|
/tools/lib/ |
D | find_bit.c | 35 unsigned long tmp; in _find_next_bit() local 40 tmp = addr1[start / BITS_PER_LONG]; in _find_next_bit() 42 tmp &= addr2[start / BITS_PER_LONG]; in _find_next_bit() 43 tmp ^= invert; in _find_next_bit() 46 tmp &= BITMAP_FIRST_WORD_MASK(start); in _find_next_bit() 49 while (!tmp) { in _find_next_bit() 54 tmp = addr1[start / BITS_PER_LONG]; in _find_next_bit() 56 tmp &= addr2[start / BITS_PER_LONG]; in _find_next_bit() 57 tmp ^= invert; in _find_next_bit() 60 return min(start + __ffs(tmp), nbits); in _find_next_bit()
|
D | rbtree.c | 88 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/testing/selftests/netfilter/ |
D | nft_trans_stress.sh | 27 tmp=$(mktemp) 30 echo add table inet "$table" >> "$tmp" 31 echo flush table inet "$table" >> "$tmp" 33 echo "add chain inet $table INPUT { type filter hook input priority 0; }" >> "$tmp" 34 echo "add chain inet $table OUTPUT { type filter hook output priority 0; }" >> "$tmp" 37 echo "add chain inet $table $chain" >> "$tmp" 43 echo "add rule inet $table $BASE counter jump $chain" >> "$tmp" 45 echo "add rule inet $table $chain counter return" >> "$tmp" 62 for i in $(seq 1 10) ; do ip netns exec "$testns" nft -f "$tmp" & done 77 rm -f "$tmp"
|
/tools/perf/tests/ |
D | wp.c | 68 unsigned long tmp, tmp1 = rand(); in wp_ro_test() local 74 tmp = data1; in wp_ro_test() 77 data1 = tmp1 + tmp; in wp_ro_test() 87 unsigned long tmp, tmp1 = rand(); in wp_wo_test() local 93 tmp = data1; in wp_wo_test() 96 data1 = tmp1 + tmp; in wp_wo_test() 106 unsigned long tmp, tmp1 = rand(); in wp_rw_test() local 113 tmp = data1; in wp_rw_test() 116 data1 = tmp1 + tmp; in wp_rw_test() 126 unsigned long tmp = rand(); in wp_modify_test() local [all …]
|
/tools/include/linux/ |
D | rbtree_augmented.h | 191 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/bpf/prog_tests/ |
D | probe_user.c | 10 struct sockaddr curr, orig, tmp; in test_probe_user() local 55 err = bpf_map_lookup_elem(results_map_fd, &zero, &tmp); in test_probe_user() 60 in = (struct sockaddr_in *)&tmp; in test_probe_user() 61 if (CHECK(memcmp(&tmp, &orig, sizeof(orig)), "check_kprobe_res", in test_probe_user() 66 memset(&tmp, 0xab, sizeof(tmp)); in test_probe_user() 69 if (CHECK(memcmp(&curr, &tmp, sizeof(tmp)), "check_kprobe_res", in test_probe_user()
|
/tools/testing/selftests/timers/ |
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()
|
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/lib/subcmd/ |
D | subcmd-util.h | 60 char *tmp = *(out); \ 61 if (asprintf((out), "%s" fmt, tmp ?: "", ## __VA_ARGS__) == -1) \ 63 free(tmp); \ 68 char *tmp = *out; in astrcat() local 70 if (asprintf(out, "%s%s", tmp ?: "", add) == -1) in astrcat() 73 free(tmp); in astrcat()
|
/tools/perf/util/ |
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/build/feature/ |
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()
|
D | test-cplus-demangle.c | 8 char *tmp; in main() local 10 tmp = cplus_demangle(symbol, 0); in main() 12 printf("demangled symbol: {%s}\n", tmp); in main()
|
/tools/lib/bpf/ |
D | ringbuf.c | 63 void *tmp; in ring_buffer__add() local 82 tmp = libbpf_reallocarray(rb->rings, rb->ring_cnt + 1, sizeof(*rb->rings)); in ring_buffer__add() 83 if (!tmp) in ring_buffer__add() 85 rb->rings = tmp; in ring_buffer__add() 87 tmp = libbpf_reallocarray(rb->events, rb->ring_cnt + 1, sizeof(*rb->events)); in ring_buffer__add() 88 if (!tmp) in ring_buffer__add() 90 rb->events = tmp; in ring_buffer__add() 101 tmp = mmap(NULL, rb->page_size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in ring_buffer__add() 102 if (tmp == MAP_FAILED) { in ring_buffer__add() 108 r->consumer_pos = tmp; in ring_buffer__add() [all …]
|
/tools/laptop/dslm/ |
D | dslm.c | 79 float tmp; in measure() local 113 tmp = (float)sleep_time / (float)total_time * 100; in measure() 114 printf(" Time in sleep state: %lus (%.2f%%)\n", sleep_time, tmp); in measure() 115 tmp = (float)active_time / (float)total_time * 100; in measure() 116 printf(" Time in active state: %lus (%.2f%%)\n", active_time, tmp); in measure() 117 tmp = (float)unknown_time / (float)total_time * 100; in measure() 118 printf(" Time in unknown state: %lus (%.2f%%)\n", unknown_time, tmp); in measure()
|
/tools/testing/selftests/bpf/ |
D | testing_helpers.c | 10 bool *set = NULL, *tmp, parsing_end = false; in parse_num_list() local 45 tmp = realloc(set, new_len); in parse_num_list() 46 if (!tmp) { in parse_num_list() 51 tmp[i] = false; in parse_num_list() 52 set = tmp; in parse_num_list()
|
/tools/power/cpupower/lib/ |
D | cpufreq.c | 319 struct cpufreq_available_governors *tmp, *next; in cpufreq_put_available_governors() local 324 tmp = any->first; in cpufreq_put_available_governors() 325 while (tmp) { in cpufreq_put_available_governors() 326 next = tmp->next; in cpufreq_put_available_governors() 327 if (tmp->governor) in cpufreq_put_available_governors() 328 free(tmp->governor); in cpufreq_put_available_governors() 329 free(tmp); in cpufreq_put_available_governors() 330 tmp = next; in cpufreq_put_available_governors() 449 struct cpufreq_available_frequencies *tmp, *next; in cpufreq_put_available_frequencies() local 454 tmp = any->first; in cpufreq_put_available_frequencies() [all …]
|
/tools/perf/tests/shell/ |
D | buildid.sh | 17 ex_md5=$(mktemp /tmp/perf.ex.MD5.XXX) 18 ex_sha1=$(mktemp /tmp/perf.ex.SHA1.XXX) 58 build_id_dir=$(mktemp -d /tmp/perf.debug.XXX) 74 data=$(mktemp /tmp/perf.data.XXX) 75 build_id_dir=$(mktemp -d /tmp/perf.debug.XXX)
|
/tools/perf/trace/beauty/ |
D | sockaddr.c | 16 char tmp[16]; in af_inet__scnprintf() local 18 inet_ntop(sin->sin_family, &sin->sin_addr, tmp, sizeof(tmp))); in af_inet__scnprintf() 25 char tmp[512]; in af_inet6__scnprintf() local 27 inet_ntop(sin6->sin6_family, &sin6->sin6_addr, tmp, sizeof(tmp))); in af_inet6__scnprintf()
|
/tools/perf/arch/powerpc/util/ |
D | kvm-stat.c | 189 const char **tmp; in kvm_add_default_arch_event() local 198 tmp = calloc(j + 1, sizeof(char *)); in kvm_add_default_arch_event() 199 if (!tmp) in kvm_add_default_arch_event() 203 tmp[i] = argv[i]; in kvm_add_default_arch_event() 205 parse_options(j, tmp, event_options, NULL, PARSE_OPT_KEEP_UNKNOWN); in kvm_add_default_arch_event() 212 free(tmp); in kvm_add_default_arch_event() 217 free(tmp); in kvm_add_default_arch_event()
|