Skip to content

Commit

Permalink
Fix custom probe
Browse files Browse the repository at this point in the history
  • Loading branch information
erthalion committed Oct 4, 2023
1 parent b751b0f commit 9711b51
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kernel-modules/probe/collector_probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ PROBE_SIGNATURE("sched/", sched_process_fork, sched_process_fork_args) {
* instead, we defer to the appropriate filler.
*/
PROBE_SIGNATURE("sched/", sched_process_exit, sched_process_exit_args) {
ppm_event_code evt_type = PPME_PROCEXIT_1_E;
struct task_struct* task = NULL;
unsigned int flags = 0;

Expand Down Expand Up @@ -220,6 +221,7 @@ PROBE_SIGNATURE("sched/", sched_process_exit, sched_process_exit_args) {
*/
static __always_inline int enter_probe(long id, struct sys_enter_args* ctx) {
const struct syscall_evt_pair* sc_evt = NULL;
ppm_event_code evt_type = PPME_GENERIC_E;
int drop_flags = UF_ALWAYS_DROP;
struct sys_enter_args stack_ctx = {.id = id};
long mapped_id = id;
Expand Down Expand Up @@ -294,6 +296,7 @@ static __always_inline int enter_probe(long id, struct sys_enter_args* ctx) {
*/
static __always_inline int exit_probe(long id, struct sys_exit_args* ctx) {
const struct syscall_evt_pair* sc_evt = NULL;
ppm_event_code evt_type = PPME_GENERIC_X;
int drop_flags = UF_ALWAYS_DROP;
long mapped_id = id;

Expand Down

0 comments on commit 9711b51

Please sign in to comment.