@@ -218,7 +218,6 @@ KPROG(do_preadv) (struct pt_regs *ctx) {
218
218
return do_sys_enter_pread (fd , SYSCALL_FUNC_PREADV );
219
219
}
220
220
#else
221
- #ifndef LINUX_VER_KFUNC
222
221
// /sys/kernel/debug/tracing/events/syscalls/sys_enter_pread64/format
223
222
TP_SYSCALL_PROG (enter_pread64 ) (struct syscall_comm_enter_ctx * ctx ) {
224
223
int fd = ctx -> fd ;
@@ -236,19 +235,6 @@ TP_SYSCALL_PROG(enter_preadv2) (struct syscall_comm_enter_ctx *ctx) {
236
235
int fd = ctx -> fd ;
237
236
return do_sys_enter_pread (fd , SYSCALL_FUNC_PREADV2 );
238
237
}
239
- #else
240
- KFUNC_PROG (ksys_pread64 , unsigned int fd , char __user * buf , size_t count ,
241
- loff_t pos )
242
- {
243
- return do_sys_enter_pread (fd , SYSCALL_FUNC_PREAD64 );
244
- }
245
-
246
- KFUNC_PROG (do_preadv , unsigned long fd , const struct iovec __user * vec ,
247
- unsigned long vlen , loff_t pos , rwf_t flags )
248
- {
249
- return do_sys_enter_pread (fd , SYSCALL_FUNC_PREADV );
250
- }
251
- #endif /* LINUX_VER_KFUNC */
252
238
#endif /* SUPPORTS_KPROBE_ONLY */
253
239
254
240
static __inline int do_sys_exit_pread (void * ctx , ssize_t bytes_count )
@@ -281,7 +267,6 @@ KRETPROG(do_preadv) (struct pt_regs *ctx) {
281
267
return do_sys_exit_pread ((void * )ctx , bytes_count );
282
268
}
283
269
#else
284
- #ifndef LINUX_VER_KFUNC
285
270
// /sys/kernel/debug/tracing/events/syscalls/sys_exit_pwrite64/format
286
271
TP_SYSCALL_PROG (exit_pread64 ) (struct syscall_comm_exit_ctx * ctx ) {
287
272
return do_sys_exit_pread ((void * )ctx , (ssize_t ) ctx -> ret );
@@ -296,19 +281,6 @@ TP_SYSCALL_PROG(exit_preadv) (struct syscall_comm_exit_ctx *ctx) {
296
281
TP_SYSCALL_PROG (exit_preadv2 ) (struct syscall_comm_exit_ctx * ctx ) {
297
282
return do_sys_exit_pread ((void * )ctx , (ssize_t ) ctx -> ret );
298
283
}
299
- #else
300
- KRETFUNC_PROG (ksys_pread64 , unsigned int fd , char __user * buf , size_t count ,
301
- loff_t pos , ssize_t bytes_count )
302
- {
303
- return do_sys_exit_pread ((void * )ctx , bytes_count );
304
- }
305
-
306
- KRETFUNC_PROG (do_preadv , unsigned long fd , const struct iovec __user * vec ,
307
- unsigned long vlen , loff_t pos , rwf_t flags , ssize_t bytes_count )
308
- {
309
- return do_sys_exit_pread ((void * )ctx , bytes_count );
310
- }
311
- #endif /* LINUX_VER_KFUNC */
312
284
#endif /* SUPPORTS_KPROBE_ONLY */
313
285
314
286
// File Write Event Tracing
@@ -346,7 +318,6 @@ KPROG(do_pwritev) (struct pt_regs *ctx) {
346
318
return do_sys_enter_pwrite (fd , SYSCALL_FUNC_PWRITEV );
347
319
}
348
320
#else
349
- #ifndef LINUX_VER_KFUNC
350
321
// /sys/kernel/debug/tracing/events/syscalls/sys_enter_pwrite64/format
351
322
TP_SYSCALL_PROG (enter_pwrite64 ) (struct syscall_comm_enter_ctx * ctx ) {
352
323
int fd = ctx -> fd ;
@@ -364,20 +335,6 @@ TP_SYSCALL_PROG(enter_pwritev2) (struct syscall_comm_enter_ctx *ctx) {
364
335
int fd = ctx -> fd ;
365
336
return do_sys_enter_pwrite (fd , SYSCALL_FUNC_PWRITEV2 );
366
337
}
367
-
368
- #else
369
- KFUNC_PROG (ksys_pwrite64 , unsigned int fd , const char __user * buf ,
370
- size_t count , loff_t pos )
371
- {
372
- return do_sys_enter_pwrite (fd , SYSCALL_FUNC_PWRITE64 );
373
- }
374
-
375
- KFUNC_PROG (do_pwritev , unsigned long fd , const struct iovec __user * vec ,
376
- unsigned long vlen , loff_t pos , rwf_t flags )
377
- {
378
- return do_sys_enter_pwrite (fd , SYSCALL_FUNC_PWRITEV );
379
- }
380
- #endif /* LINUX_VER_KFUNC */
381
338
#endif /* SUPPORTS_KPROBE_ONLY */
382
339
383
340
// pwrite64()/pwritev()/pwritev2() exit
@@ -411,7 +368,6 @@ KRETPROG(do_pwritev) (struct pt_regs *ctx) {
411
368
return do_sys_exit_pwrite ((void * )ctx , bytes_count );
412
369
}
413
370
#else
414
- #ifndef LINUX_VER_KFUNC
415
371
// /sys/kernel/debug/tracing/events/syscalls/sys_exit_pwrite64/format
416
372
TP_SYSCALL_PROG (exit_pwrite64 ) (struct syscall_comm_exit_ctx * ctx ) {
417
373
return do_sys_exit_pwrite ((void * )ctx , (ssize_t ) ctx -> ret );
@@ -426,20 +382,6 @@ TP_SYSCALL_PROG(exit_pwritev) (struct syscall_comm_exit_ctx *ctx) {
426
382
TP_SYSCALL_PROG (exit_pwritev2 ) (struct syscall_comm_exit_ctx * ctx ) {
427
383
return do_sys_exit_pwrite ((void * )ctx , (ssize_t ) ctx -> ret );
428
384
}
429
-
430
- #else
431
- KRETFUNC_PROG (ksys_pwrite64 , unsigned int fd , const char __user * buf ,
432
- size_t count , loff_t pos , ssize_t bytes_count )
433
- {
434
- return do_sys_exit_pwrite ((void * )ctx , bytes_count );
435
- }
436
-
437
- KRETFUNC_PROG (do_pwritev , unsigned long fd , const struct iovec __user * vec ,
438
- unsigned long vlen , loff_t pos , rwf_t flags , ssize_t bytes_count )
439
- {
440
- return do_sys_exit_pwrite ((void * )ctx , bytes_count );
441
- }
442
- #endif /* LINUX_VER_KFUNC */
443
385
#endif /* SUPPORTS_KPROBE_ONLY */
444
386
445
387
PROGTP (io_event ) (void * ctx ) {
0 commit comments