Home
last modified time | relevance | path

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

/Linux-v5.4/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.c548 struct nsinfo *nsi, bool is_kallsyms, in build_id_cache__cachedir() argument
555 realname = nsinfo__realpath(name, nsi); in build_id_cache__cachedir()
571 int build_id_cache__list_build_ids(const char *pathname, struct nsinfo *nsi, in build_id_cache__list_build_ids() argument
577 dir_name = build_id_cache__cachedir(NULL, pathname, nsi, false, false); in build_id_cache__list_build_ids()
592 struct nsinfo *nsi) in build_id_cache__add_sdt_cache() argument
598 cache = probe_cache__new(sbuild_id, nsi); in build_id_cache__add_sdt_cache()
602 nsinfo__mountns_enter(nsi, &nsc); in build_id_cache__add_sdt_cache()
614 #define build_id_cache__add_sdt_cache(sbuild_id, realname, nsi) (0) argument
618 struct nsinfo *nsi) in build_id_cache__find_debug() argument
634 nsinfo__mountns_enter(nsi, &nsc); in build_id_cache__find_debug()
[all …]
Dbuild-id.h40 struct nsinfo *nsi, bool is_kallsyms,
47 int build_id_cache__list_build_ids(const char *pathname, struct nsinfo *nsi,
51 const char *name, struct nsinfo *nsi,
Dprobe-event.h101 struct nsinfo *nsi; /* Target namespace */ member
174 struct nsinfo *nsi, bool user);
177 int show_available_funcs(const char *module, struct nsinfo *nsi,
192 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);
75 …ct probe_cache *probe_cache__new(const char *tgt __maybe_unused, struct nsinfo *nsi __maybe_unused) in probe_cache__new()
Dmap.c154 struct nsinfo *nsi = NULL; in map__new() local
173 nsi = nsinfo__get(thread->nsinfo); in map__new()
175 if ((anon || no_dso) && nsi && (prot & PROT_EXEC)) { in map__new()
177 "/tmp/perf-%d.map", nsi->pid); in map__new()
191 nnsi = nsinfo__copy(nsi); in map__new()
193 nsinfo__put(nsi); in map__new()
195 nsi = nnsi; in map__new()
218 dso->nsinfo = nsi; in map__new()
223 nsinfo__put(nsi); in map__new()
Dprobe-event.c167 struct map *get_target_map(const char *target, struct nsinfo *nsi, bool user) in get_target_map() argument
175 map->dso->nsinfo = nsinfo__get(nsi); in get_target_map()
355 const char *target, struct nsinfo *nsi, in find_alternative_probe_point() argument
367 map = get_target_map(target, nsi, uprobes); in find_alternative_probe_point()
412 pev->nsi, pev->uprobes); in get_alternative_probe_event()
447 static struct debuginfo *open_debuginfo(const char *module, struct nsinfo *nsi, in open_debuginfo() argument
475 nsinfo__mountns_enter(nsi, &nsc); in open_debuginfo()
529 struct nsinfo *nsi) in get_text_start_address() argument
537 nsinfo__mountns_enter(nsi, &nsc); in get_text_start_address()
678 struct nsinfo *nsi) in add_exec_to_probe_trace_events() argument
[all …]
Dcopyfile.h13 int copyfile_ns(const char *from, const char *to, struct nsinfo *nsi);
Dprobe-file.c408 struct nsinfo *nsi) in probe_cache__open() argument
429 nsinfo__mountns_enter(nsi, &nsc); in probe_cache__open()
441 ret = build_id_cache__add_s(sbuildid, target, nsi, in probe_cache__open()
449 dir_name = build_id_cache__cachedir(sbuildid, target, nsi, is_kallsyms, in probe_cache__open()
554 struct probe_cache *probe_cache__new(const char *target, struct nsinfo *nsi) in probe_cache__new() argument
562 ret = probe_cache__open(pcache, target, nsi); in probe_cache__new()
Dsymbol.c1578 struct nsinfo *nsi; in dso__find_perf_map() local
1582 nsi = *nsip; in dso__find_perf_map()
1584 if (nsi->need_setns) { in dso__find_perf_map()
1585 snprintf(filebuf, bufsz, "/tmp/perf-%d.map", nsi->nstgid); in dso__find_perf_map()
1586 nsinfo__mountns_enter(nsi, &nsc); in dso__find_perf_map()
1593 nnsi = nsinfo__copy(nsi); in dso__find_perf_map()
1595 nsinfo__put(nsi); in dso__find_perf_map()
/Linux-v5.4/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()
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 …]
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()
659 ret = show_available_funcs(params.target, params.nsi, in __cmd_probe()
667 params.nsi, params.uprobes); in __cmd_probe()
/Linux-v5.4/tools/perf/arch/powerpc/util/
Dsym-handling.c137 map = get_target_map(pev->target, pev->nsi, pev->uprobes); in arch__post_process_probe_trace_events()
/Linux-v5.4/fs/nilfs2/
Dsufile.c813 unsigned int sisz, size_t nsi) in nilfs_sufile_get_suinfo() argument
830 nsi); in nilfs_sufile_get_suinfo()