Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 10 of 10) sorted by relevance

/linux-tools/perf/kprobe/
H A Dperf_kprobe.cpp52 int process_event(char *base, unsigned long long size, unsigned long long offset) { in process_event() argument
56 offset%=size; in process_event()
58 p = (struct perf_event_header*) (base+offset); in process_event()
59 offset+=sizeof(*p); if (offset>=size) offset-=size; in process_event()
61 pid = *(int*)(base+offset); offset+=8; if (offset>=size) offset-=size; in process_event()
87 abi = *(unsigned long long*)(base+offset); offset+=8; if (offset>=size) offset-=size; in process_event()
89 … addr = *(unsigned long long*)(base+offset); offset+=8; if (offset>=size) offset-=size; //rax in process_event()
90 … arg3 = *(unsigned long long*)(base+offset); offset+=8; if (offset>=size) offset-=size; //rdx in process_event()
91 … arg2 = *(unsigned long long*)(base+offset); offset+=8; if (offset>=size) offset-=size; //rsi in process_event()
92 … arg1 = *(unsigned long long*)(base+offset); offset+=8; if (offset>=size) offset-=size; //rdi in process_event()
[all …]
/linux-tools/perf/uprobe/
H A Duprobe.cpp41 unsigned long long offset; in parse_elf64() local
46 offset = ehdr.e_phoff; in parse_elf64()
49 rc = fseek(fp, offset, SEEK_SET); in parse_elf64()
57 offset+=s; in parse_elf64()
62 offset = ehdr.e_shoff; in parse_elf64()
66 rc = fseek(fp, offset, SEEK_SET); in parse_elf64()
71 offset+=s; in parse_elf64()
82 offset = headers[i].sh_offset; in parse_elf64()
91 rc = fseek(fp, offset+k, SEEK_SET); if (rc<0) continue; in parse_elf64()
158 int process_event(char *base, unsigned long long size, unsigned long long offset) { in process_event() argument
[all …]
/linux-tools/perf/contextswitch/
H A Dperf_cxt_switch_1.cpp45 int process_event(char *base, unsigned long long size, unsigned long long offset) { in process_event() argument
49 offset%=size; in process_event()
51 p = (struct perf_event_header*) (base+offset); in process_event()
52 offset+=sizeof(*p); if (offset>=size) offset-=size; in process_event()
58 xpid = *((int *)(base+offset)); in process_event()
59 offset+=8; if (offset>=size) offset-=size; in process_event()
63 pid = *((int *)(base+offset)); offset+=8; if (offset>=size) offset-=size; in process_event()
64 time = *((unsigned long long *)(base+offset)); offset+=8; if (offset>=size) offset-=size; in process_event()
H A Dperf_cxt_switch_3.cpp75 unsigned long long offset; in parse_elf64() local
81 offset = ehdr.e_phoff; in parse_elf64()
84 rc = fseek(fp, offset, SEEK_SET); in parse_elf64()
95 offset+=s; in parse_elf64()
102 offset = ehdr.e_shoff; in parse_elf64()
106 rc = fseek(fp, offset, SEEK_SET); in parse_elf64()
111 offset+=s; in parse_elf64()
122 offset = headers[i].sh_offset; in parse_elf64()
128 rc = fseek(fp, offset+k, SEEK_SET); if (rc<0) continue; in parse_elf64()
147 …ath, unsigned long long addr, unsigned long long size, unsigned long long offset, STORE_T& store) { in load_symbol_from_file() argument
[all …]
H A Dperf_cxt_switch_2.cpp63 int process_event(char *base, unsigned long long size, unsigned long long offset) { in process_event() argument
67 offset%=size; in process_event()
69 p = (struct perf_event_header*) (base+offset); in process_event()
70 offset+=sizeof(*p); if (offset>=size) offset-=size; in process_event()
76 xpid = *((int *)(base+offset)); in process_event()
77 offset+=8; if (offset>=size) offset-=size; in process_event()
/linux-tools/drivers/mremap/
H A Dextract.cpp26 unsigned long long start, end, offset; member
37 unsigned long long start, end, offset; in load_maps() local
47 start=end=offset=0; in load_maps()
60 offset = offset*16+vmk[offs[i]]; in load_maps()
67 nn.offset = offset; in load_maps()
86 unsigned long offset; member
89 unsigned long start, end, offset; member
117 unsigned long offset, hlen, dlen; in main() local
152 offset=0; hlen=0; in main()
165 regset_header.offset = offset; in main()
[all …]
H A Dinject.cpp41 unsigned long long start, end, offset; member
52 unsigned long long start, end, offset; in load_maps() local
62 start=end=offset=0; in load_maps()
75 offset = offset*16+vmk[offs[i]]; in load_maps()
81 nn.offset = offset; in load_maps()
100 unsigned long offset; member
104 unsigned long start, end, offset; member
114 unsigned long offset, hlen, dlen; in main() local
155 …d: size %ld, data offset 0x%lx\n", regset_header.regset, regset_header.size, regset_header.offset); in main()
190 mheader.start, mheader.end, mheader.offset, mheader.mode, mheader.nlen, ibuf, in main()
[all …]
/linux-tools/perf/execommand/
H A Dperf_comm.cpp60 int process_event(char *base, unsigned long long size, unsigned long long offset) { in process_event() argument
63 offset%=size; in process_event()
65 p = (struct perf_event_header*) (base+offset); in process_event()
66 offset+=sizeof(*p); if (offset>=size) offset-=size; in process_event()
68 pid = *(int*)(base+offset); in process_event()
69 ppid = *(int*)(base+offset+4); in process_event()
72 pid = *(int*)(base+offset); in process_event()
73 offset+=8; if (offset>=size) offset-=size; in process_event()
74 i=offset; in process_event()
84 pid = *(int*)(base+offset); in process_event()
[all …]
/linux-tools/perf/profiler/
H A Dprofiler-kprobe.cpp75 unsigned long long offset; in parse_elf64() local
81 offset = ehdr.e_phoff; in parse_elf64()
84 rc = fseek(fp, offset, SEEK_SET); in parse_elf64()
95 offset+=s; in parse_elf64()
102 offset = ehdr.e_shoff; in parse_elf64()
106 rc = fseek(fp, offset, SEEK_SET); in parse_elf64()
111 offset+=s; in parse_elf64()
122 offset = headers[i].sh_offset; in parse_elf64()
128 rc = fseek(fp, offset+k, SEEK_SET); if (rc<0) continue; in parse_elf64()
148 …ath, unsigned long long addr, unsigned long long size, unsigned long long offset, STORE_T& store) { in load_symbol_from_file() argument
[all …]
H A Dprofiler.cpp78 unsigned long long offset; in parse_elf64() local
84 offset = ehdr.e_phoff; in parse_elf64()
87 rc = fseek(fp, offset, SEEK_SET); in parse_elf64()
98 offset+=s; in parse_elf64()
105 offset = ehdr.e_shoff; in parse_elf64()
109 rc = fseek(fp, offset, SEEK_SET); in parse_elf64()
114 offset+=s; in parse_elf64()
125 offset = headers[i].sh_offset; in parse_elf64()
131 rc = fseek(fp, offset+k, SEEK_SET); if (rc<0) continue; in parse_elf64()
152 …ath, unsigned long long addr, unsigned long long size, unsigned long long offset, STORE_T& store) { in load_symbol_from_file() argument
[all …]