/linux/tools/perf/util/ |
A D | namespaces.c | 112 nsi->nstgid = nsi->tgid; in nsinfo__init() 142 nsi = calloc(1, sizeof(*nsi)); in nsinfo__new() 144 nsi->pid = pid; in nsinfo__new() 145 nsi->tgid = pid; in nsinfo__new() 159 return nsi; in nsinfo__new() 166 if (nsi == NULL) in nsinfo__copy() 192 free(nsi); in nsinfo__delete() 197 if (nsi) in nsinfo__get() 199 return nsi; in nsinfo__get() 204 if (nsi && refcount_dec_and_test(&nsi->refcnt)) in nsinfo__put() [all …]
|
A D | namespaces.h | 48 int nsinfo__init(struct nsinfo *nsi); 50 struct nsinfo *nsinfo__copy(struct nsinfo *nsi); 51 void nsinfo__delete(struct nsinfo *nsi); 53 struct nsinfo *nsinfo__get(struct nsinfo *nsi); 54 void nsinfo__put(struct nsinfo *nsi); 56 void nsinfo__mountns_enter(struct nsinfo *nsi, struct nscookie *nc); 59 char *nsinfo__realpath(const char *path, struct nsinfo *nsi); 60 int nsinfo__stat(const char *filename, struct stat *st, struct nsinfo *nsi); 70 #define nsinfo__zput(nsi) __nsinfo__zput(&nsi) argument
|
A D | copyfile.c | 14 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()
|
A D | build-id.c | 571 realname = nsinfo__realpath(name, nsi); in build_id_cache__cachedir() 608 struct nsinfo *nsi) in build_id_cache__add_sdt_cache() argument 614 cache = probe_cache__new(sbuild_id, nsi); in build_id_cache__add_sdt_cache() 618 nsinfo__mountns_enter(nsi, &nsc); in build_id_cache__add_sdt_cache() 634 struct nsinfo *nsi) in build_id_cache__find_debug() argument 650 nsinfo__mountns_enter(nsi, &nsc); in build_id_cache__find_debug() 709 } else if (nsi && nsi->need_setns) { in build_id_cache__add() 710 if (copyfile_ns(name, filename, nsi)) in build_id_cache__add() 733 if (nsi && nsi->need_setns) { in build_id_cache__add() 735 nsi)) in build_id_cache__add() [all …]
|
A D | jitdump.c | 39 struct nsinfo *nsi; member 95 nsinfo__mountns_enter(jd->nsi, &nsc); in jit_emit_elf() 385 if (jd->nsi && jd->nsi->in_pidns) in jr_entry_pid() 386 return jd->nsi->tgid; in jr_entry_pid() 392 if (jd->nsi && jd->nsi->in_pidns) in jr_entry_tid() 393 return jd->nsi->pid; in jr_entry_tid() 782 if (pid && pid2 != nsi->nstgid) in jit_detect() 828 struct nsinfo *nsi; in jit_process() local 846 nsinfo__put(nsi); in jit_process() 860 jd.nsi = nsi; in jit_process() [all …]
|
A D | build-id.h | 58 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); 71 const char *name, struct nsinfo *nsi,
|
A D | probe-event.h | 105 struct nsinfo *nsi; /* Target namespace */ member 179 struct nsinfo *nsi, bool user); 182 int show_available_funcs(const char *module, struct nsinfo *nsi, 197 struct map *get_target_map(const char *target, struct nsinfo *nsi, bool user);
|
A D | map.c | 136 struct nsinfo *nsi = NULL; in map__new() local 150 nsi = nsinfo__get(thread->nsinfo); in map__new() 152 if ((anon || no_dso) && nsi && (prot & PROT_EXEC)) { in map__new() 154 "/tmp/perf-%d.map", nsi->pid); in map__new() 168 nnsi = nsinfo__copy(nsi); in map__new() 170 nsinfo__put(nsi); in map__new() 172 nsi = nnsi; in map__new() 195 dso->nsinfo = nsi; in map__new() 204 nsinfo__put(nsi); in map__new()
|
A D | probe-event.c | 184 map->dso->nsinfo = nsinfo__get(nsi); in get_target_map() 428 pev->nsi, pev->uprobes); in get_alternative_probe_event() 490 nsinfo__mountns_enter(nsi, &nsc); in open_from_debuginfod() 538 nsinfo__mountns_enter(nsi, &nsc); in open_debuginfo() 592 struct nsinfo *nsi) in get_text_start_address() argument 600 nsinfo__mountns_enter(nsi, &nsc); in get_text_start_address() 745 struct nsinfo *nsi) in add_exec_to_probe_trace_events() argument 881 pev->nsi); in post_process_probe_trace_events() 1117 struct nsinfo *nsi, bool user) in show_line_range() argument 1125 nsinfo__mountns_enter(nsi, &nsc); in show_line_range() [all …]
|
A D | probe-file.h | 55 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()
|
A D | probe-file.c | 451 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()
|
A D | copyfile.h | 13 int copyfile_ns(const char *from, const char *to, struct nsinfo *nsi);
|
A D | symbol.c | 1732 struct nsinfo *nsi; in dso__find_perf_map() local 1736 nsi = *nsip; in dso__find_perf_map() 1738 if (nsi->need_setns) { in dso__find_perf_map() 1739 snprintf(filebuf, bufsz, "/tmp/perf-%d.map", nsi->nstgid); in dso__find_perf_map() 1740 nsinfo__mountns_enter(nsi, &nsc); in dso__find_perf_map() 1747 nnsi = nsinfo__copy(nsi); in dso__find_perf_map() 1749 nsinfo__put(nsi); in dso__find_perf_map()
|
/linux/tools/perf/ |
A D | builtin-buildid-cache.c | 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() 206 nsinfo__mountns_enter(nsi, &nsc); in build_id_cache__remove_file() 309 nsinfo__mountns_enter(nsi, &nsc); in build_id_cache__update_file() 384 struct nsinfo *nsi = NULL; in cmd_buildid_cache() local 440 nsi = nsinfo__new(ns_id); in cmd_buildid_cache() 465 if (build_id_cache__add_file(pos->s, nsi)) { in cmd_buildid_cache() 483 if (build_id_cache__remove_file(pos->s, nsi)) { in cmd_buildid_cache() 501 if (build_id_cache__purge_path(pos->s, nsi)) { in cmd_buildid_cache() 529 if (build_id_cache__update_file(pos->s, nsi)) { in cmd_buildid_cache() [all …]
|
A D | builtin-probe.c | 50 struct nsinfo *nsi; member 73 pev->nsi = nsinfo__get(params.nsi); in parse_probe_event() 184 tmp = nsinfo__realpath(str, params.nsi); in opt_set_target() 221 params.nsi = nsinfo__get(nsip); in opt_set_target_ns() 322 nsinfo__put(params.nsi); in cleanup_params() 674 ret = show_available_funcs(params.target, params.nsi, in __cmd_probe() 682 params.nsi, params.uprobes); in __cmd_probe()
|
A D | builtin-inject.c | 335 struct nsinfo *nsi = NULL; in findnew_dso() local 347 nsi = nsinfo__get(thread->nsinfo); in findnew_dso() 354 nnsi = nsinfo__copy(nsi); in findnew_dso() 356 nsinfo__put(nsi); in findnew_dso() 358 nsi = nnsi; in findnew_dso() 367 dso->nsinfo = nsi; in findnew_dso() 369 nsinfo__put(nsi); in findnew_dso()
|
/linux/tools/perf/arch/powerpc/util/ |
A D | sym-handling.c | 127 map = get_target_map(pev->target, pev->nsi, pev->uprobes); in arch__post_process_probe_trace_events()
|
/linux/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
A D | hw_atl_b0.c | 1252 u64 nsi; in hw_atl_b0_adj_params_get() local 1255 nsi = div64_u64(base_ns, NSEC_PER_SEC); in hw_atl_b0_adj_params_get() 1257 if (base_ns != nsi * NSEC_PER_SEC) { in hw_atl_b0_adj_params_get() 1259 base_ns - nsi * NSEC_PER_SEC); in hw_atl_b0_adj_params_get() 1263 *ns = (u32)nsi; in hw_atl_b0_adj_params_get()
|
/linux/fs/nilfs2/ |
A D | sufile.c | 810 unsigned int sisz, size_t nsi) in nilfs_sufile_get_suinfo() argument 827 nsi); in nilfs_sufile_get_suinfo()
|