Home
last modified time | relevance | path

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

/linux-6.6.21/tools/perf/util/
Dnamespaces.c98 int nsinfo__init(struct nsinfo *nsi) in nsinfo__init() argument
110 if (asprintf(&newns, "/proc/%d/ns/mnt", nsinfo__pid(nsi)) == -1) in nsinfo__init()
123 RC_CHK_ACCESS(nsi)->need_setns = true; in nsinfo__init()
124 RC_CHK_ACCESS(nsi)->mntns_path = newns; in nsinfo__init()
131 if (snprintf(spath, PATH_MAX, "/proc/%d/status", nsinfo__pid(nsi)) >= PATH_MAX) in nsinfo__init()
134 rv = nsinfo__get_nspid(&RC_CHK_ACCESS(nsi)->tgid, &RC_CHK_ACCESS(nsi)->nstgid, in nsinfo__init()
135 &RC_CHK_ACCESS(nsi)->in_pidns, spath); in nsinfo__init()
145 RC_STRUCT(nsinfo) *nsi; in nsinfo__alloc()
147 nsi = calloc(1, sizeof(*nsi)); in nsinfo__alloc()
148 if (ADD_RC_CHK(res, nsi)) in nsinfo__alloc()
[all …]
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 …]
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.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, in build_id_cache__add_s() argument
79 return __build_id_cache__add_s(sbuild_id, name, nsi, is_kallsyms, is_vdso, NULL, NULL); in build_id_cache__add_s()
Dbuild-id.c560 struct nsinfo *nsi, bool is_kallsyms, in build_id_cache__cachedir() argument
567 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
648 nsinfo__mountns_enter(nsi, &nsc); in build_id_cache__find_debug()
[all …]
Djitdump.c39 struct nsinfo *nsi; member
88 nsinfo__mountns_enter(jd->nsi, &nsc); in jit_emit_elf()
103 nsinfo__mountns_enter(jd->nsi, &nsc); in jit_emit_elf()
146 nsinfo__mountns_enter(jd->nsi, &nsc); in jit_open()
380 if (jd->nsi && nsinfo__in_pidns(jd->nsi)) in jr_entry_pid()
381 return nsinfo__tgid(jd->nsi); in jr_entry_pid()
387 if (jd->nsi && nsinfo__in_pidns(jd->nsi)) in jr_entry_tid()
388 return nsinfo__pid(jd->nsi); in jr_entry_tid()
487 if (nsinfo__stat(filename, &st, jd->nsi)) in jit_repipe_code_load()
580 if (nsinfo__stat(filename, &st, jd->nsi)) in jit_repipe_code_move()
[all …]
Dprobe-event.h105 struct nsinfo *nsi; /* Target namespace */ member
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);
Dmap.c125 struct nsinfo *nsi = NULL; in map__new() local
140 nsi = nsinfo__get(thread__nsinfo(thread)); in map__new()
142 if ((anon || no_dso) && nsi && (prot & PROT_EXEC)) { in map__new()
144 "/tmp/perf-%d.map", nsinfo__pid(nsi)); in map__new()
158 nnsi = nsinfo__copy(nsi); in map__new()
160 nsinfo__put(nsi); in map__new()
162 nsi = nnsi; in map__new()
187 dso->nsinfo = nsi; in map__new()
211 nsinfo__put(nsi); in map__new()
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()
Dprobe-event.c182 struct map *get_target_map(const char *target, struct nsinfo *nsi, bool user) in get_target_map() argument
194 dso->nsinfo = nsinfo__get(nsi); in get_target_map()
379 const char *target, struct nsinfo *nsi, in find_alternative_probe_point() argument
392 map = get_target_map(target, nsi, uprobes); in find_alternative_probe_point()
440 pev->nsi, pev->uprobes); in get_alternative_probe_event()
475 static struct debuginfo *open_from_debuginfod(struct dso *dso, struct nsinfo *nsi, in open_from_debuginfod() argument
502 nsinfo__mountns_enter(nsi, &nsc); in open_from_debuginfod()
510 struct nsinfo *nsi __maybe_unused, in open_from_debuginfod()
518 static struct debuginfo *open_debuginfo(const char *module, struct nsinfo *nsi, in open_debuginfo() argument
537 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.c451 struct nsinfo *nsi) in probe_cache__open() argument
472 nsinfo__mountns_enter(nsi, &nsc); in probe_cache__open()
484 ret = build_id_cache__add_s(sbuildid, target, nsi, in probe_cache__open()
492 dir_name = build_id_cache__cachedir(sbuildid, target, nsi, is_kallsyms, in probe_cache__open()
601 struct probe_cache *probe_cache__new(const char *target, struct nsinfo *nsi) in probe_cache__new() argument
609 ret = probe_cache__open(pcache, target, nsi); in probe_cache__new()
Dsymbol.c1845 struct nsinfo *nsi; in dso__find_perf_map() local
1849 nsi = *nsip; in dso__find_perf_map()
1851 if (nsinfo__need_setns(nsi)) { in dso__find_perf_map()
1852 snprintf(filebuf, bufsz, "/tmp/perf-%d.map", nsinfo__nstgid(nsi)); in dso__find_perf_map()
1853 nsinfo__mountns_enter(nsi, &nsc); in dso__find_perf_map()
1860 nnsi = nsinfo__copy(nsi); in dso__find_perf_map()
1862 nsinfo__put(nsi); in dso__find_perf_map()
Dsynthetic-events.c371 struct nsinfo *nsi; in perf_record_mmap2__read_build_id() local
394 nsi = nsinfo__new(event->pid); in perf_record_mmap2__read_build_id()
395 nsinfo__mountns_enter(nsi, &nc); in perf_record_mmap2__read_build_id()
400 nsinfo__put(nsi); in perf_record_mmap2__read_build_id()
/linux-6.6.21/tools/perf/
Dbuiltin-buildid-cache.c175 static int build_id_cache__add_file(const char *filename, struct nsinfo *nsi) in build_id_cache__add_file() argument
182 nsinfo__mountns_enter(nsi, &nsc); in build_id_cache__add_file()
191 err = build_id_cache__add_s(sbuild_id, filename, nsi, in build_id_cache__add_file()
198 static int build_id_cache__remove_file(const char *filename, struct nsinfo *nsi) in build_id_cache__remove_file() argument
206 nsinfo__mountns_enter(nsi, &nsc); in build_id_cache__remove_file()
222 static int build_id_cache__purge_path(const char *pathname, struct nsinfo *nsi) in build_id_cache__purge_path() argument
228 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()
330 nsinfo__put(params->nsi); in cleanup_params()
692 ret = show_available_funcs(params->target, params->nsi, in __cmd_probe()
700 params->nsi, params->uprobes); in __cmd_probe()
Dbuiltin-inject.c417 struct nsinfo *nsi = NULL; in findnew_dso() local
429 nsi = nsinfo__get(thread__nsinfo(thread)); in findnew_dso()
436 nnsi = nsinfo__copy(nsi); in findnew_dso()
438 nsinfo__put(nsi); in findnew_dso()
440 nsi = nnsi; in findnew_dso()
450 dso->nsinfo = nsi; in findnew_dso()
453 nsinfo__put(nsi); in findnew_dso()
/linux-6.6.21/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()
/linux-6.6.21/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()
/linux-6.6.21/fs/nilfs2/
Dsufile.c855 unsigned int sisz, size_t nsi) in nilfs_sufile_get_suinfo() argument
872 nsi); in nilfs_sufile_get_suinfo()