Home
last modified time | relevance | path

Searched refs:end (Results 1 – 25 of 94) sorted by relevance

1234

/tools/perf/util/
Dsvghelper.h6 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 …]
Dsvghelper.c86 void open_svg(const char *filename, int cpus, int rows, u64 start, u64 end) in open_svg() argument
97 last_time = end; 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()
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()
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()
211 void svg_box(int Yslot, u64 start, u64 end, const char *type) in svg_box() argument
217 time2pixels(start), time2pixels(end)-time2pixels(start), Yslot * SLOT_MULT, SLOT_HEIGHT, type); in svg_box()
[all …]
Dstring.c170 goto end; in __match_charclass()
175 goto end; in __match_charclass()
180 goto end; in __match_charclass()
186 end: in __match_charclass()
335 char *end; in rtrim() local
340 end = s + size - 1; in rtrim()
341 while (end >= s && isspace(*end)) in rtrim()
342 end--; in rtrim()
343 *(end + 1) = '\0'; in rtrim()
Dunwind-libunwind.c50 unw_word_t end);
93 #define dw_read(ptr, type, end) ({ \ argument
96 if ((__p + 1) > (type *) end) \
103 static int __dw_read_encoded_value(u8 **p, u8 *end, u64 *val, in __dw_read_encoded_value() argument
114 *val = dw_read(cur, unsigned long, end); in __dw_read_encoded_value()
135 *val += dw_read(cur, s32, end); in __dw_read_encoded_value()
138 *val += dw_read(cur, u32, end); in __dw_read_encoded_value()
141 *val += dw_read(cur, s64, end); in __dw_read_encoded_value()
144 *val += dw_read(cur, u64, end); in __dw_read_encoded_value()
155 #define dw_read_encoded_value(ptr, end, enc) ({ \ argument
[all …]
Dconfig.c280 static int parse_unit_factor(const char *end, unsigned long *val) in parse_unit_factor() argument
282 if (!*end) in parse_unit_factor()
284 else if (!strcasecmp(end, "k")) { in parse_unit_factor()
288 else if (!strcasecmp(end, "m")) { in parse_unit_factor()
292 else if (!strcasecmp(end, "g")) { in parse_unit_factor()
302 char *end; in perf_parse_llong() local
303 long long val = strtoll(value, &end, 0); in perf_parse_llong()
306 if (!parse_unit_factor(end, &factor)) in perf_parse_llong()
317 char *end; in perf_parse_long() local
318 long val = strtol(value, &end, 0); in perf_parse_long()
[all …]
Dfind-vdso-map.c1 static int find_vdso_map(void **start, void **end) in find_vdso_map() argument
18 start, end, &m)) in find_vdso_map()
Dmap.c128 u64 start, u64 end, u64 pgoff, struct dso *dso) in map__init() argument
132 map->end = end; in map__init()
275 map->end = sym->end; in map__fixup_end()
373 if (l->end > r->start) in map__overlap()
382 map->start, map->end, map->pgoff, map->dso->name); in map__fprintf()
595 if (ams->addr < ams->map->start || ams->addr >= ams->map->end) { in map_groups__find_ams()
690 before->end = map->start; in maps__fixup_overlappings()
696 if (map->end < pos->end) { in maps__fixup_overlappings()
704 after->start = map->end; in maps__fixup_overlappings()
705 after->pgoff += map->end - pos->start; in maps__fixup_overlappings()
[all …]
/tools/testing/selftests/timers/
Dposix_timers.c63 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
125 gettimeofday(&end, NULL); in check_itimer()
131 if (!check_diff(start, end)) in check_itimer()
143 struct timeval start, end; in check_timer_create() local
178 gettimeofday(&end, NULL); in check_timer_create()
184 if (!check_diff(start, end)) in check_timer_create()
Draw_skew.c72 long long diff_timespec(struct timespec start, struct timespec end) in diff_timespec() argument
77 end_ns = ts_to_nsec(end); in diff_timespec()
83 struct timespec start, mid, end; in get_monotonic_and_raw() local
92 clock_gettime(CLOCK_MONOTONIC, &end); 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
130 end = mon; in main()
135 interval = diff_timespec(start, end); in main()
Dnsleep-lat.c111 struct timespec start, end, target; in nanosleep_lat_test() local
129 clock_gettime(clockid, &end); 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()
141 clock_gettime(clockid, &end); in nanosleep_lat_test()
142 latency += timespec_sub(target, end); in nanosleep_lat_test()
Dadjtick.c70 long long diff_timespec(struct timespec start, struct timespec end) in diff_timespec() argument
75 end_ns = ts_to_nsec(end); in diff_timespec()
82 struct timespec start, mid, end; in get_monotonic_and_raw() local
95 clock_gettime(CLOCK_MONOTONIC, &end); 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()
Dmqueue-lat.c74 struct timespec start, end, now, target; in mqueue_lat_test() local
101 clock_gettime(CLOCK_MONOTONIC, &end); in mqueue_lat_test()
105 if ((timespec_sub(start, end)/count) > TARGET_TIMEOUT + UNRESONABLE_LATENCY) in mqueue_lat_test()
/tools/perf/
Dbuiltin-bench.c222 goto end; in cmd_bench()
231 goto end; in cmd_bench()
236 goto end; in cmd_bench()
241 goto end; in cmd_bench()
246 goto end; in cmd_bench()
258 goto end; in cmd_bench()
263 goto end; in cmd_bench()
274 goto end; in cmd_bench()
279 goto end; in cmd_bench()
284 goto end; in cmd_bench()
[all …]
Dperf-read-vdso.c14 void *start, *end; in main() local
17 if (find_vdso_map(&start, &end)) in main()
20 size = end - start; in main()
/tools/testing/selftests/powerpc/tm/
Dtm-syscall.c93 struct timeval end, now; in tm_syscall() local
101 gettimeofday(&end, NULL); in tm_syscall()
104 timeradd(&end, &now, &end); in tm_syscall()
106 for (count = 0; timercmp(&now, &end, <); count++) { in tm_syscall()
/tools/include/linux/
Dlist.h17 struct list_head *end) in list_del_range() argument
19 begin->prev->next = end->next; in list_del_range()
20 end->next->prev = begin->prev; in list_del_range()
/tools/perf/scripts/python/
Dnet_dropmonitor.py35 start, end = -1, len(kallsyms)
36 while end != start + 1:
37 pivot = (start + end) // 2
39 end = pivot
Dsched-migration.py163 self.end = start
223 self.end = t
239 end = len(self.data)
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:
249 end = i
252 if self.data[i].end < ts:
256 end = i
273 raw += "Duration : %6d us\n" % ((ts.end - ts.start) / (10 ** 6))
[all …]
/tools/testing/selftests/powerpc/pmu/
Dlib.c180 unsigned long start, end; in parse_proc_maps() local
194 &start, &end, &execute, name); in parse_proc_maps()
203 libc.last = end - 1; in parse_proc_maps()
206 vdso.last = end - 1; in parse_proc_maps()
220 char *end, buf[16]; in require_paranoia_below() local
237 current = strtoul(buf, &end, 10); in require_paranoia_below()
239 if (end == buf) { in require_paranoia_below()
/tools/perf/tests/
Dvmlinux-kallsyms.c117 if (sym->start == sym->end) in test__vmlinux_matches_kallsyms()
121 mem_end = vmlinux_map->unmap_ip(vmlinux_map, sym->end); in test__vmlinux_matches_kallsyms()
139 s64 skew = mem_end - UM(pair->end); in test__vmlinux_matches_kallsyms()
143 UM(pair->end)); in test__vmlinux_matches_kallsyms()
212 mem_end = vmlinux_map->unmap_ip(vmlinux_map, map->end); in test__vmlinux_matches_kallsyms()
221 map->start, map->end, map->pgoff, map->dso->name); in test__vmlinux_matches_kallsyms()
222 if (mem_end != pair->end) in test__vmlinux_matches_kallsyms()
224 pair->start, pair->end, pair->pgoff); in test__vmlinux_matches_kallsyms()
/tools/build/
Dfixdep.c49 char *end = m + len; in parse_dep_file() local
56 while (m < end) { in parse_dep_file()
58 while (m < end && (*m == ' ' || *m == '\\' || *m == '\n')) in parse_dep_file()
62 while (p < end && *p != ' ' && *p != '\\' && *p != '\n') in parse_dep_file()
/tools/power/cpupower/utils/idle_monitor/
Dcpupower-monitor.c55 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
309 clock_gettime(CLOCK_REALTIME, &end); in fork_it()
313 timediff = timespec_diff_us(start, end); in fork_it()
/tools/perf/ui/
Dbrowser.c634 u16 start, u16 end) in __ui_browser__vline() argument
638 SLsmg_draw_vline(end - start + 1); in __ui_browser__vline()
652 u64 start, u64 end) in __ui_browser__line_arrow_up() argument
670 if (end > browser->top_idx) in __ui_browser__line_arrow_up()
671 end_row = end - browser->top_idx; in __ui_browser__line_arrow_up()
679 if (end >= browser->top_idx) { in __ui_browser__line_arrow_up()
692 u64 start, u64 end) in __ui_browser__line_arrow_down() argument
710 if (end >= browser->top_idx + browser->rows) in __ui_browser__line_arrow_down()
713 end_row = end - browser->top_idx; in __ui_browser__line_arrow_down()
719 if (end < browser->top_idx + browser->rows) { in __ui_browser__line_arrow_down()
[all …]
/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
DSchedGui.py79 def paint_rectangle_zone(self, nr, color, top_color, start, end): argument
81 width_px = self.us_to_px(end - self.ts_start)
103 def update_rectangles(self, dc, start, end): argument
105 end += self.ts_start
106 self.sched_tracer.fill_zone(start, end)
115 end = self.px_to_us(x + width)
116 self.update_rectangles(dc, start, end)
/tools/perf/ui/browsers/
Dmap.c29 mb->addrlen, sym->start, mb->addrlen, sym->end, in map_browser__write()
118 if (maxaddr < pos->end) in map__browse()
119 maxaddr = pos->end; in map__browse()

1234