Skip to content

Commit

Permalink
cleanup!: remove support for kernel versions <= 2.6.20
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Terzolo <[email protected]>
  • Loading branch information
Andreagit97 authored and poiana committed Sep 25, 2023
1 parent 2cd2c1a commit 5c27cc1
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 249 deletions.
1 change: 0 additions & 1 deletion driver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ set(DRIVER_SOURCES
ppm_fillers.h
ppm_flag_helpers.h
ppm_ringbuffer.h
ppm_syscall.h
syscall_table.c
syscall_table32.c
syscall_table64.c
Expand Down
7 changes: 0 additions & 7 deletions driver/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,7 @@ or GPL2.txt for full copies of the license.

#include <linux/version.h>
#include <trace/syscall.h>

#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 20)
#include <linux/kobject.h>
#include <trace/sched.h>
#include "ppm_syscall.h"
#else
#include <asm/syscall.h>
#endif /* LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 20) */

#if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 37))
#include <asm/atomic.h>
Expand Down
3 changes: 0 additions & 3 deletions driver/ppm.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,6 @@ extern void ppm_syscall_get_arguments(struct task_struct *task, struct pt_regs *
// used in main.c, ppm_events.c and ppm_fillers.c so include it just once here
#ifdef __KERNEL__
#include <linux/version.h>
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 20)
#include "ppm_syscall.h"
#endif
#endif

#endif /* PPM_H_ */
5 changes: 0 additions & 5 deletions driver/ppm_events.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,7 @@ or GPL2.txt for full copies of the license.
#include <linux/kernel.h>
#include <asm/mman.h>
#include <linux/in.h>
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 20)
#include <linux/mount.h>
#include "ppm_syscall.h"
#else
#include <asm/syscall.h>
#endif
#else // UDIG
#define _GNU_SOURCE
#include <inttypes.h>
Expand Down
4 changes: 0 additions & 4 deletions driver/ppm_fillers.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,7 @@ or GPL2.txt for full copies of the license.
#ifdef CONFIG_CGROUPS
#include <linux/cgroup.h>
#endif
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 20)
#include "ppm_syscall.h"
#else
#include <asm/syscall.h>
#endif
#else /* UDIG */
#define _GNU_SOURCE
#include <inttypes.h>
Expand Down
229 changes: 0 additions & 229 deletions driver/ppm_syscall.h

This file was deleted.

0 comments on commit 5c27cc1

Please sign in to comment.