Home
last modified time | relevance | path

Searched refs:root_dir (Results 1 – 25 of 25) sorted by relevance

/linux/tools/perf/tests/
H A Dkallsyms-split.c20 static char *root_dir; variable
50 if (root_dir == NULL) in remove_proc_dir()
54 scnprintf(buf, sizeof(buf), "%s/proc/%s", root_dir, proc_files[i].name); in remove_proc_dir()
58 scnprintf(buf, sizeof(buf), "%s/proc", root_dir); in remove_proc_dir()
61 rmdir(root_dir); in remove_proc_dir()
62 root_dir = NULL; in remove_proc_dir()
69 root_dir = mkdtemp(root_template); in create_proc_dir()
70 if (root_dir == NULL) in create_proc_dir()
73 scnprintf(buf, sizeof(buf), "%s/proc", root_dir); in create_proc_dir()
80 scnprintf(buf, sizeof(buf), "%s/proc/%s", root_dir, proc_file in create_proc_dir()
[all...]
/linux/tools/perf/util/
H A Dbuild-id.c105 int sysfs__snprintf_build_id(const char *root_dir, char *sbuild_id, size_t sbuild_id_size) in sysfs__snprintf_build_id()
111 if (!root_dir) in sysfs__snprintf_build_id()
112 root_dir = ""; in sysfs__snprintf_build_id()
114 scnprintf(notes, sizeof(notes), "%s/sys/kernel/notes", root_dir); in sysfs__snprintf_build_id()
584 const char *root_dir) in build_id_cache__find_debug()
597 if (root_dir) { in build_id_cache__find_debug()
598 path__join(dirbuf, PATH_MAX, root_dir, dirname); in build_id_cache__find_debug()
638 const char *proper_name, const char *root_dir) in build_id_cache__add()
692 debugfile = build_id_cache__find_debug(sbuild_id, nsi, root_dir); in build_id_cache__add()
760 const char *proper_name, const char *root_dir) in __build_id_cache__add_s()
102 sysfs__snprintf_build_id(const char * root_dir,char * sbuild_id,size_t sbuild_id_size) sysfs__snprintf_build_id() argument
581 build_id_cache__find_debug(const char * sbuild_id,struct nsinfo * nsi,const char * root_dir) build_id_cache__find_debug() argument
635 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) build_id_cache__add() argument
757 __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) __build_id_cache__add_s() argument
783 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) build_id_cache__add_b() argument
878 const char *root_dir = NULL; dso__cache_build_id() local
[all...]
H A Dbuild-id.h26 int sysfs__snprintf_build_id(const char *root_dir, char *sbuild_id, size_t sbuild_id_size);
61 const char *proper_name, const char *root_dir);
65 const char *proper_name, const char *root_dir);
H A Dmachine.h39 char *root_dir; member
162 const char *root_dir);
175 int machine__init(struct machine *machine, const char *root_dir, pid_t pid);
H A Dmachine.c77 int machine__init(struct machine *machine, const char *root_dir, pid_t pid) in machine__init()
103 machine->root_dir = strdup(root_dir); in machine__init()
104 if (machine->root_dir == NULL) in machine__init()
127 zfree(&machine->root_dir); in machine__init()
220 zfree(&machine->root_dir); in machine__exit()
251 const char *root_dir) in machines__add()
261 if (machine__init(machine, root_dir, pid) != 0) { in machines__add()
327 const char *root_dir = ""; in machines__findnew()
350 root_dir in machines__findnew()
75 machine__init(struct machine * machine,const char * root_dir,pid_t pid) machine__init() argument
245 machines__add(struct machines * machines,pid_t pid,const char * root_dir) machines__add() argument
321 const char *root_dir = ""; machines__findnew() local
1315 get_kernel_version(const char * root_dir) get_kernel_version() argument
[all...]
H A Ddso.c115 const char *root_dir, char *filename, size_t size) in dso__read_binary_type_filename() argument
237 root_dir, dso__long_name(dso)); in dso__read_binary_type_filename()
570 static char *dso__get_filename(struct dso *dso, const char *root_dir, in dso__get_filename()
581 root_dir, name, PATH_MAX)) in dso__get_filename()
642 name = dso__get_filename(dso, machine ? machine->root_dir : "", &decomp);
1804 snprintf(path, sizeof(path), "%s/sys/kernel/notes", machine->root_dir); in dso__fprintf()
1810 const char *root_dir) in dso__fprintf()
1822 root_dir, (int)strlen(name) - 1, name); in dso__type()
564 dso__get_filename(struct dso * dso,const char * root_dir,bool * decomp) dso__get_filename() argument
1775 dso__kernel_module_get_build_id(struct dso * dso,const char * root_dir) dso__kernel_module_get_build_id() argument
H A Dsymbol.c1039 machine->root_dir, module); in add_module()
1807 char *root_dir = (char *) ""; in dso__load()
1861 root_dir = machine->root_dir; in dso__load()
1901 root_dir, name, PATH_MAX)) in dso__load_vmlinux()
2167 scnprintf(path, sizeof(path), "%s/proc/kallsyms", machine->root_dir); in dso__load_guest_kernel_sym()
2286 snprintf(path, sizeof(path), "%s/proc/kallsyms", machine->root_dir); in setup_addrlist()
1680 char *root_dir = (char *) ""; dso__load() local
H A Ddso.h784 int dso__kernel_module_get_build_id(struct dso *dso, const char *root_dir);
788 const char *root_dir, char *filename, size_t size);
H A Dsynthetic-events.c448 machine->root_dir, pid, pid); in perf_event__synthesize_mmap_events()
488 machine->root_dir, pid, pid); in perf_event__synthesize_mmap_events()
815 machine->root_dir, pid); in __event__synthesize_thread()
1051 snprintf(proc_path, sizeof(proc_path), "%s/proc", machine->root_dir); in perf_event__synthesize_threads()
H A Dunwind-libunwind-local.c
/linux/kernel/trace/rv/
H A Drv.h5 struct dentry *root_dir; member
36 int init_rv_reactors(struct dentry *root_dir);
43 static inline int init_rv_reactors(struct dentry *root_dir) in init_rv_reactors() argument
H A Drv.c816 struct dentry *root_dir __free(rv_remove) = rv_create_dir("rv", NULL); in rv_unregister_monitor()
818 if (!root_dir) in rv_init_interface()
821 rv_root.monitors_dir = rv_create_dir("monitors", root_dir); in rv_init_interface()
825 tmp = rv_create_file("available_monitors", RV_MODE_READ, root_dir, NULL, in rv_init_interface()
830 tmp = rv_create_file("enabled_monitors", RV_MODE_WRITE, root_dir, NULL, in rv_init_interface()
835 tmp = rv_create_file("monitoring_on", RV_MODE_WRITE, root_dir, NULL, in rv_init_interface()
839 retval = init_rv_reactors(root_dir); in rv_init_interface()
845 rv_root.root_dir = no_free_ptr(root_dir); in rv_init_interface()
H A Drv_reactors.c441 int init_rv_reactors(struct dentry *root_dir) in init_rv_reactors() argument
446 rv_create_file("available_reactors", RV_MODE_READ, root_dir, in init_rv_reactors()
450 rv_create_file("reacting_on", RV_MODE_WRITE, root_dir, NULL, &reacting_on_fops); in init_rv_reactors()
/linux/kernel/
H A Drseq.c183 static int __init rseq_stats_init(struct dentry *root_dir) in rseq_stats_init() argument
185 debugfs_create_file("stats", 0444, root_dir, NULL, &stat_ops); in rseq_stats_init()
189 static inline void rseq_stats_init(struct dentry *root_dir) { } in rseq_stats_init() argument
225 static void rseq_slice_ext_init(struct dentry *root_dir);
229 struct dentry *root_dir = debugfs_create_dir("rseq", NULL); in rseq_debugfs_init() local
231 debugfs_create_file("debug", 0644, root_dir, NULL, &debug_ops); in rseq_debugfs_init()
232 rseq_stats_init(root_dir); in rseq_debugfs_init()
234 rseq_slice_ext_init(root_dir); in rseq_debugfs_init()
858 static void rseq_slice_ext_init(struct dentry *root_dir) in rseq_slice_ext_init() argument
860 debugfs_create_file("slice_ext_nsec", 0644, root_dir, NULL, &slice_ext_ops); in rseq_slice_ext_init()
[all …]
/linux/kernel/irq/
H A Ddebugfs.c240 struct dentry *root_dir; in irq_debugfs_init() local
243 root_dir = debugfs_create_dir("irq", NULL); in irq_debugfs_init()
245 irq_domain_debugfs_init(root_dir); in irq_debugfs_init()
247 irq_dir = debugfs_create_dir("irqs", root_dir); in irq_debugfs_init()
/linux/tools/perf/
H A Dbuiltin-buildid-cache.c36 char root_dir[PATH_MAX]; in build_id_cache__kcore_buildid() local
39 strlcpy(root_dir, proc_dir, sizeof(root_dir)); in build_id_cache__kcore_buildid()
41 p = strrchr(root_dir, '/'); in build_id_cache__kcore_buildid()
45 return sysfs__snprintf_build_id(root_dir, sbuildid, sbuildid_size); in build_id_cache__kcore_buildid()
H A Dbuiltin-record.c982 scnprintf(kcore, sizeof(kcore), "%s/proc/kcore", machine->root_dir); in record__kcore_readable()
999 snprintf(from_dir, sizeof(from_dir), "%s/proc", machine->root_dir); in record__kcore_copy()
/linux/fs/befs/
H A Dsuper.c50 befs_sb->root_dir = fsrun_to_cpu(sb, disk_sb->root_dir); in befs_load_sb()
H A Dbefs.h55 befs_inode_addr root_dir; member
H A Dbefs_fs_types.h138 befs_disk_inode_addr root_dir; member
H A Ddebug.c193 tmp_run = fsrun_to_cpu(sb, sup->root_dir); in befs_dump_super_block()
/linux/samples/bpf/
H A Drun_cookie_uid_helper_example.sh4 root_dir=$local_dir/../..
/linux/tools/perf/scripts/python/
H A Dexport-to-postgresql.py983 def machine_table(machine_id, pid, root_dir, *x): argument
984 root_dir = toserverstr(root_dir)
985 n = len(root_dir)
987 value = struct.pack(fmt, 3, 8, machine_id, 4, pid, n, root_dir)
/linux/tools/testing/selftests/hid/tests/
H A Dbase.py255 root_dir = (script_dir / "../../../../..").resolve()
256 bpf_dir = root_dir / "drivers/hid/bpf/progs"
/linux/tools/perf/util/scripting-engines/
H A Dtrace-event-python.c1166 tuple_set_string(t, 2, machine->root_dir ? machine->root_dir : ""); in python_export_machine()