forked from OSchip/llvm-project
parent
e8bdc8c864
commit
c53407de3c
|
@ -2713,11 +2713,7 @@ PRE_SYSCALL(perf_event_open)(void *attr_uptr, long pid, long cpu, long group_fd,
|
|||
long flags) {}
|
||||
|
||||
POST_SYSCALL(perf_event_open)(long res, void *attr_uptr, long pid, long cpu,
|
||||
long group_fd, long flags) {
|
||||
if (res >= 0) {
|
||||
if (attr_uptr) POST_WRITE(attr_uptr, struct_perf_event_attr_sz);
|
||||
}
|
||||
}
|
||||
long group_fd, long flags) {}
|
||||
|
||||
PRE_SYSCALL(mmap_pgoff)(long addr, long len, long prot, long flags, long fd,
|
||||
long pgoff) {}
|
||||
|
|
|
@ -52,10 +52,6 @@ COMPILER_CHECK(struct_kernel_stat64_sz == sizeof(struct stat64));
|
|||
|
||||
COMPILER_CHECK(struct_io_event_sz == sizeof(struct io_event));
|
||||
|
||||
#if !SANITIZER_ANDROID
|
||||
COMPILER_CHECK(struct_perf_event_attr_sz == sizeof(struct perf_event_attr));
|
||||
#endif
|
||||
|
||||
COMPILER_CHECK(iocb_cmd_pread == IOCB_CMD_PREAD);
|
||||
COMPILER_CHECK(iocb_cmd_pwrite == IOCB_CMD_PWRITE);
|
||||
|
||||
|
|
|
@ -59,7 +59,6 @@ namespace __sanitizer {
|
|||
const unsigned struct_kernel_stat64_sz = 96;
|
||||
#endif
|
||||
const unsigned struct_io_event_sz = 32;
|
||||
const unsigned struct_perf_event_attr_sz = 72;
|
||||
|
||||
extern unsigned struct_utimbuf_sz;
|
||||
extern unsigned struct_new_utsname_sz;
|
||||
|
|
Loading…
Reference in New Issue