/linux-6.1.9/tools/perf/util/ |
D | namespaces.c | 63 static int nsinfo__get_nspid(struct nsinfo *nsi, const char *path) in nsinfo__get_nspid() argument 77 nsi->tgid = (pid_t)strtol(strrchr(statln, '\t'), in nsinfo__get_nspid() 79 nsi->nstgid = nsinfo__tgid(nsi); in nsinfo__get_nspid() 84 nsi->nstgid = (pid_t)strtol(nspid, NULL, 10); in nsinfo__get_nspid() 89 nsi->in_pidns = (statln + sizeof("NStgid:") - 1) != nspid; in nsinfo__get_nspid() 99 int nsinfo__init(struct nsinfo *nsi) in nsinfo__init() argument 111 if (asprintf(&newns, "/proc/%d/ns/mnt", nsinfo__pid(nsi)) == -1) in nsinfo__init() 124 nsi->need_setns = true; in nsinfo__init() 125 nsi->mntns_path = newns; in nsinfo__init() 132 if (snprintf(spath, PATH_MAX, "/proc/%d/status", nsinfo__pid(nsi)) >= PATH_MAX) in nsinfo__init() [all …]
|
D | namespaces.h | 48 int nsinfo__init(struct nsinfo *nsi); 50 struct nsinfo *nsinfo__copy(const struct nsinfo *nsi); 52 struct nsinfo *nsinfo__get(struct nsinfo *nsi); 53 void nsinfo__put(struct nsinfo *nsi); 55 bool nsinfo__need_setns(const struct nsinfo *nsi); 56 void nsinfo__clear_need_setns(struct nsinfo *nsi); 57 pid_t nsinfo__tgid(const struct nsinfo *nsi); 58 pid_t nsinfo__nstgid(const struct nsinfo *nsi); 59 pid_t nsinfo__pid(const struct nsinfo *nsi); 60 pid_t nsinfo__in_pidns(const struct nsinfo *nsi); [all …]
|
D | copyfile.c | 14 static int slow_copyfile(const char *from, const char *to, struct nsinfo *nsi) in slow_copyfile() argument 22 nsinfo__mountns_enter(nsi, &nsc); in slow_copyfile() 74 struct nsinfo *nsi) in copyfile_mode_ns() argument 82 nsinfo__mountns_enter(nsi, &nsc); in copyfile_mode_ns() 105 err = slow_copyfile(from, tmp, nsi); in copyfile_mode_ns() 114 nsinfo__mountns_enter(nsi, &nsc); in copyfile_mode_ns() 133 int copyfile_ns(const char *from, const char *to, struct nsinfo *nsi) in copyfile_ns() argument 135 return copyfile_mode_ns(from, to, 0755, nsi); in copyfile_ns()
|
D | build-id.c | 558 struct nsinfo *nsi, bool is_kallsyms, in build_id_cache__cachedir() argument 565 realname = nsinfo__realpath(name, nsi); in build_id_cache__cachedir() 578 int build_id_cache__list_build_ids(const char *pathname, struct nsinfo *nsi, in build_id_cache__list_build_ids() argument 584 dir_name = build_id_cache__cachedir(NULL, pathname, nsi, false, false); in build_id_cache__list_build_ids() 599 struct nsinfo *nsi) in build_id_cache__add_sdt_cache() argument 605 cache = probe_cache__new(sbuild_id, nsi); in build_id_cache__add_sdt_cache() 609 nsinfo__mountns_enter(nsi, &nsc); in build_id_cache__add_sdt_cache() 621 #define build_id_cache__add_sdt_cache(sbuild_id, realname, nsi) (0) argument 625 struct nsinfo *nsi, in build_id_cache__find_debug() argument 648 nsinfo__mountns_enter(nsi, &nsc); in build_id_cache__find_debug() [all …]
|
D | build-id.h | 58 struct nsinfo *nsi, bool is_kallsyms, 65 int build_id_cache__list_build_ids(const char *pathname, struct nsinfo *nsi, 69 struct nsinfo *nsi, bool is_kallsyms, bool is_vdso, 72 const char *name, struct nsinfo *nsi, 76 const char *name, struct nsinfo *nsi, in build_id_cache__add_s() argument 79 return __build_id_cache__add_s(sbuild_id, name, nsi, is_kallsyms, is_vdso, NULL, NULL); in build_id_cache__add_s()
|
D | jitdump.c | 39 struct nsinfo *nsi; member 88 nsinfo__mountns_enter(jd->nsi, &nsc); in jit_emit_elf() 103 nsinfo__mountns_enter(jd->nsi, &nsc); in jit_emit_elf() 146 nsinfo__mountns_enter(jd->nsi, &nsc); in jit_open() 378 if (jd->nsi && nsinfo__in_pidns(jd->nsi)) in jr_entry_pid() 379 return nsinfo__tgid(jd->nsi); in jr_entry_pid() 385 if (jd->nsi && nsinfo__in_pidns(jd->nsi)) in jr_entry_tid() 386 return nsinfo__pid(jd->nsi); in jr_entry_tid() 485 if (nsinfo__stat(filename, &st, jd->nsi)) in jit_repipe_code_load() 576 if (nsinfo__stat(filename, &st, jd->nsi)) in jit_repipe_code_move() [all …]
|
D | probe-event.h | 105 struct nsinfo *nsi; /* Target namespace */ member 179 struct nsinfo *nsi, bool user); 182 int show_available_funcs(const char *module, struct nsinfo *nsi, 197 struct map *get_target_map(const char *target, struct nsinfo *nsi, bool user);
|
D | map.c | 125 struct nsinfo *nsi = NULL; in map__new() local 139 nsi = nsinfo__get(thread->nsinfo); in map__new() 141 if ((anon || no_dso) && nsi && (prot & PROT_EXEC)) { in map__new() 143 "/tmp/perf-%d.map", nsinfo__pid(nsi)); in map__new() 157 nnsi = nsinfo__copy(nsi); in map__new() 159 nsinfo__put(nsi); in map__new() 161 nsi = nnsi; in map__new() 186 dso->nsinfo = nsi; in map__new() 210 nsinfo__put(nsi); in map__new()
|
D | probe-file.h | 55 struct probe_cache *probe_cache__new(const char *target, struct nsinfo *nsi); 77 …ct probe_cache *probe_cache__new(const char *tgt __maybe_unused, struct nsinfo *nsi __maybe_unused) in probe_cache__new()
|
D | probe-event.c | 176 struct map *get_target_map(const char *target, struct nsinfo *nsi, bool user) in get_target_map() argument 186 map->dso->nsinfo = nsinfo__get(nsi); in get_target_map() 371 const char *target, struct nsinfo *nsi, in find_alternative_probe_point() argument 383 map = get_target_map(target, nsi, uprobes); in find_alternative_probe_point() 431 pev->nsi, pev->uprobes); in get_alternative_probe_event() 466 static struct debuginfo *open_from_debuginfod(struct dso *dso, struct nsinfo *nsi, in open_from_debuginfod() argument 493 nsinfo__mountns_enter(nsi, &nsc); in open_from_debuginfod() 501 struct nsinfo *nsi __maybe_unused, in open_from_debuginfod() 509 static struct debuginfo *open_debuginfo(const char *module, struct nsinfo *nsi, in open_debuginfo() argument 528 ret = open_from_debuginfod(dso, nsi, silent); in open_debuginfo() [all …]
|
D | copyfile.h | 13 int copyfile_ns(const char *from, const char *to, struct nsinfo *nsi);
|
D | probe-file.c | 451 struct nsinfo *nsi) in probe_cache__open() argument 472 nsinfo__mountns_enter(nsi, &nsc); in probe_cache__open() 484 ret = build_id_cache__add_s(sbuildid, target, nsi, in probe_cache__open() 492 dir_name = build_id_cache__cachedir(sbuildid, target, nsi, is_kallsyms, in probe_cache__open() 601 struct probe_cache *probe_cache__new(const char *target, struct nsinfo *nsi) in probe_cache__new() argument 609 ret = probe_cache__open(pcache, target, nsi); in probe_cache__new()
|
D | symbol.c | 1749 struct nsinfo *nsi; in dso__find_perf_map() local 1753 nsi = *nsip; in dso__find_perf_map() 1755 if (nsinfo__need_setns(nsi)) { in dso__find_perf_map() 1756 snprintf(filebuf, bufsz, "/tmp/perf-%d.map", nsinfo__nstgid(nsi)); in dso__find_perf_map() 1757 nsinfo__mountns_enter(nsi, &nsc); in dso__find_perf_map() 1764 nnsi = nsinfo__copy(nsi); in dso__find_perf_map() 1766 nsinfo__put(nsi); in dso__find_perf_map()
|
D | synthetic-events.c | 371 struct nsinfo *nsi; in perf_record_mmap2__read_build_id() local 394 nsi = nsinfo__new(event->pid); in perf_record_mmap2__read_build_id() 395 nsinfo__mountns_enter(nsi, &nc); in perf_record_mmap2__read_build_id() 400 nsinfo__put(nsi); in perf_record_mmap2__read_build_id()
|
/linux-6.1.9/tools/perf/ |
D | builtin-buildid-cache.c | 175 static int build_id_cache__add_file(const char *filename, struct nsinfo *nsi) in build_id_cache__add_file() argument 182 nsinfo__mountns_enter(nsi, &nsc); in build_id_cache__add_file() 191 err = build_id_cache__add_s(sbuild_id, filename, nsi, in build_id_cache__add_file() 198 static int build_id_cache__remove_file(const char *filename, struct nsinfo *nsi) in build_id_cache__remove_file() argument 206 nsinfo__mountns_enter(nsi, &nsc); in build_id_cache__remove_file() 222 static int build_id_cache__purge_path(const char *pathname, struct nsinfo *nsi) in build_id_cache__purge_path() argument 228 err = build_id_cache__list_build_ids(pathname, nsi, &list); in build_id_cache__purge_path() 301 static int build_id_cache__update_file(const char *filename, struct nsinfo *nsi) in build_id_cache__update_file() argument 309 nsinfo__mountns_enter(nsi, &nsc); in build_id_cache__update_file() 323 err = build_id_cache__add_s(sbuild_id, filename, nsi, false, in build_id_cache__update_file() [all …]
|
D | builtin-probe.c | 49 struct nsinfo *nsi; member 72 pev->nsi = nsinfo__get(params.nsi); in parse_probe_event() 183 tmp = nsinfo__realpath(str, params.nsi); in opt_set_target() 220 params.nsi = nsinfo__get(nsip); in opt_set_target_ns() 321 nsinfo__put(params.nsi); in cleanup_params() 674 ret = show_available_funcs(params.target, params.nsi, in __cmd_probe() 682 params.nsi, params.uprobes); in __cmd_probe()
|
D | builtin-inject.c | 408 struct nsinfo *nsi = NULL; in findnew_dso() local 420 nsi = nsinfo__get(thread->nsinfo); in findnew_dso() 427 nnsi = nsinfo__copy(nsi); in findnew_dso() 429 nsinfo__put(nsi); in findnew_dso() 431 nsi = nnsi; in findnew_dso() 441 dso->nsinfo = nsi; in findnew_dso() 444 nsinfo__put(nsi); in findnew_dso()
|
/linux-6.1.9/tools/perf/arch/powerpc/util/ |
D | sym-handling.c | 127 map = get_target_map(pev->target, pev->nsi, pev->uprobes); in arch__post_process_probe_trace_events()
|
/linux-6.1.9/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
D | hw_atl_b0.c | 1259 u64 nsi; in hw_atl_b0_adj_params_get() local 1262 nsi = div64_u64(base_ns, NSEC_PER_SEC); in hw_atl_b0_adj_params_get() 1264 if (base_ns != nsi * NSEC_PER_SEC) { in hw_atl_b0_adj_params_get() 1266 base_ns - nsi * NSEC_PER_SEC); in hw_atl_b0_adj_params_get() 1270 *ns = (u32)nsi; in hw_atl_b0_adj_params_get()
|
/linux-6.1.9/fs/nilfs2/ |
D | sufile.c | 818 unsigned int sisz, size_t nsi) in nilfs_sufile_get_suinfo() argument 835 nsi); in nilfs_sufile_get_suinfo()
|