|
@@ -575,10 +575,6 @@ static void perf_syscall_enter(void *ignore, struct pt_regs *regs, long id)
|
|
|
size = ALIGN(size + sizeof(u32), sizeof(u64));
|
|
|
size -= sizeof(u32);
|
|
|
|
|
|
- if (WARN_ONCE(size > PERF_MAX_TRACE_SIZE,
|
|
|
- "perf buffer not large enough"))
|
|
|
- return;
|
|
|
-
|
|
|
rec = (struct syscall_trace_enter *)perf_trace_buf_prepare(size,
|
|
|
sys_data->enter_event->event.type, regs, &rctx);
|
|
|
if (!rec)
|
|
@@ -652,14 +648,6 @@ static void perf_syscall_exit(void *ignore, struct pt_regs *regs, long ret)
|
|
|
size = ALIGN(sizeof(*rec) + sizeof(u32), sizeof(u64));
|
|
|
size -= sizeof(u32);
|
|
|
|
|
|
- /*
|
|
|
- * Impossible, but be paranoid with the future
|
|
|
- * How to put this check outside runtime?
|
|
|
- */
|
|
|
- if (WARN_ONCE(size > PERF_MAX_TRACE_SIZE,
|
|
|
- "exit event has grown above perf buffer size"))
|
|
|
- return;
|
|
|
-
|
|
|
rec = (struct syscall_trace_exit *)perf_trace_buf_prepare(size,
|
|
|
sys_data->exit_event->event.type, regs, &rctx);
|
|
|
if (!rec)
|