Home
last modified time | relevance | path

Searched refs:start (Results 1 – 25 of 227) sorted by relevance

12345678910

/tools/perf/util/
Dblock-range.c25 assert(old < entry->start); in block_range__debug()
26 assert(entry->start <= entry->end); /* single instruction block; jump to a jump */ in block_range__debug()
43 if (addr < entry->start) in block_range__find()
81 struct block_range_iter block_range__create(u64 start, u64 end) in block_range__create() argument
92 if (start < entry->start) in block_range__create()
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()
125 .start = start, in block_range__create()
126 .end = next->start - 1, in block_range__create()
[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 …]
Dsvghelper.c85 void open_svg(const char *filename, int cpus, int rows, u64 start, u64 end) in open_svg() argument
94 first_time = start; 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()
164 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()
183 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()
[all …]
Dblock-range.h27 u64 start; member
47 struct block_range *start; member
53 return iter->start; in block_range_iter()
58 if (iter->start == iter->end) in block_range_iter__next()
61 iter->start = block_range__next(iter->start); 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);
Dtime-utils.c55 (parse_nsec_time(start_str, &ptime->start) != 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
88 *start = start_str; in split_start_end()
103 ptime->start = 0; in perf_time__parse_str()
111 if (rc == 0 && ptime->end && ptime->end < ptime->start) in perf_time__parse_str()
114 pr_debug("start time %" PRIu64 ", ", ptime->start); in perf_time__parse_str()
167 if (ptime[i].end >= ptime[i + 1].start) { in perf_time__parse_strs()
200 double end_pcnt, u64 start, u64 end) in set_percent_time() argument
202 u64 total = end - start; in set_percent_time()
209 ptime->start = start + round(start_pcnt * total); in set_percent_time()
[all …]
Dmem2node.c13 u64 start; member
28 if (entry->start < e->start) in phys_entry__insert()
39 phys_entry__init(struct phys_entry *entry, u64 start, u64 bsize, u64 node) in phys_entry__init() argument
41 entry->start = start; in phys_entry__init()
42 entry->end = start + bsize; in phys_entry__init()
72 u64 start; in mem2node__init() local
77 start = bit * bsize; in mem2node__init()
86 if ((prev->end == start) && in mem2node__init()
93 phys_entry__init(&entries[j++], start, bsize, n->node); in mem2node__init()
104 entries[i].node, entries[i].start, entries[i].end); in mem2node__init()
[all …]
/tools/lib/
Dfind_bit.c33 unsigned long start, unsigned long invert) in _find_next_bit() argument
37 if (unlikely(start >= nbits)) in _find_next_bit()
40 tmp = addr1[start / BITS_PER_LONG]; in _find_next_bit()
42 tmp &= addr2[start / BITS_PER_LONG]; in _find_next_bit()
46 tmp &= BITMAP_FIRST_WORD_MASK(start); in _find_next_bit()
47 start = round_down(start, BITS_PER_LONG); in _find_next_bit()
50 start += BITS_PER_LONG; in _find_next_bit()
51 if (start >= nbits) in _find_next_bit()
54 tmp = addr1[start / BITS_PER_LONG]; in _find_next_bit()
56 tmp &= addr2[start / BITS_PER_LONG]; in _find_next_bit()
[all …]
/tools/testing/nvdimm/test/
Diomap.c72 - nfit_res->res.start; in __nfit_test_ioremap()
83 - nfit_res->res.start; in __wrap_devm_ioremap_nocache()
94 return nfit_res->buf + offset - nfit_res->res.start; in __wrap_devm_memremap()
129 resource_size_t offset = pgmap->res.start; in __wrap_devm_memremap_pages()
155 return nfit_res->buf + offset - nfit_res->res.start; in __wrap_devm_memremap_pages()
175 return nfit_res->buf + offset - nfit_res->res.start; in __wrap_memremap()
222 struct resource *parent, resource_size_t start,
229 WARN_ON(!nfit_test_release_region(NULL, &iomem_resource, res->start, in nfit_devres_release()
236 resource_size_t start = *((resource_size_t *) match_data); in match() local
238 return res->start == start; in match()
[all …]
/tools/testing/radix-tree/
Dbenchmark.c18 struct timespec start, finish; in benchmark_iter() local
26 clock_gettime(CLOCK_MONOTONIC, &start); in benchmark_iter()
38 nsec = (finish.tv_sec - start.tv_sec) * NSEC_PER_SEC + in benchmark_iter()
39 (finish.tv_nsec - start.tv_nsec); in benchmark_iter()
55 struct timespec start, finish; in benchmark_insert() local
59 clock_gettime(CLOCK_MONOTONIC, &start); in benchmark_insert()
66 nsec = (finish.tv_sec - start.tv_sec) * NSEC_PER_SEC + in benchmark_insert()
67 (finish.tv_nsec - start.tv_nsec); in benchmark_insert()
76 struct timespec start, finish; in benchmark_tagging() local
80 clock_gettime(CLOCK_MONOTONIC, &start); in benchmark_tagging()
[all …]
Dmain.c50 unsigned long start; in __big_gang_check() local
53 start = 0; in __big_gang_check()
58 __gang_check(start, rand() % 113 + 1, rand() % 71, in __big_gang_check()
60 old_start = start; in __big_gang_check()
61 start += rand() % 1000000; in __big_gang_check()
62 start %= 1ULL << 33; in __big_gang_check()
63 if (start < old_start) in __big_gang_check()
126 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()
135 printv(2, "%lu-%lu: %lu, tags %d-%d\n", start, in check_copied_tags()
[all …]
Dbitmap.c5 void bitmap_clear(unsigned long *map, unsigned int start, int len) in bitmap_clear() argument
7 unsigned long *p = map + BIT_WORD(start); in bitmap_clear()
8 const unsigned int size = start + len; in bitmap_clear()
9 int bits_to_clear = BITS_PER_LONG - (start % BITS_PER_LONG); in bitmap_clear()
10 unsigned long mask_to_clear = BITMAP_FIRST_WORD_MASK(start); in bitmap_clear()
Dregression2.c81 unsigned long int start, end; in regression2_test() local
93 start = 0; in regression2_test()
95 tag_tagged_items(&mt_tree, start, end, 1, in regression2_test()
112 start = 1; in regression2_test()
114 radix_tree_gang_lookup_tag_slot(&mt_tree, (void ***)pages, start, end, in regression2_test()
/tools/perf/pmu-events/
Djsmn.c39 tok->start = tok->end = -1; in jsmn_alloc_token()
48 int start, int end) in jsmn_fill_token() argument
51 token->start = start; in jsmn_fill_token()
64 int start; in jsmn_parse_primitive() local
66 start = parser->pos; in jsmn_parse_primitive()
89 parser->pos = start; in jsmn_parse_primitive()
98 parser->pos = start; in jsmn_parse_primitive()
105 parser->pos = start; in jsmn_parse_primitive()
108 jsmn_fill_token(token, JSMN_PRIMITIVE, start, parser->pos); in jsmn_parse_primitive()
121 int start = parser->pos; in jsmn_parse_string() local
[all …]
/tools/testing/selftests/bpf/
Dtrace_helpers.c50 int start = 0, end = sym_cnt; in ksym_search() local
57 while (start < end) { in ksym_search()
58 size_t mid = start + (end - start) / 2; in ksym_search()
64 start = mid + 1; in ksym_search()
69 if (start >= 1 && syms[start - 1].addr < key && in ksym_search()
70 key < syms[start].addr) in ksym_search()
72 return &syms[start - 1]; in ksym_search()
/tools/perf/
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()
24 written = fwrite(start, 1, size, stdout); in main()
27 start += written; in main()
/tools/perf/arch/s390/util/
Dmachine.c11 int arch__fix_module_text_start(u64 *start, u64 *size, const char *name) in arch__fix_module_text_start() argument
13 u64 m_start = *start; in arch__fix_module_text_start()
18 if (sysfs__read_ull(path, (unsigned long long *)start) < 0) { in arch__fix_module_text_start()
20 *start = m_start; in arch__fix_module_text_start()
32 *size -= (*start - m_start); in arch__fix_module_text_start()
50 p->end = c->start; in arch__symbols__fixup_end()
/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
105 err = gettimeofday(&start, NULL); in check_itimer()
130 if (!check_diff(start, end)) in check_itimer()
142 struct timeval start, end; in check_timer_create() local
163 err = gettimeofday(&start, 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
64 start_ns = ts_to_nsec(start); in diff_timespec()
71 struct timespec start, mid, end; in get_monotonic_and_raw() local
78 clock_gettime(CLOCK_MONOTONIC, &start); 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
108 start = mon; in main()
124 interval = diff_timespec(start, end); in main()
/tools/perf/scripts/python/
Dnet_dropmonitor.py38 start, end = -1, len(kallsyms)
39 while end != start + 1:
40 pivot = (start + end) // 2
44 start = pivot
48 if start >= 0:
49 symloc, name = kallsyms[start]
/tools/perf/tests/
Dmap_groups.c12 u64 start; member
23 TEST_ASSERT_VAL("wrong map start", map->start == merged[i].start); in check_maps()
76 map->start = bpf_progs[i].start; in test__map_groups__merge_in()
92 map_kcore1->start = 100; in test__map_groups__merge_in()
96 map_kcore2->start = 550; in test__map_groups__merge_in()
100 map_kcore3->start = 880; in test__map_groups__merge_in()
/tools/testing/selftests/vm/
Dmlock2.h15 static int mlock2_(void *start, size_t len, int flags) in mlock2_() argument
18 return syscall(__NR_mlock2, start, len, flags); in mlock2_()
30 unsigned long start, end; in seek_to_smaps_entry() local
45 &start, &end, perms, &offset, dev, &inode, path) < 6) in seek_to_smaps_entry()
48 if (start <= addr && addr < end) in seek_to_smaps_entry()
Dmlock2-tests.c15 unsigned long start; member
26 unsigned long start; in get_vm_area() local
55 sscanf(line, "%lx", &start); in get_vm_area()
58 if (start <= addr && end > addr) { in get_vm_area()
59 area->start = start; in get_vm_area()
447 if (page1.start != page2.start || page2.start != page3.start) { in test_vma_management()
466 if (page1.start == page2.start || page2.start == page3.start) { in test_vma_management()
485 if (page1.start != page2.start || page2.start != page3.start) { in test_vma_management()
/tools/perf/arch/x86/util/
Dmachine.c25 static int add_extra_kernel_map(struct extra_kernel_map_info *mi, u64 start, in add_extra_kernel_map() argument
40 mi->maps[mi->cnt].start = start; in add_extra_kernel_map()
51 u64 start) in find_extra_kernel_maps() argument
57 mi->entry_trampoline = start; in find_extra_kernel_maps()
62 u64 end = start + page_size; in find_extra_kernel_maps()
64 return add_extra_kernel_map(mi, start, end, 0, name); in find_extra_kernel_maps()
/tools/testing/selftests/seccomp/
Dseccomp_benchmark.c23 struct timespec start, finish; in timing() local
26 assert(clock_gettime(clk_id, &start) == 0); in timing()
33 i = finish.tv_sec - start.tv_sec; in timing()
35 i += finish.tv_nsec - start.tv_nsec; in timing()
39 start.tv_sec, start.tv_nsec, in timing()
/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
224 if (sys_clock_gettime(clock, &start) < 0) { in test_one_clock_gettime()
250 (unsigned long long)start.tv_sec, start.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
284 if (sys_gettimeofday(&start, &sys_tz) < 0) { in test_gettimeofday()
301 (unsigned long long)start.tv_sec, start.tv_usec, in test_gettimeofday()
305 if (!tv_leq(&start, &vdso) || !tv_leq(&vdso, &end)) { in test_gettimeofday()

12345678910