Lines Matching +full:0 +full:x2c000

62 	for (i = 0; i < THREADS__TABLE_SIZE; i++) {  in machine__threads_init()
66 threads->nr = 0; in machine__threads_init()
79 machine->pid) < 0) in machine__set_mmap_name()
82 return machine->mmap_name ? 0 : -ENOMEM; in machine__set_mmap_name()
89 memset(machine, 0, sizeof(*machine)); in machine__init()
101 machine->id_hdr_size = 0; in machine__init()
104 machine->kernel_start = 0; in machine__init()
123 thread__set_comm(thread, comm, 0); in machine__init()
128 err = 0; in machine__init()
135 return 0; in machine__init()
145 if (machine__create_kernel_maps(machine) < 0) in machine__new_host()
164 if (machine && machine__load_kallsyms(machine, "/proc/kallsyms") <= 0) { in machine__new_kallsyms()
199 for (i = 0; i < THREADS__TABLE_SIZE; i++) { in machine__delete_threads()
228 for (i = 0; i < THREADS__TABLE_SIZE; i++) { in machine__exit()
277 if (machine__init(machine, root_dir, pid) != 0) { in machines__add()
608 int err = 0; in machine__process_comm_event()
634 int err = 0; in machine__process_namespaces_event()
671 return 0; in machine__process_cgroup_event()
679 return 0; in machine__process_lost_event()
687 return 0; in machine__process_lost_samples_event()
720 return 0; in machine__process_aux_event()
728 return 0; in machine__process_itrace_start_event()
736 return 0; in machine__process_switch_event()
751 map = map__new2(0, dso); in machine__process_ksymbol_register()
778 0, 0, event->ksymbol.name); in machine__process_ksymbol_register()
782 return 0; in machine__process_ksymbol_register()
794 return 0; in machine__process_ksymbol_unregister()
804 return 0; in machine__process_ksymbol_unregister()
830 return 0; in machine__process_text_poke()
834 return 0; in machine__process_text_poke()
858 return 0; in machine__process_text_poke()
925 size_t printed = 0; in machine__fprintf_vmlinux_path()
932 printed += fprintf(fp, "[0] %s\n", filename); in machine__fprintf_vmlinux_path()
935 for (i = 0; i < vmlinux_path__nr_entries; ++i) in machine__fprintf_vmlinux_path()
948 for (i = 0; i < THREADS__TABLE_SIZE; i++) { in machine__fprintf()
1019 u64 addr = 0; in machine__get_running_kernel_start()
1024 return 0; in machine__get_running_kernel_start()
1026 for (i = 0; (name = ref_reloc_sym_names[i]) != NULL; i++) { in machine__get_running_kernel_start()
1044 return 0; in machine__get_running_kernel_start()
1072 return 0; in machine__create_extra_kernel_map()
1089 for (i = 0; i < ARRAY_SIZE(syms); i++) { in find_entry_trampoline()
1095 return 0; in find_entry_trampoline()
1102 #define X86_64_CPU_ENTRY_AREA_PER_CPU 0xfffffe0000000000ULL
1103 #define X86_64_CPU_ENTRY_AREA_SIZE 0x2c000
1104 #define X86_64_ENTRY_TRAMPOLINE 0x6000
1133 return 0; in machine__map_x86_64_entry_trampolines()
1137 return 0; in machine__map_x86_64_entry_trampolines()
1142 for (cpu = 0; cpu < nr_cpus_avail; cpu++) { in machine__map_x86_64_entry_trampolines()
1154 if (machine__create_extra_kernel_map(machine, kernel, &xm) < 0) in machine__map_x86_64_entry_trampolines()
1160 return 0; in machine__map_x86_64_entry_trampolines()
1166 return 0; in machine__create_extra_kernel_maps()
1175 machine->vmlinux_map = map__new2(0, kernel); in __machine__create_kernel_maps()
1181 return 0; in __machine__create_kernel_maps()
1204 int ret = 0; in machines__create_guest_kernel_maps()
1206 int i, items = 0; in machines__create_guest_kernel_maps()
1219 if (items <= 0) in machines__create_guest_kernel_maps()
1221 for (i = 0; i < items; i++) { in machines__create_guest_kernel_maps()
1222 if (!isdigit(namelist[i]->d_name[0])) { in machines__create_guest_kernel_maps()
1227 if ((*endp != '\0') || in machines__create_guest_kernel_maps()
1281 if (ret > 0) { in machine__load_kallsyms()
1299 if (ret > 0) in machine__load_vmlinux_path()
1328 *tmp = '\0'; in get_kernel_version()
1345 return 0; in maps__set_module_path()
1363 return 0; in maps__set_module_path()
1370 int ret = 0; in maps__set_modules_path_dir()
1392 if (depth == 0) { in maps__set_modules_path_dir()
1399 if (ret < 0) in maps__set_modules_path_dir()
1436 return maps__set_modules_path_dir(&machine->kmaps, modules_path, 0); in machine__set_modules_path()
1442 return 0; in arch__fix_module_text_start()
1451 if (arch__fix_module_text_start(&start, &size, name) < 0) in machine__create_module()
1461 return 0; in machine__create_module()
1483 return 0; in machine__create_modules()
1487 return 0; in machine__create_modules()
1499 if (start == 0 && end == 0) in machine__set_kernel_mmap()
1500 machine->vmlinux_map->end = ~0ULL; in machine__set_kernel_mmap()
1522 u64 start = 0, end = ~0ULL; in machine__create_kernel_maps()
1529 if (ret < 0) in machine__create_kernel_maps()
1532 if (symbol_conf.use_modules && machine__create_modules(machine) < 0) { in machine__create_kernel_maps()
1559 if (end == ~0ULL) { in machine__create_kernel_maps()
1617 return 0; in machine__process_kernel_mmap_event()
1626 strlen(machine->mmap_name) - 1) == 0; in machine__process_kernel_mmap_event()
1627 if (event->mmap.filename[0] == '/' || in machine__process_kernel_mmap_event()
1628 (!is_kernel_mmap && event->mmap.filename[0] == '[')) { in machine__process_kernel_mmap_event()
1683 if (__machine__create_kernel_maps(machine, kernel) < 0) { in machine__process_kernel_mmap_event()
1699 if (event->mmap.pgoff != 0) { in machine__process_kernel_mmap_event()
1714 return 0; in machine__process_kernel_mmap_event()
1731 int ret = 0; in machine__process_mmap2_event()
1739 if (ret < 0) in machine__process_mmap2_event()
1741 return 0; in machine__process_mmap2_event()
1764 return 0; in machine__process_mmap2_event()
1772 return 0; in machine__process_mmap2_event()
1780 u32 prot = 0; in machine__process_mmap_event()
1781 int ret = 0; in machine__process_mmap_event()
1789 if (ret < 0) in machine__process_mmap_event()
1791 return 0; in machine__process_mmap_event()
1804 NULL, prot, 0, event->mmap.filename, thread); in machine__process_mmap_event()
1815 return 0; in machine__process_mmap_event()
1823 return 0; in machine__process_mmap_event()
1836 BUG_ON(refcount_read(&th->refcnt) == 0); in __machine__remove_thread()
1874 int err = 0; in machine__process_fork_event()
1920 thread__fork(thread, parent, sample->time, do_maps_clone) < 0) { in machine__process_fork_event()
1945 return 0; in machine__process_exit_event()
1995 if (!regexec(regex, sym->name, 0, NULL, 0)) in symbol__match_regex()
1997 return 0; in symbol__match_regex()
2006 memset(&al, 0, sizeof(al)); in ip__resolve_ams()
2021 ams->phys_addr = 0; in ip__resolve_ams()
2030 memset(&al, 0, sizeof(al)); in ip__resolve_data()
2097 int nr_loop_iter = 0; in add_callchain_ip()
2098 u64 iter_cycles = 0; in add_callchain_ip()
2101 al.filtered = 0; in add_callchain_ip()
2127 return 0; in add_callchain_ip()
2146 return 0; in add_callchain_ip()
2173 for (i = 0; i < bs->nr; i++) { in sample__resolve_bstack()
2187 iter->cycles = 0; in save_iterations()
2189 for (i = 0; i < nr; i++) in save_iterations()
2195 #define NO_ENTRY 0xff
2210 for (i = 0; i < nr; i++) { in remove_loops()
2219 off = 0; in remove_loops()
2227 if (j > 0) { in remove_loops()
2258 for (i = 0; i < end + 1; i++) { in lbr_callchain_add_kernel_ip()
2265 return 0; in lbr_callchain_add_kernel_ip()
2268 for (i = end; i >= 0; i--) { in lbr_callchain_add_kernel_ip()
2276 return 0; in lbr_callchain_add_kernel_ip()
2330 for (i = 0; i < (int)(cursor->nr - 1); i++) in lbr_callchain_add_lbr_ip()
2337 ip = entries[0].to; in lbr_callchain_add_lbr_ip()
2338 flags = &entries[0].flags; in lbr_callchain_add_lbr_ip()
2339 *branch_from = entries[0].from; in lbr_callchain_add_lbr_ip()
2350 * But does not need to save current cursor node for entry 0. in lbr_callchain_add_lbr_ip()
2362 for (i = 0; i < lbr_nr; i++) { in lbr_callchain_add_lbr_ip()
2373 return 0; in lbr_callchain_add_lbr_ip()
2377 for (i = lbr_nr - 1; i >= 0; i--) { in lbr_callchain_add_lbr_ip()
2390 ip = entries[0].to; in lbr_callchain_add_lbr_ip()
2391 flags = &entries[0].flags; in lbr_callchain_add_lbr_ip()
2392 *branch_from = entries[0].from; in lbr_callchain_add_lbr_ip()
2400 return 0; in lbr_callchain_add_lbr_ip()
2425 return 0; in lbr_callchain_add_stitched_lbr_ip()
2455 int i, j, nr_identical_branches = 0; in has_stitched_lbr()
2479 for (i = distance, j = cur_stack->nr - 1; (i >= 0) && (j >= 0); i--, j--) { in has_stitched_lbr()
2546 * 0 no available LBR callchain information, should try fp
2562 u64 branch_from = 0; in resolve_lbr_callchain_sample()
2565 for (i = 0; i < chain_nr; i++) { in resolve_lbr_callchain_sample()
2572 return 0; in resolve_lbr_callchain_sample()
2575 (max_lbr > 0) && alloc_lbr_stitch(thread, max_lbr)) { in resolve_lbr_callchain_sample()
2629 return (err < 0) ? err : 0; in resolve_lbr_callchain_sample()
2638 int err = 0; in find_prev_cpumode()
2640 while (--ent >= 0) { in find_prev_cpumode()
2646 false, NULL, NULL, 0); in find_prev_cpumode()
2664 int chain_nr = 0; in thread__resolve_callchain_sample()
2668 int first_call = 0; in thread__resolve_callchain_sample()
2678 !env ? 0 : env->max_branches); in thread__resolve_callchain_sample()
2680 return (err < 0) ? err : 0; in thread__resolve_callchain_sample()
2711 for (i = 0; i < nr; i++) { in thread__resolve_callchain_sample()
2735 memset(iter, 0, sizeof(struct iterations) * nr); in thread__resolve_callchain_sample()
2738 for (i = 0; i < nr; i++) { in thread__resolve_callchain_sample()
2749 &iter[i], 0); in thread__resolve_callchain_sample()
2756 if (chain_nr == 0) in thread__resolve_callchain_sample()
2757 return 0; in thread__resolve_callchain_sample()
2767 return (err < 0) ? err : 0; in thread__resolve_callchain_sample()
2769 for (i = first_call, nr_entries = 0; in thread__resolve_callchain_sample()
2789 return (err < 0) ? err : 0; in thread__resolve_callchain_sample()
2795 false, NULL, NULL, 0); in thread__resolve_callchain_sample()
2798 return (err < 0) ? err : 0; in thread__resolve_callchain_sample()
2801 return 0; in thread__resolve_callchain_sample()
2834 NULL, 0, 0, 0, ilist->srcline); in append_inlines()
2836 if (ret != 0) in append_inlines()
2850 return 0; in unwind_entry()
2852 if (append_inlines(cursor, &entry->ms, entry->ip) == 0) in unwind_entry()
2853 return 0; in unwind_entry()
2864 false, NULL, 0, 0, 0, srcline); in unwind_entry()
2876 return 0; in thread__resolve_callchain_unwind()
2881 return 0; in thread__resolve_callchain_unwind()
2895 int ret = 0; in thread__resolve_callchain()
2931 int rc = 0; in machine__for_each_thread()
2934 for (i = 0; i < THREADS__TABLE_SIZE; i++) { in machine__for_each_thread()
2940 if (rc != 0) in machine__for_each_thread()
2946 if (rc != 0) in machine__for_each_thread()
2958 int rc = 0; in machines__for_each_thread()
2961 if (rc != 0) in machines__for_each_thread()
2968 if (rc != 0) in machines__for_each_thread()
2978 if (cpu < 0 || cpu >= nr_cpus || !machine->current_tid) in machine__get_current_tid()
2990 if (cpu < 0) in machine__set_current_tid()
2999 for (i = 0; i < nr_cpus; i++) in machine__set_current_tid()
3018 return 0; in machine__set_current_tid()
3032 return machine ? perf_env__nr_cpus_avail(machine->env) : 0; in machine__nr_cpus_avail()
3038 int err = 0; in machine__get_kernel_start()
3116 int err = 0; in machine__for_each_dso()