Home
last modified time | relevance | path

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

/Linux-v4.19/tools/perf/util/
Dnamespaces.c45 int nsinfo__init(struct nsinfo *nsi) in nsinfo__init() argument
60 if (asprintf(&newns, "/proc/%d/ns/mnt", nsi->pid) == -1) in nsinfo__init()
73 nsi->need_setns = true; in nsinfo__init()
74 nsi->mntns_path = newns; in nsinfo__init()
81 if (snprintf(spath, PATH_MAX, "/proc/%d/status", nsi->pid) >= PATH_MAX) in nsinfo__init()
91 nsi->tgid = (pid_t)strtol(strrchr(statln, '\t'), in nsinfo__init()
93 nsi->nstgid = nsi->tgid; in nsinfo__init()
97 nsi->nstgid = (pid_t)strtol(strrchr(statln, '\t'), in nsinfo__init()
114 struct nsinfo *nsi; in nsinfo__new() local
119 nsi = calloc(1, sizeof(*nsi)); in nsinfo__new()
[all …]
Dnamespaces.h43 int nsinfo__init(struct nsinfo *nsi);
45 struct nsinfo *nsinfo__copy(struct nsinfo *nsi);
46 void nsinfo__delete(struct nsinfo *nsi);
48 struct nsinfo *nsinfo__get(struct nsinfo *nsi);
49 void nsinfo__put(struct nsinfo *nsi);
51 void nsinfo__mountns_enter(struct nsinfo *nsi, struct nscookie *nc);
54 char *nsinfo__realpath(const char *path, struct nsinfo *nsi);
64 #define nsinfo__zput(nsi) __nsinfo__zput(&nsi) argument
Dbuild-id.c540 struct nsinfo *nsi, bool is_kallsyms, in build_id_cache__cachedir() argument
547 realname = nsinfo__realpath(name, nsi); in build_id_cache__cachedir()
563 int build_id_cache__list_build_ids(const char *pathname, struct nsinfo *nsi, in build_id_cache__list_build_ids() argument
569 dir_name = build_id_cache__cachedir(NULL, pathname, nsi, false, false); in build_id_cache__list_build_ids()
584 struct nsinfo *nsi) in build_id_cache__add_sdt_cache() argument
590 cache = probe_cache__new(sbuild_id, nsi); in build_id_cache__add_sdt_cache()
594 nsinfo__mountns_enter(nsi, &nsc); in build_id_cache__add_sdt_cache()
606 #define build_id_cache__add_sdt_cache(sbuild_id, realname, nsi) (0) argument
610 struct nsinfo *nsi) in build_id_cache__find_debug() argument
626 nsinfo__mountns_enter(nsi, &nsc); in build_id_cache__find_debug()
[all …]
Dutil.c193 static int slow_copyfile(const char *from, const char *to, struct nsinfo *nsi) in slow_copyfile() argument
201 nsinfo__mountns_enter(nsi, &nsc); in slow_copyfile()
253 struct nsinfo *nsi) in copyfile_mode_ns() argument
261 nsinfo__mountns_enter(nsi, &nsc); in copyfile_mode_ns()
287 err = slow_copyfile(from, tmp, nsi); in copyfile_mode_ns()
291 nsinfo__mountns_enter(nsi, &nsc); in copyfile_mode_ns()
310 int copyfile_ns(const char *from, const char *to, struct nsinfo *nsi) in copyfile_ns() argument
312 return copyfile_mode_ns(from, to, 0755, nsi); in copyfile_ns()
Dbuild-id.h39 struct nsinfo *nsi, bool is_kallsyms,
46 int build_id_cache__list_build_ids(const char *pathname, struct nsinfo *nsi,
50 const char *name, struct nsinfo *nsi,
Dprobe-event.h97 struct nsinfo *nsi; /* Target namespace */ member
170 struct nsinfo *nsi, bool user);
173 int show_available_funcs(const char *module, struct nsinfo *nsi,
188 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);
73 …ct probe_cache *probe_cache__new(const char *tgt __maybe_unused, struct nsinfo *nsi __maybe_unused) in probe_cache__new()
Dmap.c148 struct nsinfo *nsi = NULL; in map__new() local
167 nsi = nsinfo__get(thread->nsinfo); in map__new()
169 if ((anon || no_dso) && nsi && (prot & PROT_EXEC)) { in map__new()
171 "/tmp/perf-%d.map", nsi->pid); in map__new()
185 nnsi = nsinfo__copy(nsi); in map__new()
187 nsinfo__put(nsi); in map__new()
189 nsi = nnsi; in map__new()
212 dso->nsinfo = nsi; in map__new()
217 nsinfo__put(nsi); in map__new()
Dprobe-event.c174 struct map *get_target_map(const char *target, struct nsinfo *nsi, bool user) in get_target_map() argument
182 map->dso->nsinfo = nsinfo__get(nsi); in get_target_map()
362 const char *target, struct nsinfo *nsi, in find_alternative_probe_point() argument
374 map = get_target_map(target, nsi, uprobes); in find_alternative_probe_point()
419 pev->nsi, pev->uprobes); in get_alternative_probe_event()
454 static struct debuginfo *open_debuginfo(const char *module, struct nsinfo *nsi, in open_debuginfo() argument
479 nsinfo__mountns_enter(nsi, &nsc); in open_debuginfo()
533 struct nsinfo *nsi) in get_text_start_address() argument
541 nsinfo__mountns_enter(nsi, &nsc); in get_text_start_address()
682 struct nsinfo *nsi) in add_exec_to_probe_trace_events() argument
[all …]
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()
562 struct probe_cache *probe_cache__new(const char *target, struct nsinfo *nsi) in probe_cache__new() argument
570 ret = probe_cache__open(pcache, target, nsi); in probe_cache__new()
Dutil.h37 int copyfile_ns(const char *from, const char *to, struct nsinfo *nsi);
Dsymbol.c1459 struct nsinfo *nsi; in dso__find_perf_map() local
1463 nsi = *nsip; in dso__find_perf_map()
1465 if (nsi->need_setns) { in dso__find_perf_map()
1466 snprintf(filebuf, bufsz, "/tmp/perf-%d.map", nsi->nstgid); in dso__find_perf_map()
1467 nsinfo__mountns_enter(nsi, &nsc); in dso__find_perf_map()
1474 nnsi = nsinfo__copy(nsi); in dso__find_perf_map()
1476 nsinfo__put(nsi); in dso__find_perf_map()
/Linux-v4.19/tools/perf/
Dbuiltin-buildid-cache.c171 static int build_id_cache__add_file(const char *filename, struct nsinfo *nsi) in build_id_cache__add_file() argument
178 nsinfo__mountns_enter(nsi, &nsc); in build_id_cache__add_file()
187 err = build_id_cache__add_s(sbuild_id, filename, nsi, in build_id_cache__add_file()
194 static int build_id_cache__remove_file(const char *filename, struct nsinfo *nsi) in build_id_cache__remove_file() argument
202 nsinfo__mountns_enter(nsi, &nsc); in build_id_cache__remove_file()
218 static int build_id_cache__purge_path(const char *pathname, struct nsinfo *nsi) in build_id_cache__purge_path() argument
224 err = build_id_cache__list_build_ids(pathname, nsi, &list); in build_id_cache__purge_path()
298 static int build_id_cache__update_file(const char *filename, struct nsinfo *nsi) in build_id_cache__update_file() argument
306 nsinfo__mountns_enter(nsi, &nsc); in build_id_cache__update_file()
320 err = build_id_cache__add_s(sbuild_id, filename, nsi, false, in build_id_cache__update_file()
[all …]
Dbuiltin-probe.c61 struct nsinfo *nsi; member
84 pev->nsi = nsinfo__get(params.nsi); in parse_probe_event()
195 tmp = nsinfo__realpath(str, params.nsi); in opt_set_target()
232 params.nsi = nsinfo__get(nsip); in opt_set_target_ns()
333 nsinfo__put(params.nsi); in cleanup_params()
671 ret = show_available_funcs(params.target, params.nsi, in __cmd_probe()
679 params.nsi, params.uprobes); in __cmd_probe()
/Linux-v4.19/tools/perf/arch/powerpc/util/
Dsym-handling.c139 map = get_target_map(pev->target, pev->nsi, pev->uprobes); in arch__post_process_probe_trace_events()
/Linux-v4.19/fs/nilfs2/
Dsufile.c813 unsigned int sisz, size_t nsi) in nilfs_sufile_get_suinfo() argument
830 nsi); in nilfs_sufile_get_suinfo()