Skip to content

Commit 2177813

Browse files
authored
refactor: Remove extended proc event handler (#8161)
1 parent 7c75f67 commit 2177813

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

agent/src/ebpf/user/extended/extended.c

-7
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,6 @@ int __attribute__ ((weak)) extended_maps_set(struct bpf_tracer *tracer)
3939
void __attribute__ ((weak)) extended_prog_jump_tables(struct bpf_tracer *tracer) {
4040
}
4141

42-
int __attribute__ ((weak)) extended_proc_event_handler(int pid,
43-
const char *name,
44-
enum proc_act_type type)
45-
{
46-
return 0;
47-
}
48-
4942
int __attribute__ ((weak)) collect_extended_uprobe_syms_from_procfs(struct tracer_probes_conf *conf)
5043
{
5144
return 0;

agent/src/ebpf/user/extended/extended.h

-15
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,6 @@ int extended_reader_create(struct bpf_tracer *tracer);
3333
int extended_maps_set(struct bpf_tracer *tracer);
3434
void extended_prog_jump_tables(struct bpf_tracer *tracer);
3535

36-
/**
37-
* @brief **extended_proc_event_handler()** extend the handling of process
38-
* execution and exit events.
39-
* @param pid Process ID
40-
* @param name Process name
41-
* @param PROC_EXEC or PROC_EXIT
42-
* @return 0 on success, non-zero on error
43-
*
44-
* For example, you might want to notify an eBPF program of these events
45-
* so that eBPF can perform the corresponding handling. Extend the handling
46-
* based on your own requirements.
47-
*/
48-
int extended_proc_event_handler(int pid, const char *name,
49-
enum proc_act_type type);
50-
5136
/**
5237
* @brief **collect_extended_uprobe_syms_from_procfs()** extend the handling of uprobe
5338
* @param conf Tracer probes config

0 commit comments

Comments
 (0)