Lines Matching refs:offset

41     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
162 offset%=size; in process_event()
164 p = (struct perf_event_header*) (base+offset); in process_event()
165 offset+=sizeof(*p); if (offset>=size) offset-=size; in process_event()
168 pid = *((int *)(base+offset)); offset+=8; if (offset>=size) offset-=size; in process_event()
169 …unsigned long long abi = *(unsigned long long*)(base+offset); offset+=8; if (offset>=size) offset-… in process_event()
171 rax = *(unsigned long long*)(base+offset); offset+=8; if (offset>=size) offset-=size; //rax in process_event()
172 arg3 = *(unsigned long long*)(base+offset); offset+=8; if (offset>=size) offset-=size; //rdx in process_event()
173 arg2 = *(unsigned long long*)(base+offset); offset+=8; if (offset>=size) offset-=size; //rsi in process_event()
174 arg1 = *(unsigned long long*)(base+offset); offset+=8; if (offset>=size) offset-=size; //rdi in process_event()
175 arg4 = *(unsigned long long*)(base+offset); offset+=8; if (offset>=size) offset-=size; //r10 in process_event()
194 unsigned long long start, end, offset, inode; in main() local
222 offset=0; for (i=0; xxx[i]; i++) { in main()
223 if (xxx[i]>='0'&&xxx[i]<='9') offset=offset*16+xxx[i]-'0'; in main()
224 else if (xxx[i]>='A'&&xxx[i]<='F') offset=offset*16+xxx[i]-'A'+10; in main()
225 else if (xxx[i]>='a'&&xxx[i]<='f') offset=offset*16+xxx[i]-'a'+10; in main()