Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleanup!: remove ppm_syscall.h file from drivers #1356

Merged
merged 1 commit into from
Sep 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.