/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 | symbol.c | 95 a = syma->end - syma->start; in choose_best_symbol() 96 b = symb->end - symb->start; in choose_best_symbol() 159 if (curr->start != next->start) in symbols__fixup_duplicate() 188 if (prev->end == prev->start && prev->end != curr->start) in symbols__fixup_end() 189 prev->end = curr->start; in symbols__fixup_end() 193 if (curr->end == curr->start) in symbols__fixup_end() 194 curr->end = roundup(curr->start, 4096) + 4096; in symbols__fixup_end() 210 prev->end = curr->start; in __map_groups__fixup_end() 220 struct symbol *symbol__new(u64 start, u64 len, u8 binding, const char *name) in symbol__new() argument 231 sym->start = start; in symbol__new() [all …]
|
D | vdso.c | 43 static int find_vdso_map(void **start, void **end) in find_vdso_map() argument 60 start, end, &m)) in find_vdso_map() 78 void *start, *end; in get_file() local 85 if (vdso_file->error || find_vdso_map(&start, &end)) in get_file() 88 size = end - start; in get_file() 90 buf = memdup(start, size); in get_file()
|
D | unwind-libdw.c | 42 dso->long_name, -1, al->map->start, in __report_module() 113 u64 start, end; in memory_read() local 117 ret = perf_reg_value(&start, &ui->sample->user_regs, PERF_REG_SP); in memory_read() 121 end = start + stack->size; in memory_read() 127 if (addr < start || addr + sizeof(Dwarf_Word) > end) { in memory_read() 132 addr, start, end); in memory_read() 138 offset = addr - start; in memory_read()
|
D | map.c | 126 u64 start, u64 end, u64 pgoff, struct dso *dso) in map__init() argument 129 map->start = start; in map__init() 142 struct map *map__new(struct machine *machine, u64 start, u64 len, in map__new() argument 185 map__init(map, type, start, start + len, pgoff, dso); in map__new() 210 struct map *map__new2(u64 start, struct dso *dso, enum map_type type) in map__new2() argument 218 map__init(map, type, start, 0, 0, dso); in map__new2() 235 map->start = sym->start; in map__fixup_start() 323 if (l->start > r->start) { in map__overlap() 329 if (l->end > r->start) in map__overlap() 338 map->start, map->end, map->pgoff, map->dso->name); in map__fprintf() [all …]
|
D | map.h | 32 u64 start; member 86 return ip - map->start + map->pgoff; in map__map_ip() 91 return ip + map->start - map->pgoff; in map__unmap_ip() 122 u64 start, u64 end, u64 pgoff, struct dso *dso); 123 struct map *map__new(struct machine *machine, u64 start, u64 len, 127 struct map *map__new2(u64 start, struct dso *dso, enum map_type type);
|
D | unwind-libunwind.c | 49 const char *obj_name, unw_word_t start, 312 di.start_ip = map->start; in find_proc_info() 314 di.u.rti.segbase = map->start + segbase; in find_proc_info() 315 di.u.rti.table_data = map->start + table_data; in find_proc_info() 327 map->start, map->end)) in find_proc_info() 399 u64 start, end; in access_mem() local 409 ret = perf_reg_value(&start, &ui->sample->user_regs, PERF_REG_SP); in access_mem() 413 end = start + stack->size; in access_mem() 419 if (addr < start || addr + sizeof(unw_word_t) >= end) { in access_mem() 424 (void *) addr, start, end); in access_mem() [all …]
|
D | symbol-elf.c | 874 map->start = shdr.sh_addr + in dso__load_sym() 876 map->end = map->start + shdr.sh_size; in dso__load_sym() 908 u64 start = sym.st_value; in dso__load_sym() local 911 start += map->start + shdr.sh_offset; in dso__load_sym() 919 curr_map = map__new2(start, curr_dso, in dso__load_sym() 926 curr_map->start = shdr.sh_addr + in dso__load_sym() 928 curr_map->end = curr_map->start + in dso__load_sym() 1282 u64 start) in kcore_copy__process_kallsyms() argument 1290 if (start > kci->last_module_symbol) in kcore_copy__process_kallsyms() 1291 kci->last_module_symbol = start; in kcore_copy__process_kallsyms() [all …]
|
D | annotate.c | 481 if (addr < sym->start || addr >= sym->end) in __symbol__inc_addr_samples() 484 offset = addr - sym->start; in __symbol__inc_addr_samples() 490 ", evidx=%d] => %" PRIu64 "\n", sym->start, sym->name, in __symbol__inc_addr_samples() 491 addr, addr - sym->start, evidx, h->addr[offset]); in __symbol__inc_addr_samples() 667 static int disasm_line__print(struct disasm_line *dl, struct symbol *sym, u64 start, in disasm_line__print() argument 682 const u64 addr = start + offset; in disasm_line__print() 716 disasm_line__print(queue, sym, start, evsel, len, in disasm_line__print() 835 u64 start = map__rip_2objdump(map, sym->start), in symbol__parse_objdump_line() local 838 offset = line_ip - start; in symbol__parse_objdump_line() 839 if ((u64)line_ip < start || (u64)line_ip >= end) in symbol__parse_objdump_line() [all …]
|
D | symbol.h | 74 u64 start; member 98 return sym->end - sym->start; in symbol__size() 263 u64 start)); 271 struct symbol *symbol__new(u64 start, u64 len, u8 binding, const char *name); 292 typedef int (*mapfn_t)(u64 start, u64 len, u64 pgoff, void *data);
|
/tools/testing/selftests/timers/ |
D | posix_timers.c | 60 static int check_diff(struct timeval start, struct timeval end) in check_diff() argument 64 diff = end.tv_usec - start.tv_usec; in check_diff() 65 diff += (end.tv_sec - start.tv_sec) * USECS_PER_SEC; in check_diff() 78 struct timeval start, end; in check_itimer() local 103 err = gettimeofday(&start, NULL); in check_itimer() 128 if (!check_diff(start, end)) in check_itimer() 140 struct timeval start, end; in check_timer_create() local 161 err = gettimeofday(&start, NULL); in check_timer_create() 181 if (!check_diff(start, end)) in check_timer_create()
|
/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/lib/symbol/ |
D | kallsyms.c | 7 char type, u64 start)) in kallsyms__parse() argument 20 u64 start; in kallsyms__parse() local 31 len = hex2u64(line, &start); in kallsyms__parse() 47 err = process_symbol(arg, symbol_name, symbol_type, start); in kallsyms__parse()
|
/tools/perf/tests/ |
D | vmlinux-kallsyms.c | 116 if (sym->start == sym->end) in test__vmlinux_matches_kallsyms() 119 mem_start = vmlinux_map->unmap_ip(vmlinux_map, sym->start); in test__vmlinux_matches_kallsyms() 126 if (pair && UM(pair->start) == mem_start) { in test__vmlinux_matches_kallsyms() 160 if (UM(next->start) == mem_start) { in test__vmlinux_matches_kallsyms() 210 mem_start = vmlinux_map->unmap_ip(vmlinux_map, pos->start); in test__vmlinux_matches_kallsyms() 217 if (pair->start == mem_start) { in test__vmlinux_matches_kallsyms() 220 pos->start, pos->end, pos->pgoff, pos->dso->name); in test__vmlinux_matches_kallsyms() 223 pair->start, pair->end, pair->pgoff); in test__vmlinux_matches_kallsyms()
|
D | hists_common.c | 22 u64 start; member 37 u64 start; member 107 .start = fake_mmap_info[i].start, in setup_fake_machine() 135 sym = symbol__new(fsym->start, fsym->length, in setup_fake_machine()
|
/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/power/cpupower/utils/idle_monitor/ |
D | cpupower-monitor.c | 53 long long timespec_diff_us(struct timespec start, struct timespec end) in timespec_diff_us() argument 56 if ((end.tv_nsec - start.tv_nsec) < 0) { in timespec_diff_us() 57 temp.tv_sec = end.tv_sec - start.tv_sec - 1; in timespec_diff_us() 58 temp.tv_nsec = 1000000000 + end.tv_nsec - start.tv_nsec; in timespec_diff_us() 60 temp.tv_sec = end.tv_sec - start.tv_sec; in timespec_diff_us() 61 temp.tv_nsec = end.tv_nsec - start.tv_nsec; in timespec_diff_us() 278 struct timespec start, end; in fork_it() local 281 clock_gettime(CLOCK_REALTIME, &start); in fork_it() 284 monitors[num]->start(); in fork_it() 307 timediff = timespec_diff_us(start, end); in fork_it() [all …]
|
D | cpupower-monitor.h | 51 int (*start) (void); member 59 extern long long timespec_diff_us(struct timespec start, struct timespec end);
|
/tools/perf/ui/ |
D | browser.c | 605 u16 start, u16 end) in __ui_browser__vline() argument 608 ui_browser__gotorc(browser, start, column); in __ui_browser__vline() 609 SLsmg_draw_vline(end - start + 1); in __ui_browser__vline() 623 u64 start, u64 end) in __ui_browser__line_arrow_up() argument 629 if (start < browser->top_idx + browser->rows) { in __ui_browser__line_arrow_up() 630 row = start - browser->top_idx; in __ui_browser__line_arrow_up() 663 u64 start, u64 end) in __ui_browser__line_arrow_down() argument 669 if (start >= browser->top_idx) { in __ui_browser__line_arrow_down() 670 row = start - browser->top_idx; in __ui_browser__line_arrow_down() 702 u64 start, u64 end) in __ui_browser__line_arrow() argument [all …]
|
/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/ |
D | SchedGui.py | 79 def paint_rectangle_zone(self, nr, color, top_color, start, end): argument 80 offset_px = self.us_to_px(start - self.ts_start) 103 def update_rectangles(self, dc, start, end): argument 104 start += self.ts_start 106 self.sched_tracer.fill_zone(start, end) 114 start = self.px_to_us(x) 116 self.update_rectangles(dc, start, end)
|
/tools/testing/selftests/powerpc/pmu/ |
D | lib.c | 185 unsigned long start, end; in parse_proc_maps() local 199 &start, &end, &execute, name); in parse_proc_maps() 207 libc.first = start; in parse_proc_maps() 210 vdso.first = start; in parse_proc_maps()
|
/tools/perf/bench/ |
D | sched-pipe.c | 82 struct timeval start, stop, diff; in bench_sched_pipe() local 100 gettimeofday(&start, NULL); in bench_sched_pipe() 149 timersub(&stop, &start, &diff); in bench_sched_pipe()
|
/tools/testing/selftests/mqueue/ |
D | mq_perf_tests.c | 345 clock_gettime(clock, &start); \ 352 nsec = ((middle.tv_sec - start.tv_sec) * 1000000000) + \ 353 (middle.tv_nsec - start.tv_nsec); \ 426 struct timespec res, start, middle, end, send_total, recv_total; in perf_test_thread() local 479 clock_gettime(clock, &start); in perf_test_thread() 485 nsec = ((unsigned long long)(end.tv_sec - start.tv_sec) * in perf_test_thread() 486 1000000000) + (end.tv_nsec - start.tv_nsec); in perf_test_thread() 508 clock_gettime(clock, &start); in perf_test_thread() 511 nsec = ((unsigned long long)(end.tv_sec - start.tv_sec) * in perf_test_thread() 512 1000000000) + (end.tv_nsec - start.tv_nsec); in perf_test_thread()
|