Home
last modified time | relevance | path

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

12345678

/tools/perf/util/
Dblock-range.c26 assert(entry->start <= entry->end); /* single instruction block; jump to a jump */ in block_range__debug()
28 old = entry->end; in block_range__debug()
45 else if (addr > entry->end) in block_range__find()
81 struct block_range_iter block_range__create(u64 start, u64 end) in block_range__create() argument
94 else if (start > entry->end) in block_range__create()
112 if (entry->end < start) { in block_range__create()
119 if (next->start <= end) { /* add head: [start...][n->start...] */ in block_range__create()
126 .end = next->start - 1, in block_range__create()
149 .end = end, in block_range__create()
159 iter.end = entry; in block_range__create()
[all …]
Dtime-utils.c21 char *end; in parse_nsec_time() local
23 time_sec = strtoul(str, &end, 10); in parse_nsec_time()
24 if (*end != '.' && *end != '\0') in parse_nsec_time()
27 if (*end == '.') { in parse_nsec_time()
31 if (strlen(++end) > 9) in parse_nsec_time()
34 strncpy(nsec_buf, end, 9); in parse_nsec_time()
41 time_nsec = strtoul(nsec_buf, &end, 10); in parse_nsec_time()
42 if (*end != '\0') in parse_nsec_time()
60 (parse_nsec_time(end_str, &ptime->end) != 0)) { in parse_timestr_sec_nsec()
67 static int split_start_end(char **start, char **end, const char *ostr, char ch) in split_start_end() argument
[all …]
Dsvghelper.h9 void open_svg(const char *filename, int cpus, int rows, u64 start, u64 end);
10 void svg_ubox(int Yslot, u64 start, u64 end, double height, const char *type, int fd, int err, int …
11 void svg_lbox(int Yslot, u64 start, u64 end, double height, const char *type, int fd, int err, int …
12 void svg_fbox(int Yslot, u64 start, u64 end, double height, const char *type, int fd, int err, int …
13 void svg_box(int Yslot, u64 start, u64 end, const char *type);
14 void svg_blocked(int Yslot, int cpu, u64 start, u64 end, const char *backtrace);
15 void svg_running(int Yslot, int cpu, u64 start, u64 end, const char *backtrace);
16 void svg_waiting(int Yslot, int cpu, u64 start, u64 end, const char *backtrace);
20 void svg_process(int cpu, u64 start, u64 end, int pid, const char *name, const char *backtrace);
21 void svg_cstate(int cpu, u64 start, u64 end, int type);
[all …]
Dblock-range.h28 u64 end; member
48 struct block_range *end; member
58 if (iter->start == iter->end) in block_range_iter__next()
67 if (!iter->start || !iter->end) in block_range_iter__valid()
73 extern struct block_range_iter block_range__create(u64 start, u64 end);
Dsvghelper.c85 void open_svg(const char *filename, int cpus, int rows, u64 start, u64 end) in open_svg() argument
96 last_time = end; in open_svg()
153 void svg_ubox(int Yslot, u64 start, u64 end, double height, const char *type, int fd, int err, int … in svg_ubox() argument
155 double w = time2pixels(end) - time2pixels(start); in svg_ubox()
172 void svg_lbox(int Yslot, u64 start, u64 end, double height, const char *type, int fd, int err, int … in svg_lbox() argument
174 double w = time2pixels(end) - time2pixels(start); in svg_lbox()
191 void svg_fbox(int Yslot, u64 start, u64 end, double height, const char *type, int fd, int err, int … in svg_fbox() argument
193 double w = time2pixels(end) - time2pixels(start); in svg_fbox()
210 void svg_box(int Yslot, u64 start, u64 end, const char *type) in svg_box() argument
216 time2pixels(start), time2pixels(end)-time2pixels(start), Yslot * SLOT_MULT, SLOT_HEIGHT, type); in svg_box()
[all …]
Ddemangle-rust.c102 const char *end; in is_prefixed_hash() local
112 for (end = str + hash_len; str < end; str++) in is_prefixed_hash()
131 const char *end = str + len; in looks_like_rust() local
133 while (str < end) in looks_like_rust()
186 const char *end; in rust_demangle_sym() local
193 end = sym + strlen(sym) - (hash_prefix_len + hash_len); in rust_demangle_sym()
195 while (in < end) in rust_demangle_sym()
Dsrccode.c50 char *end = map + maplen; in countlines() local
56 while (p < end && (p = memchr(p, '\n', end - p)) != NULL) { in countlines()
60 if (p < end) in countlines()
68 char *end = map + maplen; in fill_lines() local
75 while (p < end && (p = memchr(p, '\n', end - p)) != NULL) { in fill_lines()
80 if (p < end) in fill_lines()
/tools/testing/radix-tree/
Dmain.c126 void check_copied_tags(struct radix_tree_root *tree, unsigned long start, unsigned long end, unsign… in check_copied_tags() argument
133 if (idx[i] < start || idx[i] > end) { in check_copied_tags()
136 end, idx[i], item_tag_get(tree, idx[i], in check_copied_tags()
145 printv(2, "%lu-%lu: %lu, tags %d-%d\n", start, end, in check_copied_tags()
160 unsigned long start, end, count = 0, tagged, cur, tmp; in copy_tag_check() local
165 end = rand(); in copy_tag_check()
166 if (start > end && (rand() % 10)) { in copy_tag_check()
168 start = end; in copy_tag_check()
169 end = cur; in copy_tag_check()
177 if (start <= end) in copy_tag_check()
[all …]
Dregression2.c81 unsigned long int start, end; in regression2_test() local
94 end = max_slots - 2; in regression2_test()
95 tag_tagged_items(&mt_tree, start, end, 1, in regression2_test()
113 end = max_slots - 2; in regression2_test()
114 radix_tree_gang_lookup_tag_slot(&mt_tree, (void ***)pages, start, end, in regression2_test()
/tools/testing/selftests/timers/
Dposix_timers.c62 static int check_diff(struct timeval start, struct timeval end) in check_diff() argument
66 diff = end.tv_usec - start.tv_usec; in check_diff()
67 diff += (end.tv_sec - start.tv_sec) * USECS_PER_SEC; in check_diff()
80 struct timeval start, end; in check_itimer() local
124 err = gettimeofday(&end, NULL); in check_itimer()
130 if (!check_diff(start, end)) in check_itimer()
142 struct timeval start, end; in check_timer_create() local
177 err = gettimeofday(&end, NULL); in check_timer_create()
183 if (!check_diff(start, end)) in check_timer_create()
Draw_skew.c60 long long diff_timespec(struct timespec start, struct timespec end) in diff_timespec() argument
65 end_ns = ts_to_nsec(end); in diff_timespec()
71 struct timespec start, mid, end; in get_monotonic_and_raw() local
80 clock_gettime(CLOCK_MONOTONIC, &end); in get_monotonic_and_raw()
82 newdiff = diff_timespec(start, end); in get_monotonic_and_raw()
86 tmp = (ts_to_nsec(start) + ts_to_nsec(end))/2; in get_monotonic_and_raw()
94 struct timespec mon, raw, start, end; in main() local
119 end = mon; in main()
124 interval = diff_timespec(start, end); in main()
Dnsleep-lat.c100 struct timespec start, end, target; in nanosleep_lat_test() local
118 clock_gettime(clockid, &end); in nanosleep_lat_test()
120 if (((timespec_sub(start, end)/count)-ns) > UNRESONABLE_LATENCY) { in nanosleep_lat_test()
121 printf("Large rel latency: %lld ns :", (timespec_sub(start, end)/count)-ns); in nanosleep_lat_test()
130 clock_gettime(clockid, &end); in nanosleep_lat_test()
131 latency += timespec_sub(target, end); in nanosleep_lat_test()
/tools/lib/
Dstring.c142 char *end; in strim() local
148 end = s + size - 1; in strim()
149 while (end >= s && isspace(*end)) in strim()
150 end--; in strim()
151 *(end + 1) = '\0'; in strim()
/tools/perf/tests/
Dmap_groups.c13 u64 end; member
24 TEST_ASSERT_VAL("wrong map end", map->end == merged[i].end); in check_maps()
77 map->end = bpf_progs[i].end; in test__map_groups__merge_in()
93 map_kcore1->end = 1000; in test__map_groups__merge_in()
97 map_kcore2->end = 570; in test__map_groups__merge_in()
101 map_kcore3->end = 1100; in test__map_groups__merge_in()
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()
138 s64 skew = mem_end - UM(pair->end); in test__vmlinux_matches_kallsyms()
142 UM(pair->end)); in test__vmlinux_matches_kallsyms()
166 } else if (mem_start == kallsyms.vmlinux_map->end) { in test__vmlinux_matches_kallsyms()
214 mem_end = vmlinux_map->unmap_ip(vmlinux_map, map->end); in test__vmlinux_matches_kallsyms()
227 map->start, map->end, map->pgoff, map->dso->name); in test__vmlinux_matches_kallsyms()
228 if (mem_end != pair->end) in test__vmlinux_matches_kallsyms()
230 pair->start, pair->end, pair->pgoff); in test__vmlinux_matches_kallsyms()
/tools/testing/selftests/powerpc/tm/
Dtm-syscall.c67 struct timeval end, now; in tm_syscall() local
75 gettimeofday(&end, NULL); in tm_syscall()
78 timeradd(&end, &now, &end); in tm_syscall()
80 for (count = 0; timercmp(&now, &end, <); count++) { in tm_syscall()
/tools/perf/
Dbuiltin-bench.c235 goto end; in cmd_bench()
244 goto end; in cmd_bench()
249 goto end; in cmd_bench()
254 goto end; in cmd_bench()
259 goto end; in cmd_bench()
271 goto end; in cmd_bench()
276 goto end; in cmd_bench()
287 goto end; in cmd_bench()
292 goto end; in cmd_bench()
297 goto end; in cmd_bench()
[all …]
Dperf-read-vdso.c15 void *start, *end; in main() local
18 if (find_map(&start, &end, VDSO__MAP_NAME)) in main()
21 size = end - start; in main()
/tools/perf/arch/s390/util/
Dmachine.c48 p->end = roundup(p->end, page_size); in arch__symbols__fixup_end()
50 p->end = c->start; in arch__symbols__fixup_end()
51 pr_debug4("%s sym:%s end:%#lx\n", __func__, p->name, p->end); in arch__symbols__fixup_end()
/tools/testing/selftests/x86/
Dtest_vdso.c61 void *start, *end; in vsyscall_getcpu() local
66 &start, &end, &r, &x, name) != 5) in vsyscall_getcpu()
219 struct timespec start, vdso, end; in test_one_clock_gettime() local
240 end_ret = sys_clock_gettime(clock, &end); in test_one_clock_gettime()
252 (unsigned long long)end.tv_sec, end.tv_nsec); in test_one_clock_gettime()
254 if (!ts_leq(&start, &vdso) || !ts_leq(&vdso, &end)) { in test_one_clock_gettime()
275 struct timeval start, vdso, end; in test_gettimeofday() local
291 end_ret = sys_gettimeofday(&end, NULL); in test_gettimeofday()
303 (unsigned long long)end.tv_sec, end.tv_usec); in test_gettimeofday()
305 if (!tv_leq(&start, &vdso) || !tv_leq(&vdso, &end)) { in test_gettimeofday()
/tools/testing/selftests/bpf/
Dtest_sockmap_kern.h178 int *start, *end, *start_push, *end_push, *start_pop, *pop; in bpf_prog4() local
187 end = bpf_map_lookup_elem(&sock_bytes, &one); in bpf_prog4()
188 if (start && end) in bpf_prog4()
189 bpf_msg_pull_data(msg, *start, *end, 0); in bpf_prog4()
205 int *start, *end, *start_push, *end_push, *start_pop, *pop; in bpf_prog5() local
217 end = bpf_map_lookup_elem(&sock_bytes, &one); in bpf_prog5()
218 if (start && end) { in bpf_prog5()
222 start ? *start : 0, end ? *end : 0); in bpf_prog5()
223 err = bpf_msg_pull_data(msg, *start, *end, 0); in bpf_prog5()
271 int *bytes, *start, *end, *start_push, *end_push, *start_pop, *pop, *f; in bpf_prog6() local
[all …]
/tools/testing/selftests/powerpc/pmu/
Dlib.c154 unsigned long start, end; in parse_proc_maps() local
168 &start, &end, &execute, name); in parse_proc_maps()
177 libc.last = end - 1; in parse_proc_maps()
180 vdso.last = end - 1; in parse_proc_maps()
194 char *end, buf[16]; in require_paranoia_below() local
211 current = strtol(buf, &end, 10); in require_paranoia_below()
213 if (end == buf) { in require_paranoia_below()
/tools/perf/scripts/python/
Dintel-pt-events.py40 print("IP: %u payload: %#x" % (exact_ip, payload), end=' ')
47 print("%3u freq: %4u MHz (%3u%%)" % (cbr, f, p), end=' ')
54 print("hints: %#x extensions: %#x" % (hints, extensions), end=' ')
63 end=' ')
69 print("IP: %u" % (exact_ip), end=' ')
78 (deepest_cstate, last_cstate, wake_reason), end=' ')
87 end=' ')
Dnet_dropmonitor.py38 start, end = -1, len(kallsyms)
39 while end != start + 1:
40 pivot = (start + end) // 2
42 end = pivot
/tools/testing/selftests/proc/
Dproc.h27 static unsigned long long xstrtoull(const char *p, char **end) in xstrtoull() argument
30 *end = (char *)p + 1; in xstrtoull()
36 val = strtoull(p, end, 10); in xstrtoull()

12345678