/tools/perf/util/ |
D | strfilter.c | 83 struct strfilter_node root, *cur, *last_op; in strfilter_node__new() local 90 last_op = cur = &root; in strfilter_node__new() 96 if (!cur->r || !last_op->r) in strfilter_node__new() 98 cur = strfilter_node__alloc(OP_and, last_op->r, NULL); in strfilter_node__new() 99 if (!cur) in strfilter_node__new() 101 last_op->r = cur; in strfilter_node__new() 102 last_op = cur; in strfilter_node__new() 105 if (!cur->r || !root.r) in strfilter_node__new() 107 cur = strfilter_node__alloc(OP_or, root.r, NULL); in strfilter_node__new() 108 if (!cur) in strfilter_node__new() [all …]
|
D | genelf_debug.c | 195 ubyte cur = data & 0x7F; in emit_unsigned_LEB128() local 198 cur |= 0x80; in emit_unsigned_LEB128() 199 buffer_ext_add(be, &cur, 1); in emit_unsigned_LEB128() 209 ubyte cur = data & 0x7F; in emit_signed_LEB128() local 213 if ((data == 0 && !(cur & 0x40)) || in emit_signed_LEB128() 214 (data == -1l && (cur & 0x40))) in emit_signed_LEB128() 217 cur |= 0x80; in emit_signed_LEB128() 218 buffer_ext_add(be, &cur, 1); in emit_signed_LEB128()
|
D | unwind-libunwind-local.c | 113 u8 *cur = *p; in __dw_read_encoded_value() local 121 *val = dw_read(cur, unsigned long, end); in __dw_read_encoded_value() 131 *val = (unsigned long) cur; in __dw_read_encoded_value() 142 *val += dw_read(cur, s32, end); in __dw_read_encoded_value() 145 *val += dw_read(cur, u32, end); in __dw_read_encoded_value() 148 *val += dw_read(cur, s64, end); in __dw_read_encoded_value() 151 *val += dw_read(cur, u64, end); in __dw_read_encoded_value() 158 *p = cur; in __dw_read_encoded_value()
|
/tools/perf/ |
D | perf-completion.sh | 71 cur) 72 cur=$cur_ 118 __ltrim_colon_completions $cur 120 __perf__ltrim_colon_completions $cur 156 if [[ $cur == --* ]]; then 161 __perfcomp "$cmds" "$cur" 166 __perfcomp_colon "$evts" "$cur" 172 __perfcomp_colon "$subcmds" "$cur" 175 if [[ $cur == --* ]]; then 180 __perfcomp "$opts" "$cur" [all …]
|
/tools/lib/ |
D | bitmap.c | 37 int cur, rbot, rtop; in bitmap_scnprintf() local 41 rbot = cur = find_first_bit(bitmap, nbits); in bitmap_scnprintf() 42 while (cur < nbits) { in bitmap_scnprintf() 43 rtop = cur; in bitmap_scnprintf() 44 cur = find_next_bit(bitmap, nbits, cur + 1); in bitmap_scnprintf() 45 if (cur < nbits && cur <= rtop + 1) in bitmap_scnprintf() 57 rbot = cur; in bitmap_scnprintf()
|
/tools/testing/selftests/vm/ |
D | mlock-random-test.c | 143 struct rlimit cur; in test_mlock_within_limit() local 146 getrlimit(RLIMIT_MEMLOCK, &cur); in test_mlock_within_limit() 147 if (cur.rlim_cur < alloc_size) { in test_mlock_within_limit() 149 alloc_size, (unsigned int)cur.rlim_cur); in test_mlock_within_limit() 220 struct rlimit cur; in test_mlock_outof_limit() local 222 getrlimit(RLIMIT_MEMLOCK, &cur); in test_mlock_outof_limit() 223 if (cur.rlim_cur >= alloc_size) { in test_mlock_outof_limit() 225 alloc_size, (unsigned int)cur.rlim_cur); in test_mlock_outof_limit() 233 int lock_size = (rand() % (alloc_size - cur.rlim_cur)) in test_mlock_outof_limit() 234 + cur.rlim_cur; in test_mlock_outof_limit()
|
/tools/testing/selftests/gpio/ |
D | gpio-mockup-chardev.c | 82 char *cur; in gpio_debugfs_get() local 96 cur = strstr(line, consumer); in gpio_debugfs_get() 97 if (cur == NULL) in gpio_debugfs_get() 100 cur = strchr(line, ')'); in gpio_debugfs_get() 101 if (!cur) in gpio_debugfs_get() 104 cur += 2; in gpio_debugfs_get() 105 if (!strncmp(cur, "out", 3)) { in gpio_debugfs_get() 107 cur += 4; in gpio_debugfs_get() 108 } else if (!strncmp(cur, "in", 2)) { in gpio_debugfs_get() 110 cur += 4; in gpio_debugfs_get() [all …]
|
/tools/testing/selftests/networking/timestamping/ |
D | txtimestamp.c | 80 static void __print_timestamp(const char *name, struct timespec *cur, in __print_timestamp() argument 83 if (!(cur->tv_sec | cur->tv_nsec)) in __print_timestamp() 87 name, cur->tv_sec, cur->tv_nsec / 1000, in __print_timestamp() 93 cur_ms = (long) cur->tv_sec * 1000 * 1000; in __print_timestamp() 94 cur_ms += cur->tv_nsec / 1000; in __print_timestamp() 102 ts_prev = *cur; in __print_timestamp() 471 struct addrinfo *addrs, *cur; in resolve_hostname() local 477 cur = addrs; in resolve_hostname() 478 while (cur && !have_ipv4 && !have_ipv6) { in resolve_hostname() 479 if (!have_ipv4 && cur->ai_family == AF_INET) { in resolve_hostname() [all …]
|
/tools/power/cpupower/utils/helpers/ |
D | bitmask.c | 279 unsigned int cur, rbot, rtop; in bitmask_displaylist() local 283 rbot = cur = bitmask_first(bmp); in bitmask_displaylist() 284 while (cur < bmp->size) { in bitmask_displaylist() 285 rtop = cur; in bitmask_displaylist() 286 cur = bitmask_next(bmp, cur+1); in bitmask_displaylist() 287 if (cur >= bmp->size || cur > rtop + 1) { in bitmask_displaylist() 289 rbot = cur; in bitmask_displaylist()
|
/tools/testing/radix-tree/ |
D | main.c | 158 unsigned long start, end, count = 0, tagged, cur, tmp; in copy_tag_check() local 165 cur = start; in copy_tag_check() 167 end = cur; in copy_tag_check() 171 cur = rand(); in copy_tag_check() 172 if (cur & 1) { in copy_tag_check() 174 if (cur & 2) { in copy_tag_check() 180 if (cur & 4) { in copy_tag_check() 182 if (cur & 8) in copy_tag_check() 185 if (cur & 16) { in copy_tag_check() 187 if (cur & 32) { in copy_tag_check() [all …]
|
/tools/testing/selftests/ftrace/test.d/ftrace/ |
D | func_event_triggers.tc | 77 cur=`cat set_ftrace_filter` 79 if [ "$cur" = "$top" ]; then
|
D | func_traceonoff_triggers.tc | 80 cur=`cat set_ftrace_filter` 82 if [ "$cur" = "$top" ]; then
|
/tools/kvm/kvm_stat/ |
D | kvm_stat | 1115 cur = int(round(values[1] / sleeptime)) if values[1] else '' 1120 cur))
|