nsi               813 fs/nilfs2/sufile.c 				unsigned int sisz, size_t nsi)
nsi               830 fs/nilfs2/sufile.c 		      nsi);
nsi               137 tools/perf/arch/powerpc/util/sym-handling.c 	map = get_target_map(pev->target, pev->nsi, pev->uprobes);
nsi               174 tools/perf/builtin-buildid-cache.c static int build_id_cache__add_file(const char *filename, struct nsinfo *nsi)
nsi               181 tools/perf/builtin-buildid-cache.c 	nsinfo__mountns_enter(nsi, &nsc);
nsi               190 tools/perf/builtin-buildid-cache.c 	err = build_id_cache__add_s(sbuild_id, filename, nsi,
nsi               197 tools/perf/builtin-buildid-cache.c static int build_id_cache__remove_file(const char *filename, struct nsinfo *nsi)
nsi               205 tools/perf/builtin-buildid-cache.c 	nsinfo__mountns_enter(nsi, &nsc);
nsi               221 tools/perf/builtin-buildid-cache.c static int build_id_cache__purge_path(const char *pathname, struct nsinfo *nsi)
nsi               227 tools/perf/builtin-buildid-cache.c 	err = build_id_cache__list_build_ids(pathname, nsi, &list);
nsi               301 tools/perf/builtin-buildid-cache.c static int build_id_cache__update_file(const char *filename, struct nsinfo *nsi)
nsi               309 tools/perf/builtin-buildid-cache.c 	nsinfo__mountns_enter(nsi, &nsc);
nsi               323 tools/perf/builtin-buildid-cache.c 		err = build_id_cache__add_s(sbuild_id, filename, nsi, false,
nsi               374 tools/perf/builtin-buildid-cache.c 	struct nsinfo *nsi = NULL;
nsi               419 tools/perf/builtin-buildid-cache.c 		nsi = nsinfo__new(ns_id);
nsi               444 tools/perf/builtin-buildid-cache.c 				if (build_id_cache__add_file(pos->s, nsi)) {
nsi               462 tools/perf/builtin-buildid-cache.c 				if (build_id_cache__remove_file(pos->s, nsi)) {
nsi               480 tools/perf/builtin-buildid-cache.c 				if (build_id_cache__purge_path(pos->s, nsi)) {
nsi               508 tools/perf/builtin-buildid-cache.c 				if (build_id_cache__update_file(pos->s, nsi)) {
nsi               527 tools/perf/builtin-buildid-cache.c 	nsinfo__zput(nsi);
nsi                49 tools/perf/builtin-probe.c 	struct nsinfo *nsi;
nsi                72 tools/perf/builtin-probe.c 	pev->nsi = nsinfo__get(params.nsi);
nsi               183 tools/perf/builtin-probe.c 			tmp = nsinfo__realpath(str, params.nsi);
nsi               220 tools/perf/builtin-probe.c 			params.nsi = nsinfo__get(nsip);
nsi               321 tools/perf/builtin-probe.c 	nsinfo__put(params.nsi);
nsi               659 tools/perf/builtin-probe.c 		ret = show_available_funcs(params.target, params.nsi,
nsi               667 tools/perf/builtin-probe.c 				      params.nsi, params.uprobes);
nsi               548 tools/perf/util/build-id.c 			       struct nsinfo *nsi, bool is_kallsyms,
nsi               555 tools/perf/util/build-id.c 		realname = nsinfo__realpath(name, nsi);
nsi               571 tools/perf/util/build-id.c int build_id_cache__list_build_ids(const char *pathname, struct nsinfo *nsi,
nsi               577 tools/perf/util/build-id.c 	dir_name = build_id_cache__cachedir(NULL, pathname, nsi, false, false);
nsi               592 tools/perf/util/build-id.c 					  struct nsinfo *nsi)
nsi               598 tools/perf/util/build-id.c 	cache = probe_cache__new(sbuild_id, nsi);
nsi               602 tools/perf/util/build-id.c 	nsinfo__mountns_enter(nsi, &nsc);
nsi               614 tools/perf/util/build-id.c #define build_id_cache__add_sdt_cache(sbuild_id, realname, nsi) (0)
nsi               618 tools/perf/util/build-id.c 					struct nsinfo *nsi)
nsi               634 tools/perf/util/build-id.c 	nsinfo__mountns_enter(nsi, &nsc);
nsi               645 tools/perf/util/build-id.c 			  struct nsinfo *nsi, bool is_kallsyms, bool is_vdso)
nsi               655 tools/perf/util/build-id.c 			realname = nsinfo__realpath(name, nsi);
nsi               662 tools/perf/util/build-id.c 	dir_name = build_id_cache__cachedir(sbuild_id, name, nsi, is_kallsyms,
nsi               687 tools/perf/util/build-id.c 		} else if (nsi && nsi->need_setns) {
nsi               688 tools/perf/util/build-id.c 			if (copyfile_ns(name, filename, nsi))
nsi               702 tools/perf/util/build-id.c 		debugfile = build_id_cache__find_debug(sbuild_id, nsi);
nsi               711 tools/perf/util/build-id.c 				if (nsi && nsi->need_setns) {
nsi               713 tools/perf/util/build-id.c 							nsi))
nsi               740 tools/perf/util/build-id.c 	    build_id_cache__add_sdt_cache(sbuild_id, realname, nsi) < 0)
nsi               754 tools/perf/util/build-id.c 				 const char *name, struct nsinfo *nsi,
nsi               761 tools/perf/util/build-id.c 	return build_id_cache__add_s(sbuild_id, name, nsi, is_kallsyms,
nsi                40 tools/perf/util/build-id.h 			       struct nsinfo *nsi, bool is_kallsyms,
nsi                47 tools/perf/util/build-id.h int build_id_cache__list_build_ids(const char *pathname, struct nsinfo *nsi,
nsi                51 tools/perf/util/build-id.h 			  const char *name, struct nsinfo *nsi,
nsi                14 tools/perf/util/copyfile.c static int slow_copyfile(const char *from, const char *to, struct nsinfo *nsi)
nsi                22 tools/perf/util/copyfile.c 	nsinfo__mountns_enter(nsi, &nsc);
nsi                74 tools/perf/util/copyfile.c 			    struct nsinfo *nsi)
nsi                82 tools/perf/util/copyfile.c 	nsinfo__mountns_enter(nsi, &nsc);
nsi               105 tools/perf/util/copyfile.c 		err = slow_copyfile(from, tmp, nsi);
nsi               114 tools/perf/util/copyfile.c 	nsinfo__mountns_enter(nsi, &nsc);
nsi               133 tools/perf/util/copyfile.c int copyfile_ns(const char *from, const char *to, struct nsinfo *nsi)
nsi               135 tools/perf/util/copyfile.c 	return copyfile_mode_ns(from, to, 0755, nsi);
nsi                13 tools/perf/util/copyfile.h int copyfile_ns(const char *from, const char *to, struct nsinfo *nsi);
nsi               154 tools/perf/util/map.c 	struct nsinfo *nsi = NULL;
nsi               173 tools/perf/util/map.c 		nsi = nsinfo__get(thread->nsinfo);
nsi               175 tools/perf/util/map.c 		if ((anon || no_dso) && nsi && (prot & PROT_EXEC)) {
nsi               177 tools/perf/util/map.c 				 "/tmp/perf-%d.map", nsi->pid);
nsi               191 tools/perf/util/map.c 			nnsi = nsinfo__copy(nsi);
nsi               193 tools/perf/util/map.c 				nsinfo__put(nsi);
nsi               195 tools/perf/util/map.c 				nsi = nnsi;
nsi               218 tools/perf/util/map.c 		dso->nsinfo = nsi;
nsi               223 tools/perf/util/map.c 	nsinfo__put(nsi);
nsi                63 tools/perf/util/namespaces.c int nsinfo__init(struct nsinfo *nsi)
nsi                78 tools/perf/util/namespaces.c 	if (asprintf(&newns, "/proc/%d/ns/mnt", nsi->pid) == -1)
nsi                91 tools/perf/util/namespaces.c 		nsi->need_setns = true;
nsi                92 tools/perf/util/namespaces.c 		nsi->mntns_path = newns;
nsi                99 tools/perf/util/namespaces.c 	if (snprintf(spath, PATH_MAX, "/proc/%d/status", nsi->pid) >= PATH_MAX)
nsi               109 tools/perf/util/namespaces.c 			nsi->tgid = (pid_t)strtol(strrchr(statln, '\t'),
nsi               111 tools/perf/util/namespaces.c 			nsi->nstgid = nsi->tgid;
nsi               115 tools/perf/util/namespaces.c 			nsi->nstgid = (pid_t)strtol(strrchr(statln, '\t'),
nsi               132 tools/perf/util/namespaces.c 	struct nsinfo *nsi;
nsi               137 tools/perf/util/namespaces.c 	nsi = calloc(1, sizeof(*nsi));
nsi               138 tools/perf/util/namespaces.c 	if (nsi != NULL) {
nsi               139 tools/perf/util/namespaces.c 		nsi->pid = pid;
nsi               140 tools/perf/util/namespaces.c 		nsi->tgid = pid;
nsi               141 tools/perf/util/namespaces.c 		nsi->nstgid = pid;
nsi               142 tools/perf/util/namespaces.c 		nsi->need_setns = false;
nsi               147 tools/perf/util/namespaces.c 		if (nsinfo__init(nsi) == -1)
nsi               148 tools/perf/util/namespaces.c 			nsi->need_setns = false;
nsi               150 tools/perf/util/namespaces.c 		refcount_set(&nsi->refcnt, 1);
nsi               153 tools/perf/util/namespaces.c 	return nsi;
nsi               156 tools/perf/util/namespaces.c struct nsinfo *nsinfo__copy(struct nsinfo *nsi)
nsi               160 tools/perf/util/namespaces.c 	if (nsi == NULL)
nsi               165 tools/perf/util/namespaces.c 		nnsi->pid = nsi->pid;
nsi               166 tools/perf/util/namespaces.c 		nnsi->tgid = nsi->tgid;
nsi               167 tools/perf/util/namespaces.c 		nnsi->nstgid = nsi->nstgid;
nsi               168 tools/perf/util/namespaces.c 		nnsi->need_setns = nsi->need_setns;
nsi               169 tools/perf/util/namespaces.c 		if (nsi->mntns_path) {
nsi               170 tools/perf/util/namespaces.c 			nnsi->mntns_path = strdup(nsi->mntns_path);
nsi               182 tools/perf/util/namespaces.c void nsinfo__delete(struct nsinfo *nsi)
nsi               184 tools/perf/util/namespaces.c 	zfree(&nsi->mntns_path);
nsi               185 tools/perf/util/namespaces.c 	free(nsi);
nsi               188 tools/perf/util/namespaces.c struct nsinfo *nsinfo__get(struct nsinfo *nsi)
nsi               190 tools/perf/util/namespaces.c 	if (nsi)
nsi               191 tools/perf/util/namespaces.c 		refcount_inc(&nsi->refcnt);
nsi               192 tools/perf/util/namespaces.c 	return nsi;
nsi               195 tools/perf/util/namespaces.c void nsinfo__put(struct nsinfo *nsi)
nsi               197 tools/perf/util/namespaces.c 	if (nsi && refcount_dec_and_test(&nsi->refcnt))
nsi               198 tools/perf/util/namespaces.c 		nsinfo__delete(nsi);
nsi               201 tools/perf/util/namespaces.c void nsinfo__mountns_enter(struct nsinfo *nsi,
nsi               215 tools/perf/util/namespaces.c 	if (!nsi || !nsi->need_setns)
nsi               229 tools/perf/util/namespaces.c 	newns = open(nsi->mntns_path, O_RDONLY);
nsi               272 tools/perf/util/namespaces.c char *nsinfo__realpath(const char *path, struct nsinfo *nsi)
nsi               277 tools/perf/util/namespaces.c 	nsinfo__mountns_enter(nsi, &nsc);
nsi                46 tools/perf/util/namespaces.h int nsinfo__init(struct nsinfo *nsi);
nsi                48 tools/perf/util/namespaces.h struct nsinfo *nsinfo__copy(struct nsinfo *nsi);
nsi                49 tools/perf/util/namespaces.h void nsinfo__delete(struct nsinfo *nsi);
nsi                51 tools/perf/util/namespaces.h struct nsinfo *nsinfo__get(struct nsinfo *nsi);
nsi                52 tools/perf/util/namespaces.h void nsinfo__put(struct nsinfo *nsi);
nsi                54 tools/perf/util/namespaces.h void nsinfo__mountns_enter(struct nsinfo *nsi, struct nscookie *nc);
nsi                57 tools/perf/util/namespaces.h char *nsinfo__realpath(const char *path, struct nsinfo *nsi);
nsi                67 tools/perf/util/namespaces.h #define nsinfo__zput(nsi) __nsinfo__zput(&nsi)
nsi               167 tools/perf/util/probe-event.c struct map *get_target_map(const char *target, struct nsinfo *nsi, bool user)
nsi               175 tools/perf/util/probe-event.c 			map->dso->nsinfo = nsinfo__get(nsi);
nsi               355 tools/perf/util/probe-event.c 					const char *target, struct nsinfo *nsi,
nsi               367 tools/perf/util/probe-event.c 	map = get_target_map(target, nsi, uprobes);
nsi               412 tools/perf/util/probe-event.c 					   pev->nsi, pev->uprobes);
nsi               447 tools/perf/util/probe-event.c static struct debuginfo *open_debuginfo(const char *module, struct nsinfo *nsi,
nsi               475 tools/perf/util/probe-event.c 	nsinfo__mountns_enter(nsi, &nsc);
nsi               529 tools/perf/util/probe-event.c 				  struct nsinfo *nsi)
nsi               537 tools/perf/util/probe-event.c 	nsinfo__mountns_enter(nsi, &nsc);
nsi               678 tools/perf/util/probe-event.c 					  struct nsinfo *nsi)
nsi               686 tools/perf/util/probe-event.c 	ret = get_text_start_address(exec, &stext, nsi);
nsi               805 tools/perf/util/probe-event.c 						     pev->nsi);
nsi               828 tools/perf/util/probe-event.c 	dinfo = open_debuginfo(pev->target, pev->nsi, !need_dwarf);
nsi              1025 tools/perf/util/probe-event.c 		    struct nsinfo *nsi, bool user)
nsi              1033 tools/perf/util/probe-event.c 	nsinfo__mountns_enter(nsi, &nsc);
nsi              1118 tools/perf/util/probe-event.c 	dinfo = open_debuginfo(pevs->target, pevs->nsi, false);
nsi              1162 tools/perf/util/probe-event.c 		    struct nsinfo *nsi __maybe_unused,
nsi              2791 tools/perf/util/probe-event.c 		nsinfo__mountns_enter(pev->nsi, &nsc);
nsi              2808 tools/perf/util/probe-event.c 		cache = probe_cache__new(pev->target, pev->nsi);
nsi              2893 tools/perf/util/probe-event.c 	map = get_target_map(pev->target, pev->nsi, pev->uprobes);
nsi              3182 tools/perf/util/probe-event.c 	cache = probe_cache__new(target, pev->nsi);
nsi              3272 tools/perf/util/probe-event.c 	cache = probe_cache__new(pev->target, pev->nsi);
nsi              3442 tools/perf/util/probe-event.c 		nsinfo__zput(pev->nsi);
nsi              3500 tools/perf/util/probe-event.c int show_available_funcs(const char *target, struct nsinfo *nsi,
nsi              3512 tools/perf/util/probe-event.c 	map = get_target_map(target, nsi, user);
nsi               101 tools/perf/util/probe-event.h 	struct nsinfo		*nsi;	/* Target namespace */
nsi               174 tools/perf/util/probe-event.h 		    struct nsinfo *nsi, bool user);
nsi               177 tools/perf/util/probe-event.h int show_available_funcs(const char *module, struct nsinfo *nsi,
nsi               192 tools/perf/util/probe-event.h struct map *get_target_map(const char *target, struct nsinfo *nsi, bool user);
nsi               411 tools/perf/util/probe-file.c 			     struct nsinfo *nsi)
nsi               432 tools/perf/util/probe-file.c 		nsinfo__mountns_enter(nsi, &nsc);
nsi               444 tools/perf/util/probe-file.c 		ret = build_id_cache__add_s(sbuildid, target, nsi,
nsi               452 tools/perf/util/probe-file.c 	dir_name = build_id_cache__cachedir(sbuildid, target, nsi, is_kallsyms,
nsi               557 tools/perf/util/probe-file.c struct probe_cache *probe_cache__new(const char *target, struct nsinfo *nsi)
nsi               565 tools/perf/util/probe-file.c 	ret = probe_cache__open(pcache, target, nsi);
nsi                55 tools/perf/util/probe-file.h struct probe_cache *probe_cache__new(const char *target, struct nsinfo *nsi);
nsi                75 tools/perf/util/probe-file.h static inline struct probe_cache *probe_cache__new(const char *tgt __maybe_unused, struct nsinfo *nsi __maybe_unused)
nsi              1578 tools/perf/util/symbol.c 	struct nsinfo *nsi;
nsi              1582 tools/perf/util/symbol.c 	nsi = *nsip;
nsi              1584 tools/perf/util/symbol.c 	if (nsi->need_setns) {
nsi              1585 tools/perf/util/symbol.c 		snprintf(filebuf, bufsz, "/tmp/perf-%d.map", nsi->nstgid);
nsi              1586 tools/perf/util/symbol.c 		nsinfo__mountns_enter(nsi, &nsc);
nsi              1593 tools/perf/util/symbol.c 	nnsi = nsinfo__copy(nsi);
nsi              1595 tools/perf/util/symbol.c 		nsinfo__put(nsi);