Commit 7e7a703
pkg/sensors: reduce socktrack map memory footprint
Resize the socktrack_map if needed to save memory.
Prevent ~2.8MB of unnecessary per-policy memory allocation when socktrack_map is unused.
Signed-off-by: Kyle Dong <[email protected]>1 parent e5a23da commit 7e7a703
File tree
4 files changed
+43
-1
lines changed- bpf/process/types
- pkg
- selectors
- sensors/tracing
4 files changed
+43
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2052 | 2052 | | |
2053 | 2053 | | |
2054 | 2054 | | |
2055 | | - | |
| 2055 | + | |
2056 | 2056 | | |
2057 | 2057 | | |
2058 | 2058 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1682 | 1682 | | |
1683 | 1683 | | |
1684 | 1684 | | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
1685 | 1712 | | |
1686 | 1713 | | |
1687 | 1714 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
322 | 325 | | |
323 | 326 | | |
324 | 327 | | |
| |||
382 | 385 | | |
383 | 386 | | |
384 | 387 | | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
385 | 391 | | |
386 | 392 | | |
387 | 393 | | |
| |||
574 | 580 | | |
575 | 581 | | |
576 | 582 | | |
| 583 | + | |
577 | 584 | | |
578 | 585 | | |
579 | 586 | | |
| |||
584 | 591 | | |
585 | 592 | | |
586 | 593 | | |
| 594 | + | |
587 | 595 | | |
588 | 596 | | |
589 | 597 | | |
| |||
1041 | 1049 | | |
1042 | 1050 | | |
1043 | 1051 | | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
1044 | 1055 | | |
1045 | 1056 | | |
1046 | 1057 | | |
| |||
1112 | 1123 | | |
1113 | 1124 | | |
1114 | 1125 | | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
1115 | 1129 | | |
1116 | 1130 | | |
1117 | 1131 | | |
| |||
0 commit comments