/kernel/linux/linux-5.10/tools/bpf/bpftool/ |
H A D | jit_disasm.c | 31 static void get_exec_path(char *tpath, size_t size) in get_exec_path() argument 36 len = readlink(path, tpath, size - 1); in get_exec_path() 38 tpath[len] = 0; in get_exec_path() 88 char tpath[PATH_MAX]; in disasm_print_insn() local 94 memset(tpath, 0, sizeof(tpath)); in disasm_print_insn() 95 get_exec_path(tpath, sizeof(tpath)); in disasm_print_insn() 97 bfdf = bfd_openr(tpath, NULL); in disasm_print_insn()
|
/kernel/linux/linux-5.10/tools/bpf/ |
H A D | bpf_jit_disasm.c | 35 static void get_exec_path(char *tpath, size_t size) in get_exec_path() argument 40 snprintf(tpath, size, "/proc/%d/exe", (int) getpid()); in get_exec_path() 41 tpath[size - 1] = 0; in get_exec_path() 43 path = strdup(tpath); in get_exec_path() 46 len = readlink(path, tpath, size); in get_exec_path() 47 tpath[len] = 0; in get_exec_path() 55 char tpath[PATH_MAX]; in get_asm_insns() local 60 memset(tpath, 0, sizeof(tpath)); in get_asm_insns() 61 get_exec_path(tpath, sizeo in get_asm_insns() [all...] |
/kernel/linux/linux-6.6/tools/bpf/ |
H A D | bpf_jit_disasm.c | 36 static void get_exec_path(char *tpath, size_t size) in get_exec_path() argument 41 snprintf(tpath, size, "/proc/%d/exe", (int) getpid()); in get_exec_path() 42 tpath[size - 1] = 0; in get_exec_path() 44 path = strdup(tpath); in get_exec_path() 47 len = readlink(path, tpath, size); in get_exec_path() 48 tpath[len] = 0; in get_exec_path() 56 char tpath[PATH_MAX]; in get_asm_insns() local 61 memset(tpath, 0, sizeof(tpath)); in get_asm_insns() 62 get_exec_path(tpath, sizeo in get_asm_insns() [all...] |
/kernel/linux/linux-6.6/tools/bpf/bpftool/ |
H A D | jit_disasm.c | 145 static int get_exec_path(char *tpath, size_t size) in get_exec_path() argument 150 len = readlink(path, tpath, size - 1); in get_exec_path() 154 tpath[len] = 0; in get_exec_path() 221 char tpath[PATH_MAX]; in init_context() local 224 memset(tpath, 0, sizeof(tpath)); in init_context() 225 if (get_exec_path(tpath, sizeof(tpath))) { in init_context() 230 ctx->bfdf = bfd_openr(tpath, NULL); in init_context()
|
/kernel/linux/common_modules/tzdriver/core/ |
H A D | agent.c | 183 char *tpath = NULL; in get_ca_path_and_uid() local 185 tpath = kmalloc(MAX_PATH_SIZE, GFP_KERNEL); in get_ca_path_and_uid() 186 if (ZERO_OR_NULL_PTR((unsigned long)(uintptr_t)tpath)) { in get_ca_path_and_uid() 187 tloge("tpath kmalloc fail\n"); in get_ca_path_and_uid() 191 path = get_proc_dpath(tpath, MAX_PATH_SIZE); in get_ca_path_and_uid() 194 kfree(tpath); in get_ca_path_and_uid() 202 kfree(tpath); in get_ca_path_and_uid() 210 kfree(tpath); in get_ca_path_and_uid() 221 kfree(tpath); in get_ca_path_and_uid()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | annotate.c | 1711 char tpath[PATH_MAX]; in symbol__disassemble_bpf() local 1725 memset(tpath, 0, sizeof(tpath)); in symbol__disassemble_bpf() 1726 perf_exe(tpath, sizeof(tpath)); in symbol__disassemble_bpf() 1728 bfdf = bfd_openr(tpath, NULL); in symbol__disassemble_bpf()
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | annotate.c | 1831 char tpath[PATH_MAX]; in symbol__disassemble_bpf() local 1845 memset(tpath, 0, sizeof(tpath)); in symbol__disassemble_bpf() 1846 perf_exe(tpath, sizeof(tpath)); in symbol__disassemble_bpf() 1848 bfdf = bfd_openr(tpath, NULL); in symbol__disassemble_bpf()
|
/kernel/linux/linux-5.10/tools/power/pm-graph/ |
H A D | bootgraph.py | 127 fp = open(self.tpath+'available_filter_functions') 471 call('cat '+sysvals.tpath+'trace >> '+sysvals.ftracefile, shell=True)
|
H A D | sleepgraph.py | 114 tpath = '/sys/kernel/debug/tracing/' variable in SystemValues 539 call('cat '+self.tpath+'available_filter_functions', shell=True) 541 master = self.listFromFile(self.tpath+'available_filter_functions') 550 master = self.listFromFile(self.tpath+'available_filter_functions') 559 fp = open(self.tpath+'set_graph_function', 'w') 699 return self.setVal(val, self.tpath+path) 712 return self.getVal(self.tpath+path) 818 tp = self.tpath 832 tp = self.tpath 5227 tp = sysvals.tpath [all...] |
/kernel/linux/linux-6.6/tools/power/pm-graph/ |
H A D | bootgraph.py | 129 fp = open(self.tpath+'available_filter_functions') 473 call('cat '+sysvals.tpath+'trace >> '+sysvals.ftracefile, shell=True)
|
H A D | sleepgraph.py | 123 tpath = '/sys/kernel/tracing/' variable in SystemValues 581 call('cat '+self.tpath+'available_filter_functions', shell=True) 583 master = self.listFromFile(self.tpath+'available_filter_functions') 592 master = self.listFromFile(self.tpath+'available_filter_functions') 601 fp = open(self.tpath+'set_graph_function', 'w') 743 return self.setVal(val, self.tpath+path) 758 return self.getVal(self.tpath+path) 815 fp = open(self.tpath+'set_ftrace_notrace', 'w') 863 tp = self.tpath 877 tp = self.tpath [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/ulp/ipoib/ |
H A D | ipoib_main.c | 582 struct ipoib_path *tpath; in __path_add() local 587 tpath = rb_entry(pn, struct ipoib_path, rb_node); in __path_add() 589 ret = memcmp(path->pathrec.dgid.raw, tpath->pathrec.dgid.raw, in __path_add()
|
/kernel/linux/linux-6.6/drivers/infiniband/ulp/ipoib/ |
H A D | ipoib_main.c | 586 struct ipoib_path *tpath; in __path_add() local 591 tpath = rb_entry(pn, struct ipoib_path, rb_node); in __path_add() 593 ret = memcmp(path->pathrec.dgid.raw, tpath->pathrec.dgid.raw, in __path_add()
|