Home
last modified time | relevance | path

Searched refs:nsi (Results 1 – 18 of 18) sorted by relevance

/kernel/linux/linux-5.10/tools/perf/util/
Dnamespaces.c63 int nsinfo__init(struct nsinfo *nsi) in nsinfo__init() argument
78 if (asprintf(&newns, "/proc/%d/ns/mnt", nsi->pid) == -1) in nsinfo__init()
91 nsi->need_setns = true; in nsinfo__init()
92 nsi->mntns_path = newns; in nsinfo__init()
99 if (snprintf(spath, PATH_MAX, "/proc/%d/status", nsi->pid) >= PATH_MAX) in nsinfo__init()
109 nsi->tgid = (pid_t)strtol(strrchr(statln, '\t'), in nsinfo__init()
111 nsi->nstgid = nsi->tgid; in nsinfo__init()
115 nsi->nstgid = (pid_t)strtol(strrchr(statln, '\t'), in nsinfo__init()
132 struct nsinfo *nsi; in nsinfo__new() local
137 nsi = calloc(1, sizeof(*nsi)); in nsinfo__new()
[all …]
Dnamespaces.h46 int nsinfo__init(struct nsinfo *nsi);
48 struct nsinfo *nsinfo__copy(struct nsinfo *nsi);
49 void nsinfo__delete(struct nsinfo *nsi);
51 struct nsinfo *nsinfo__get(struct nsinfo *nsi);
52 void nsinfo__put(struct nsinfo *nsi);
54 void nsinfo__mountns_enter(struct nsinfo *nsi, struct nscookie *nc);
57 char *nsinfo__realpath(const char *path, struct nsinfo *nsi);
67 #define nsinfo__zput(nsi) __nsinfo__zput(&nsi) argument
Dcopyfile.c14 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()
Dbuild-id.c555 struct nsinfo *nsi, bool is_kallsyms, in build_id_cache__cachedir() argument
562 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
641 nsinfo__mountns_enter(nsi, &nsc); in build_id_cache__find_debug()
[all …]
Dbuild-id.h50 struct nsinfo *nsi, bool is_kallsyms,
57 int build_id_cache__list_build_ids(const char *pathname, struct nsinfo *nsi,
61 const char *name, struct nsinfo *nsi,
Dprobe-event.h104 struct nsinfo *nsi; /* Target namespace */ member
177 struct nsinfo *nsi, bool user);
180 int show_available_funcs(const char *module, struct nsinfo *nsi,
195 struct map *get_target_map(const char *target, struct nsinfo *nsi, bool user);
Dprobe-file.h55 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()
Dmap.c136 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()
200 nsinfo__put(nsi); in map__new()
Dprobe-event.c176 struct map *get_target_map(const char *target, struct nsinfo *nsi, bool user) in get_target_map() argument
185 map->dso->nsinfo = nsinfo__get(nsi); in get_target_map()
369 const char *target, struct nsinfo *nsi, in find_alternative_probe_point() argument
381 map = get_target_map(target, nsi, uprobes); in find_alternative_probe_point()
430 pev->nsi, pev->uprobes); in get_alternative_probe_event()
465 static struct debuginfo *open_from_debuginfod(struct dso *dso, struct nsinfo *nsi, in open_from_debuginfod() argument
492 nsinfo__mountns_enter(nsi, &nsc); in open_from_debuginfod()
500 struct nsinfo *nsi __maybe_unused, in open_from_debuginfod()
508 static struct debuginfo *open_debuginfo(const char *module, struct nsinfo *nsi, in open_debuginfo() argument
527 ret = open_from_debuginfod(dso, nsi, silent); in open_debuginfo()
[all …]
Dcopyfile.h13 int copyfile_ns(const char *from, const char *to, struct nsinfo *nsi);
Dprobe-file.c416 struct nsinfo *nsi) in probe_cache__open() argument
437 nsinfo__mountns_enter(nsi, &nsc); in probe_cache__open()
449 ret = build_id_cache__add_s(sbuildid, target, nsi, in probe_cache__open()
457 dir_name = build_id_cache__cachedir(sbuildid, target, nsi, is_kallsyms, in probe_cache__open()
566 struct probe_cache *probe_cache__new(const char *target, struct nsinfo *nsi) in probe_cache__new() argument
574 ret = probe_cache__open(pcache, target, nsi); in probe_cache__new()
Dsymbol.c1741 struct nsinfo *nsi; in dso__find_perf_map() local
1745 nsi = *nsip; in dso__find_perf_map()
1747 if (nsi->need_setns) { in dso__find_perf_map()
1748 snprintf(filebuf, bufsz, "/tmp/perf-%d.map", nsi->nstgid); in dso__find_perf_map()
1749 nsinfo__mountns_enter(nsi, &nsc); in dso__find_perf_map()
1756 nnsi = nsinfo__copy(nsi); in dso__find_perf_map()
1758 nsinfo__put(nsi); in dso__find_perf_map()
/kernel/linux/linux-5.10/tools/perf/
Dbuiltin-buildid-cache.c174 static int build_id_cache__add_file(const char *filename, struct nsinfo *nsi) in build_id_cache__add_file() argument
181 nsinfo__mountns_enter(nsi, &nsc); in build_id_cache__add_file()
190 err = build_id_cache__add_s(sbuild_id, filename, nsi, in build_id_cache__add_file()
197 static int build_id_cache__remove_file(const char *filename, struct nsinfo *nsi) in build_id_cache__remove_file() argument
205 nsinfo__mountns_enter(nsi, &nsc); in build_id_cache__remove_file()
221 static int build_id_cache__purge_path(const char *pathname, struct nsinfo *nsi) in build_id_cache__purge_path() argument
227 err = build_id_cache__list_build_ids(pathname, nsi, &list); in build_id_cache__purge_path()
300 static int build_id_cache__update_file(const char *filename, struct nsinfo *nsi) in build_id_cache__update_file() argument
308 nsinfo__mountns_enter(nsi, &nsc); in build_id_cache__update_file()
322 err = build_id_cache__add_s(sbuild_id, filename, nsi, false, in build_id_cache__update_file()
[all …]
Dbuiltin-probe.c49 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()
664 ret = show_available_funcs(params.target, params.nsi, in __cmd_probe()
672 params.nsi, params.uprobes); in __cmd_probe()
Dbuiltin-inject.c331 struct nsinfo *nsi = NULL; in findnew_dso() local
343 nsi = nsinfo__get(thread->nsinfo); in findnew_dso()
350 nnsi = nsinfo__copy(nsi); in findnew_dso()
352 nsinfo__put(nsi); in findnew_dso()
354 nsi = nnsi; in findnew_dso()
363 dso->nsinfo = nsi; in findnew_dso()
365 nsinfo__put(nsi); in findnew_dso()
/kernel/linux/linux-5.10/tools/perf/arch/powerpc/util/
Dsym-handling.c127 map = get_target_map(pev->target, pev->nsi, pev->uprobes); in arch__post_process_probe_trace_events()
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/hw_atl/
Dhw_atl_b0.c1259 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()
/kernel/linux/linux-5.10/fs/nilfs2/
Dsufile.c818 unsigned int sisz, size_t nsi) in nilfs_sufile_get_suinfo() argument
835 nsi); in nilfs_sufile_get_suinfo()