Searched refs:nsi (Results 1 - 20 of 20) sorted by relevance

/linux-master/tools/perf/util/
H A Dnamespaces.c98 int nsinfo__init(struct nsinfo *nsi) argument
110 if (asprintf(&newns, "/proc/%d/ns/mnt", nsinfo__pid(nsi)) == -1)
123 RC_CHK_ACCESS(nsi)->need_setns = true;
124 RC_CHK_ACCESS(nsi)->mntns_path = newns;
131 if (snprintf(spath, PATH_MAX, "/proc/%d/status", nsinfo__pid(nsi)) >= PATH_MAX)
134 rv = nsinfo__get_nspid(&RC_CHK_ACCESS(nsi)->tgid, &RC_CHK_ACCESS(nsi)->nstgid,
135 &RC_CHK_ACCESS(nsi)->in_pidns, spath);
145 RC_STRUCT(nsinfo) *nsi;
147 nsi
156 struct nsinfo *nsi; local
180 nsinfo__mntns_path(const struct nsinfo *nsi) argument
185 nsinfo__copy(const struct nsinfo *nsi) argument
212 nsinfo__refcnt(struct nsinfo *nsi) argument
217 nsinfo__delete(struct nsinfo *nsi) argument
226 nsinfo__get(struct nsinfo *nsi) argument
236 nsinfo__put(struct nsinfo *nsi) argument
244 nsinfo__need_setns(const struct nsinfo *nsi) argument
249 nsinfo__clear_need_setns(struct nsinfo *nsi) argument
254 nsinfo__tgid(const struct nsinfo *nsi) argument
259 nsinfo__nstgid(const struct nsinfo *nsi) argument
264 nsinfo__pid(const struct nsinfo *nsi) argument
269 nsinfo__in_pidns(const struct nsinfo *nsi) argument
274 nsinfo__mountns_enter(struct nsinfo *nsi, struct nscookie *nc) argument
345 nsinfo__realpath(const char *path, struct nsinfo *nsi) argument
357 nsinfo__stat(const char *filename, struct stat *st, struct nsinfo *nsi) argument
[all...]
H A Dnamespaces.h49 int nsinfo__init(struct nsinfo *nsi);
51 struct nsinfo *nsinfo__copy(const struct nsinfo *nsi);
53 struct nsinfo *nsinfo__get(struct nsinfo *nsi);
54 void nsinfo__put(struct nsinfo *nsi);
56 bool nsinfo__need_setns(const struct nsinfo *nsi);
57 void nsinfo__clear_need_setns(struct nsinfo *nsi);
58 pid_t nsinfo__tgid(const struct nsinfo *nsi);
59 pid_t nsinfo__nstgid(const struct nsinfo *nsi);
60 pid_t nsinfo__pid(const struct nsinfo *nsi);
61 pid_t nsinfo__in_pidns(const struct nsinfo *nsi);
[all...]
H A Dbuild-id.h58 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,
72 const char *name, struct nsinfo *nsi,
76 const char *name, struct nsinfo *nsi,
79 return __build_id_cache__add_s(sbuild_id, name, nsi, is_kallsyms, is_vdso, NULL, NULL);
75 build_id_cache__add_s(const char *sbuild_id, const char *name, struct nsinfo *nsi, bool is_kallsyms, bool is_vdso) argument
H A Dcopyfile.c14 static int slow_copyfile(const char *from, const char *to, struct nsinfo *nsi) argument
22 nsinfo__mountns_enter(nsi, &nsc);
74 struct nsinfo *nsi)
82 nsinfo__mountns_enter(nsi, &nsc);
105 err = slow_copyfile(from, tmp, nsi);
114 nsinfo__mountns_enter(nsi, &nsc);
133 int copyfile_ns(const char *from, const char *to, struct nsinfo *nsi) argument
135 return copyfile_mode_ns(from, to, 0755, nsi);
73 copyfile_mode_ns(const char *from, const char *to, mode_t mode, struct nsinfo *nsi) argument
H A Dcopyfile.h13 int copyfile_ns(const char *from, const char *to, struct nsinfo *nsi);
H A Dbuild-id.c560 struct nsinfo *nsi, bool is_kallsyms,
567 realname = nsinfo__realpath(name, nsi);
578 int build_id_cache__list_build_ids(const char *pathname, struct nsinfo *nsi, argument
584 dir_name = build_id_cache__cachedir(NULL, pathname, nsi, false, false);
599 struct nsinfo *nsi)
605 cache = probe_cache__new(sbuild_id, nsi);
609 nsinfo__mountns_enter(nsi, &nsc);
621 #define build_id_cache__add_sdt_cache(sbuild_id, realname, nsi) (0)
625 struct nsinfo *nsi,
648 nsinfo__mountns_enter(nsi,
559 build_id_cache__cachedir(const char *sbuild_id, const char *name, struct nsinfo *nsi, bool is_kallsyms, bool is_vdso) argument
597 build_id_cache__add_sdt_cache(const char *sbuild_id, const char *realname, struct nsinfo *nsi) argument
624 build_id_cache__find_debug(const char *sbuild_id, struct nsinfo *nsi, const char *root_dir) argument
678 build_id_cache__add(const char *sbuild_id, const char *name, const char *realname, struct nsinfo *nsi, bool is_kallsyms, bool is_vdso, const char *proper_name, const char *root_dir) argument
800 __build_id_cache__add_s(const char *sbuild_id, const char *name, struct nsinfo *nsi, bool is_kallsyms, bool is_vdso, const char *proper_name, const char *root_dir) argument
824 build_id_cache__add_b(const struct build_id *bid, const char *name, struct nsinfo *nsi, bool is_kallsyms, bool is_vdso, const char *proper_name, const char *root_dir) argument
888 filename__read_build_id_ns(const char *filename, struct build_id *bid, struct nsinfo *nsi) argument
[all...]
H A Dprobe-event.h105 struct nsinfo *nsi; /* Target namespace */ member in struct:perf_probe_event
178 struct nsinfo *nsi, bool user);
181 int show_available_funcs(const char *module, struct nsinfo *nsi,
196 struct map *get_target_map(const char *target, struct nsinfo *nsi, bool user);
H A Dprobe-file.h55 struct probe_cache *probe_cache__new(const char *target, struct nsinfo *nsi);
77 static inline struct probe_cache *probe_cache__new(const char *tgt __maybe_unused, struct nsinfo *nsi __maybe_unused)
H A Djitdump.c39 struct nsinfo *nsi; member in struct:jit_buf_desc
88 nsinfo__mountns_enter(jd->nsi, &nsc);
103 nsinfo__mountns_enter(jd->nsi, &nsc);
146 nsinfo__mountns_enter(jd->nsi, &nsc);
380 if (jd->nsi && nsinfo__in_pidns(jd->nsi))
381 return nsinfo__tgid(jd->nsi);
387 if (jd->nsi && nsinfo__in_pidns(jd->nsi))
388 return nsinfo__pid(jd->nsi);
740 jit_detect(char *mmap_name, pid_t pid, struct nsinfo *nsi) argument
830 struct nsinfo *nsi; local
[all...]
H A Dmap.c124 struct nsinfo *nsi = NULL; local
139 nsi = nsinfo__get(thread__nsinfo(thread));
141 if ((anon || no_dso) && nsi && (prot & PROT_EXEC)) {
143 "/tmp/perf-%d.map", nsinfo__pid(nsi));
157 nnsi = nsinfo__copy(nsi);
159 nsinfo__put(nsi);
161 nsi = nnsi;
187 dso->nsinfo = nsi;
211 nsinfo__put(nsi);
H A Dprobe-event.c194 struct map *get_target_map(const char *target, struct nsinfo *nsi, bool user) argument
206 dso->nsinfo = nsinfo__get(nsi);
392 const char *target, struct nsinfo *nsi,
405 map = get_target_map(target, nsi, uprobes);
453 pev->nsi, pev->uprobes);
488 static struct debuginfo *open_from_debuginfod(struct dso *dso, struct nsinfo *nsi, argument
515 nsinfo__mountns_enter(nsi, &nsc);
523 struct nsinfo *nsi __maybe_unused,
531 static struct debuginfo *open_debuginfo(const char *module, struct nsinfo *nsi, argument
550 ret = open_from_debuginfod(dso, nsi, silen
389 find_alternative_probe_point(struct debuginfo *dinfo, struct perf_probe_point *pp, struct perf_probe_point *result, const char *target, struct nsinfo *nsi, bool uprobes) argument
616 get_text_start_address(const char *exec, u64 *address, struct nsinfo *nsi) argument
768 add_exec_to_probe_trace_events(struct probe_trace_event *tevs, int ntevs, const char *exec, struct nsinfo *nsi) argument
1142 show_line_range(struct line_range *lr, const char *module, struct nsinfo *nsi, bool user) argument
3761 show_available_funcs(const char *target, struct nsinfo *nsi, struct strfilter *_filter, bool user) argument
[all...]
H A Dprobe-file.c451 struct nsinfo *nsi)
472 nsinfo__mountns_enter(nsi, &nsc);
484 ret = build_id_cache__add_s(sbuildid, target, nsi,
492 dir_name = build_id_cache__cachedir(sbuildid, target, nsi, is_kallsyms,
601 struct probe_cache *probe_cache__new(const char *target, struct nsinfo *nsi) argument
609 ret = probe_cache__open(pcache, target, nsi);
450 probe_cache__open(struct probe_cache *pcache, const char *target, struct nsinfo *nsi) argument
H A Dsymbol.c1749 struct nsinfo *nsi; local
1753 nsi = *nsip;
1755 if (nsinfo__need_setns(nsi)) {
1756 snprintf(filebuf, bufsz, "/tmp/perf-%d.map", nsinfo__nstgid(nsi));
1757 nsinfo__mountns_enter(nsi, &nsc);
1764 nnsi = nsinfo__copy(nsi);
1766 nsinfo__put(nsi);
H A Dsynthetic-events.c371 struct nsinfo *nsi; local
394 nsi = nsinfo__new(event->pid);
395 nsinfo__mountns_enter(nsi, &nc);
400 nsinfo__put(nsi);
/linux-master/tools/perf/
H A Dbuiltin-buildid-cache.c175 static int build_id_cache__add_file(const char *filename, struct nsinfo *nsi) argument
182 nsinfo__mountns_enter(nsi, &nsc);
191 err = build_id_cache__add_s(sbuild_id, filename, nsi,
198 static int build_id_cache__remove_file(const char *filename, struct nsinfo *nsi) argument
206 nsinfo__mountns_enter(nsi, &nsc);
222 static int build_id_cache__purge_path(const char *pathname, struct nsinfo *nsi) argument
228 err = build_id_cache__list_build_ids(pathname, nsi, &list);
303 static int build_id_cache__update_file(const char *filename, struct nsinfo *nsi) argument
311 nsinfo__mountns_enter(nsi, &nsc);
325 err = build_id_cache__add_s(sbuild_id, filename, nsi, fals
390 struct nsinfo *nsi = NULL; local
[all...]
H A Dbuiltin-probe.c49 struct nsinfo *nsi; member in struct:__anon986
72 pev->nsi = nsinfo__get(params->nsi);
183 tmp = nsinfo__realpath(str, params->nsi);
220 params->nsi = nsinfo__get(nsip);
330 nsinfo__put(params->nsi);
692 ret = show_available_funcs(params->target, params->nsi,
700 params->nsi, params->uprobes);
H A Dbuiltin-inject.c417 struct nsinfo *nsi = NULL; local
429 nsi = nsinfo__get(thread__nsinfo(thread));
436 nnsi = nsinfo__copy(nsi);
438 nsinfo__put(nsi);
440 nsi = nnsi;
450 dso->nsinfo = nsi;
453 nsinfo__put(nsi);
/linux-master/tools/perf/arch/powerpc/util/
H A Dsym-handling.c127 map = get_target_map(pev->target, pev->nsi, pev->uprobes);
/linux-master/drivers/net/ethernet/aquantia/atlantic/hw_atl/
H A Dhw_atl_b0.c1259 u64 nsi; local
1262 nsi = div64_u64(base_ns, NSEC_PER_SEC);
1264 if (base_ns != nsi * NSEC_PER_SEC) {
1266 base_ns - nsi * NSEC_PER_SEC);
1270 *ns = (u32)nsi;
/linux-master/fs/nilfs2/
H A Dsufile.c848 * @nsi: size of suinfo array
860 unsigned int sisz, size_t nsi)
877 nsi);
859 nilfs_sufile_get_suinfo(struct inode *sufile, __u64 segnum, void *buf, unsigned int sisz, size_t nsi) argument

Completed in 260 milliseconds