Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 6502

When I use eBPF, can I write some value into the module variable?

$
0
0

For eaxmple:

This is module. There is array for saving irq history.<drivers/###/a.c>

int irq_number[1024];

I add the bpf program into generic_handle_irq function in kernel.<kernel/irq/irqdesc.c>

int generic_handle_irq(unsigned int irq)

When I access the parameter of generic_handle_irq using kprobe bpf,Can I save the irq value into module variable(irq_number)?Is it possible?


Viewing all articles
Browse latest Browse all 6502

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>