Re: Are BPF programs preemptible?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



‫בתאריך יום ב׳, 23 בינו׳ 2023 ב-22:06 מאת ‪Martin KaFai Lau‬‏
<‪martin.lau@xxxxxxxxx‬‏>:‬
>
> On 1/23/23 9:32 AM, Yaniv Agman wrote:
> >>> interrupted the first one. But even then, I will need to find a way to
> >>> know if my program currently interrupts the run of another program -
> >>> is there a way to do that?
> May be a percpu atomic counter to see if the bpf prog has been re-entered on the
> same cpu.

Not sure I understand how this will help. If I want to save local
program data on a percpu map and I see that the counter is bigger then
zero, should I ignore the event?




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux