/tools/perf/util/ |
D | svghelper.h | 6 extern void open_svg(const char *filename, int cpus, int rows, u64 start, u64 end); 7 extern void svg_ubox(int Yslot, u64 start, u64 end, double height, const char *type, int fd, int er… 8 extern void svg_lbox(int Yslot, u64 start, u64 end, double height, const char *type, int fd, int er… 9 extern void svg_fbox(int Yslot, u64 start, u64 end, double height, const char *type, int fd, int er… 10 extern void svg_box(int Yslot, u64 start, u64 end, const char *type); 11 extern void svg_blocked(int Yslot, int cpu, u64 start, u64 end, const char *backtrace); 12 extern void svg_running(int Yslot, int cpu, u64 start, u64 end, const char *backtrace); 13 extern void svg_waiting(int Yslot, int cpu, u64 start, u64 end, const char *backtrace); 17 extern void svg_process(int cpu, u64 start, u64 end, int pid, const char *name, const char *backtra… 18 extern void svg_cstate(int cpu, u64 start, u64 end, int type); [all …]
|
D | svghelper.c | 86 void open_svg(const char *filename, int cpus, int rows, u64 start, u64 end) in open_svg() argument 95 first_time = start; in open_svg() 154 void svg_ubox(int Yslot, u64 start, u64 end, double height, const char *type, int fd, int err, int … in svg_ubox() argument 156 double w = time2pixels(end) - time2pixels(start); in svg_ubox() 165 time2pixels(start), in svg_ubox() 173 void svg_lbox(int Yslot, u64 start, u64 end, double height, const char *type, int fd, int err, int … in svg_lbox() argument 175 double w = time2pixels(end) - time2pixels(start); in svg_lbox() 184 time2pixels(start), in svg_lbox() 192 void svg_fbox(int Yslot, u64 start, u64 end, double height, const char *type, int fd, int err, int … in svg_fbox() argument 194 double w = time2pixels(end) - time2pixels(start); in svg_fbox() [all …]
|
D | annotate.c | 504 u64 start, in __symbol__account_cycles() argument 526 ch[offset].start > start)) { in __symbol__account_cycles() 533 ch[offset].start < start) in __symbol__account_cycles() 537 ch[offset].start = start; in __symbol__account_cycles() 551 if (addr < sym->start || addr >= sym->end) { in __symbol__inc_addr_samples() 553 __func__, __LINE__, sym->name, sym->start, addr, sym->end); in __symbol__inc_addr_samples() 557 offset = addr - sym->start; in __symbol__inc_addr_samples() 563 ", evidx=%d] => %" PRIu64 "\n", sym->start, sym->name, in __symbol__inc_addr_samples() 564 addr, addr - sym->start, evidx, h->addr[offset]); in __symbol__inc_addr_samples() 596 static int symbol__account_cycles(u64 addr, u64 start, in symbol__account_cycles() argument [all …]
|
D | symbol.c | 108 a = syma->end - syma->start; in choose_best_symbol() 109 b = symb->end - symb->start; in choose_best_symbol() 169 if (curr->start != next->start) in symbols__fixup_duplicate() 198 if (prev->end == prev->start && prev->end != curr->start) in symbols__fixup_end() 199 prev->end = curr->start; in symbols__fixup_end() 203 if (curr->end == curr->start) in symbols__fixup_end() 204 curr->end = roundup(curr->start, 4096) + 4096; in symbols__fixup_end() 219 curr->end = next->start; in __map_groups__fixup_end() 233 struct symbol *symbol__new(u64 start, u64 len, u8 binding, const char *name) in symbol__new() argument 244 sym->start = start; in symbol__new() [all …]
|
D | unwind-libdw.c | 44 if (s != al->map->start - al->map->pgoff) in __report_module() 50 …(dso->symsrc_filename ? dso->symsrc_filename : dso->long_name), -1, al->map->start - al->map->pgof… in __report_module() 121 u64 start, end; in memory_read() local 125 ret = perf_reg_value(&start, &ui->sample->user_regs, PERF_REG_SP); in memory_read() 129 end = start + stack->size; in memory_read() 135 if (addr < start || addr + sizeof(Dwarf_Word) > end) { in memory_read() 140 addr, start, end); in memory_read() 146 offset = addr - start; in memory_read()
|
D | find-vdso-map.c | 1 static int find_vdso_map(void **start, void **end) in find_vdso_map() argument 18 start, end, &m)) in find_vdso_map()
|
D | map.c | 128 u64 start, u64 end, u64 pgoff, struct dso *dso) in map__init() argument 131 map->start = start; in map__init() 144 struct map *map__new(struct machine *machine, u64 start, u64 len, in map__new() argument 187 map__init(map, type, start, start + len, pgoff, dso); in map__new() 213 struct map *map__new2(u64 start, struct dso *dso, enum map_type type) in map__new2() argument 221 map__init(map, type, start, 0, 0, dso); in map__new2() 265 map->start = sym->start; in map__fixup_start() 367 if (l->start > r->start) { in map__overlap() 373 if (l->end > r->start) in map__overlap() 382 map->start, map->end, map->pgoff, map->dso->name); in map__fprintf() [all …]
|
D | unwind-libunwind.c | 49 const char *obj_name, unw_word_t start, 346 di.start_ip = map->start; in find_proc_info() 348 di.u.rti.segbase = map->start + segbase; in find_proc_info() 349 di.u.rti.table_data = map->start + table_data; in find_proc_info() 362 unw_word_t base = is_exec ? 0 : map->start; in find_proc_info() 372 map->start, map->end)) in find_proc_info() 444 u64 start, end; in access_mem() local 454 ret = perf_reg_value(&start, &ui->sample->user_regs, PERF_REG_SP); in access_mem() 458 end = start + stack->size; in access_mem() 464 if (addr < start || addr + sizeof(unw_word_t) >= end) { in access_mem() [all …]
|
/tools/testing/nvdimm/test/ |
D | iomap.c | 64 - nfit_res->res->start; in __nfit_test_ioremap() 78 - nfit_res->res->start; in __wrap_devm_ioremap_nocache() 92 return nfit_res->buf + offset - nfit_res->res->start; in __wrap_devm_memremap() 106 return nfit_res->buf + offset - nfit_res->res->start; in __wrap_memremap() 163 struct resource *parent, resource_size_t start, in nfit_test_request_region() argument 170 nfit_res = get_nfit_res(start); in nfit_test_request_region() 175 if (start + n > nfit_res->res->start in nfit_test_request_region() 178 __func__, start, n, in nfit_test_request_region() 183 res->start = start; in nfit_test_request_region() 184 res->end = start + n - 1; in nfit_test_request_region() [all …]
|
/tools/perf/ |
D | perf-read-vdso.c | 14 void *start, *end; in main() local 17 if (find_vdso_map(&start, &end)) in main() 20 size = end - start; in main() 23 written = fwrite(start, 1, size, stdout); in main() 26 start += written; in main()
|
/tools/testing/selftests/timers/ |
D | posix_timers.c | 63 static int check_diff(struct timeval start, struct timeval end) in check_diff() argument 67 diff = end.tv_usec - start.tv_usec; in check_diff() 68 diff += (end.tv_sec - start.tv_sec) * USECS_PER_SEC; in check_diff() 81 struct timeval start, end; in check_itimer() local 106 err = gettimeofday(&start, NULL); in check_itimer() 131 if (!check_diff(start, end)) in check_itimer() 143 struct timeval start, end; in check_timer_create() local 164 err = gettimeofday(&start, NULL); in check_timer_create() 184 if (!check_diff(start, end)) in check_timer_create()
|
D | raw_skew.c | 72 long long diff_timespec(struct timespec start, struct timespec end) in diff_timespec() argument 76 start_ns = ts_to_nsec(start); in diff_timespec() 83 struct timespec start, mid, end; in get_monotonic_and_raw() local 90 clock_gettime(CLOCK_MONOTONIC, &start); in get_monotonic_and_raw() 94 newdiff = diff_timespec(start, end); in get_monotonic_and_raw() 98 tmp = (ts_to_nsec(start) + ts_to_nsec(end))/2; in get_monotonic_and_raw() 106 struct timespec mon, raw, start, end; in main() local 120 start = mon; in main() 135 interval = diff_timespec(start, end); in main()
|
D | nsleep-lat.c | 111 struct timespec start, end, target; in nanosleep_lat_test() local 118 if (clock_gettime(clockid, &start)) in nanosleep_lat_test() 126 clock_gettime(clockid, &start); in nanosleep_lat_test() 131 if (((timespec_sub(start, end)/count)-ns) > UNRESONABLE_LATENCY) { in nanosleep_lat_test() 132 printf("Large rel latency: %lld ns :", (timespec_sub(start, end)/count)-ns); in nanosleep_lat_test() 138 clock_gettime(clockid, &start); in nanosleep_lat_test() 139 target = timespec_add(start, ns); in nanosleep_lat_test()
|
D | adjtick.c | 70 long long diff_timespec(struct timespec start, struct timespec end) in diff_timespec() argument 74 start_ns = ts_to_nsec(start); in diff_timespec() 82 struct timespec start, mid, end; in get_monotonic_and_raw() local 93 clock_gettime(CLOCK_MONOTONIC, &start); in get_monotonic_and_raw() 97 newdiff = diff_timespec(start, end); in get_monotonic_and_raw() 101 tmp = (ts_to_nsec(start) + ts_to_nsec(end))/2; in get_monotonic_and_raw()
|
D | set-2038.c | 89 time_t start; in main() local 99 start = time(0); in main() 140 settime(start); in main()
|
D | mqueue-lat.c | 74 struct timespec start, end, now, target; in mqueue_lat_test() local 86 clock_gettime(CLOCK_MONOTONIC, &start); in mqueue_lat_test() 105 if ((timespec_sub(start, end)/count) > TARGET_TIMEOUT + UNRESONABLE_LATENCY) in mqueue_lat_test()
|
D | threadtest.c | 135 time_t start, now, runtime; in main() local 174 start = time(0); in main() 175 strftime(buf, 255, "%a, %d %b %Y %T %z", localtime(&start)); in main() 183 while (time(&now) < start + runtime) { in main()
|
/tools/perf/scripts/python/ |
D | net_dropmonitor.py | 35 start, end = -1, len(kallsyms) 36 while end != start + 1: 37 pivot = (start + end) // 2 41 start = pivot 45 if start >= 0: 46 symloc, name = kallsyms[start]
|
D | sched-migration.py | 160 def __init__(self, start, prev): argument 161 self.start = start 163 self.end = start 238 start = 0 243 if start == end or start == end - 1: 246 i = (end + start) / 2 247 if self.data[i].start <= ts and self.data[i].end >= ts: 253 start = i 255 elif self.data[i].start > ts: 272 raw += "Timestamp : %d.%06d\n" % (ts.start / (10 ** 9), (ts.start % (10 ** 9)) / 1000) [all …]
|
/tools/testing/selftests/vm/ |
D | mlock2-tests.c | 22 static int mlock2_(void *start, size_t len, int flags) in mlock2_() argument 25 return syscall(__NR_mlock2, start, len, flags); in mlock2_() 33 unsigned long start; member 44 unsigned long start; in get_vm_area() local 73 sscanf(line, "%lx", &start); in get_vm_area() 76 if (start <= addr && end > addr) { in get_vm_area() 77 area->start = start; in get_vm_area() 146 unsigned long start, end; in seek_to_smaps_entry() local 161 &start, &end, perms, &offset, dev, &inode, path) < 6) in seek_to_smaps_entry() 164 if (start <= addr && addr < end) in seek_to_smaps_entry() [all …]
|
/tools/lib/symbol/ |
D | kallsyms.c | 13 char type, u64 start)) in kallsyms__parse() argument 26 u64 start; in kallsyms__parse() local 37 len = hex2u64(line, &start); in kallsyms__parse() 53 err = process_symbol(arg, symbol_name, symbol_type, start); in kallsyms__parse()
|
/tools/testing/fault-injection/ |
D | failcmd.sh | 42 --stacktrace-depth=value, --require-start=value, --require-end=value, 43 --reject-start=value, --reject-end=value, --ignore-gfp-wait=value 87 LONGOPTS=$LONGOPTS,stacktrace-depth:,require-start:,require-end: 88 LONGOPTS=$LONGOPTS,reject-start:,reject-end:,oom-kill-allocating-task:,help 161 --require-start) 162 echo $2 > $FAULTATTR/require-start 169 --reject-start) 170 echo $2 > $FAULTATTR/reject-start
|
/tools/perf/tests/ |
D | vmlinux-kallsyms.c | 117 if (sym->start == sym->end) in test__vmlinux_matches_kallsyms() 120 mem_start = vmlinux_map->unmap_ip(vmlinux_map, sym->start); in test__vmlinux_matches_kallsyms() 127 if (pair && UM(pair->start) == mem_start) { in test__vmlinux_matches_kallsyms() 161 if (UM(next->start) == mem_start) { in test__vmlinux_matches_kallsyms() 211 mem_start = vmlinux_map->unmap_ip(vmlinux_map, map->start); in test__vmlinux_matches_kallsyms() 218 if (pair->start == mem_start) { in test__vmlinux_matches_kallsyms() 221 map->start, map->end, map->pgoff, map->dso->name); in test__vmlinux_matches_kallsyms() 224 pair->start, pair->end, pair->pgoff); in test__vmlinux_matches_kallsyms()
|
D | hists_common.c | 22 u64 start; member 37 u64 start; member 108 .start = fake_mmap_info[i].start, in setup_fake_machine() 135 sym = symbol__new(fsym->start, fsym->length, in setup_fake_machine()
|
/tools/power/cpupower/utils/idle_monitor/ |
D | cpupower-monitor.c | 55 long long timespec_diff_us(struct timespec start, struct timespec end) in timespec_diff_us() argument 58 if ((end.tv_nsec - start.tv_nsec) < 0) { in timespec_diff_us() 59 temp.tv_sec = end.tv_sec - start.tv_sec - 1; in timespec_diff_us() 60 temp.tv_nsec = 1000000000 + end.tv_nsec - start.tv_nsec; in timespec_diff_us() 62 temp.tv_sec = end.tv_sec - start.tv_sec; in timespec_diff_us() 63 temp.tv_nsec = end.tv_nsec - start.tv_nsec; in timespec_diff_us() 284 struct timespec start, end; in fork_it() local 287 clock_gettime(CLOCK_REALTIME, &start); in fork_it() 290 monitors[num]->start(); in fork_it() 313 timediff = timespec_diff_us(start, end); in fork_it() [all …]
|