Commit e93d1fa
committed
Let print_bpfmap_id be non-zero
By adding 1 to bpf_get_smp_processor_id(), we can safely rely on
"if event.PrintBpfmapId > 0" to decide whether there is bpfmap data to
read.
Signed-off-by: gray <[email protected]>1 parent 5077b07 commit e93d1fa
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
370 | | - | |
| 370 | + | |
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
461 | | - | |
| 461 | + | |
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
| |||
0 commit comments