/Linux-v5.15/tools/perf/util/ |
D | namespaces.c | 63 int nsinfo__init(struct nsinfo *nsi) in nsinfo__init() argument 79 if (asprintf(&newns, "/proc/%d/ns/mnt", nsi->pid) == -1) in nsinfo__init() 92 nsi->need_setns = true; in nsinfo__init() 93 nsi->mntns_path = newns; in nsinfo__init() 100 if (snprintf(spath, PATH_MAX, "/proc/%d/status", nsi->pid) >= PATH_MAX) in nsinfo__init() 110 nsi->tgid = (pid_t)strtol(strrchr(statln, '\t'), in nsinfo__init() 112 nsi->nstgid = nsi->tgid; in nsinfo__init() 117 nsi->nstgid = (pid_t)strtol(nspid, NULL, 10); in nsinfo__init() 121 nsi->in_pidns = (statln + sizeof("NStgid:") - 1) != nspid; in nsinfo__init() 137 struct nsinfo *nsi; in nsinfo__new() local [all …]
|
D | namespaces.h | 48 int nsinfo__init(struct nsinfo *nsi); 50 struct nsinfo *nsinfo__copy(struct nsinfo *nsi); 51 void nsinfo__delete(struct nsinfo *nsi); 53 struct nsinfo *nsinfo__get(struct nsinfo *nsi); 54 void nsinfo__put(struct nsinfo *nsi); 56 void nsinfo__mountns_enter(struct nsinfo *nsi, struct nscookie *nc); 59 char *nsinfo__realpath(const char *path, struct nsinfo *nsi); 60 int nsinfo__stat(const char *filename, struct stat *st, struct nsinfo *nsi); 70 #define nsinfo__zput(nsi) __nsinfo__zput(&nsi) argument
|
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 | 564 struct nsinfo *nsi, bool is_kallsyms, in build_id_cache__cachedir() argument 571 realname = nsinfo__realpath(name, nsi); in build_id_cache__cachedir() 587 int build_id_cache__list_build_ids(const char *pathname, struct nsinfo *nsi, in build_id_cache__list_build_ids() argument 593 dir_name = build_id_cache__cachedir(NULL, pathname, nsi, false, false); in build_id_cache__list_build_ids() 608 struct nsinfo *nsi) in build_id_cache__add_sdt_cache() argument 614 cache = probe_cache__new(sbuild_id, nsi); in build_id_cache__add_sdt_cache() 618 nsinfo__mountns_enter(nsi, &nsc); in build_id_cache__add_sdt_cache() 630 #define build_id_cache__add_sdt_cache(sbuild_id, realname, nsi) (0) argument 634 struct nsinfo *nsi) in build_id_cache__find_debug() argument 650 nsinfo__mountns_enter(nsi, &nsc); in build_id_cache__find_debug() [all …]
|
D | jitdump.c | 39 struct nsinfo *nsi; member 95 nsinfo__mountns_enter(jd->nsi, &nsc); in jit_emit_elf() 110 nsinfo__mountns_enter(jd->nsi, &nsc); in jit_emit_elf() 153 nsinfo__mountns_enter(jd->nsi, &nsc); in jit_open() 385 if (jd->nsi && jd->nsi->in_pidns) in jr_entry_pid() 386 return jd->nsi->tgid; in jr_entry_pid() 392 if (jd->nsi && jd->nsi->in_pidns) in jr_entry_tid() 393 return jd->nsi->pid; in jr_entry_tid() 492 if (nsinfo__stat(filename, &st, jd->nsi)) in jit_repipe_code_load() 583 if (nsinfo__stat(filename, &st, jd->nsi)) in jit_repipe_code_move() [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); 71 const char *name, struct nsinfo *nsi,
|
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 | 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 | map.c | 136 struct nsinfo *nsi = NULL; in map__new() local 150 nsi = nsinfo__get(thread->nsinfo); in map__new() 152 if ((anon || no_dso) && nsi && (prot & PROT_EXEC)) { in map__new() 154 "/tmp/perf-%d.map", nsi->pid); in map__new() 168 nnsi = nsinfo__copy(nsi); in map__new() 170 nsinfo__put(nsi); in map__new() 172 nsi = nnsi; in map__new() 195 dso->nsinfo = nsi; in map__new() 204 nsinfo__put(nsi); in map__new()
|
D | probe-event.c | 175 struct map *get_target_map(const char *target, struct nsinfo *nsi, bool user) in get_target_map() argument 184 map->dso->nsinfo = nsinfo__get(nsi); in get_target_map() 368 const char *target, struct nsinfo *nsi, in find_alternative_probe_point() argument 380 map = get_target_map(target, nsi, uprobes); in find_alternative_probe_point() 428 pev->nsi, pev->uprobes); in get_alternative_probe_event() 463 static struct debuginfo *open_from_debuginfod(struct dso *dso, struct nsinfo *nsi, in open_from_debuginfod() argument 490 nsinfo__mountns_enter(nsi, &nsc); in open_from_debuginfod() 498 struct nsinfo *nsi __maybe_unused, in open_from_debuginfod() 506 static struct debuginfo *open_debuginfo(const char *module, struct nsinfo *nsi, in open_debuginfo() argument 525 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 | 1721 struct nsinfo *nsi; in dso__find_perf_map() local 1725 nsi = *nsip; in dso__find_perf_map() 1727 if (nsi->need_setns) { in dso__find_perf_map() 1728 snprintf(filebuf, bufsz, "/tmp/perf-%d.map", nsi->nstgid); in dso__find_perf_map() 1729 nsinfo__mountns_enter(nsi, &nsc); in dso__find_perf_map() 1736 nnsi = nsinfo__copy(nsi); in dso__find_perf_map() 1738 nsinfo__put(nsi); in dso__find_perf_map()
|
/Linux-v5.15/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() 669 ret = show_available_funcs(params.target, params.nsi, in __cmd_probe() 677 params.nsi, params.uprobes); in __cmd_probe()
|
D | builtin-inject.c | 335 struct nsinfo *nsi = NULL; in findnew_dso() local 347 nsi = nsinfo__get(thread->nsinfo); in findnew_dso() 354 nnsi = nsinfo__copy(nsi); in findnew_dso() 356 nsinfo__put(nsi); in findnew_dso() 358 nsi = nnsi; in findnew_dso() 367 dso->nsinfo = nsi; in findnew_dso() 369 nsinfo__put(nsi); in findnew_dso()
|
/Linux-v5.15/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-v5.15/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
D | hw_atl_b0.c | 1252 u64 nsi; in hw_atl_b0_adj_params_get() local 1255 nsi = div64_u64(base_ns, NSEC_PER_SEC); in hw_atl_b0_adj_params_get() 1257 if (base_ns != nsi * NSEC_PER_SEC) { in hw_atl_b0_adj_params_get() 1259 base_ns - nsi * NSEC_PER_SEC); in hw_atl_b0_adj_params_get() 1263 *ns = (u32)nsi; in hw_atl_b0_adj_params_get()
|
/Linux-v5.15/fs/nilfs2/ |
D | sufile.c | 810 unsigned int sisz, size_t nsi) in nilfs_sufile_get_suinfo() argument 827 nsi); in nilfs_sufile_get_suinfo()
|