Commit ce58e96
tracing/user_events: Limit global user_event count
Operators want to be able to ensure enough tracepoints exist on the
system for kernel components as well as for user components. Since there
are only up to 64K events, by default allow up to half to be used by
user events.
Add a kernel sysctl parameter (kernel.user_events_max) to set a global
limit that is honored among all groups on the system. This ensures hard
limits can be setup to prevent user processes from consuming all event
IDs on the system.
Link: https://lkml.kernel.org/r/20230328235219.203-12-beaub@linux.microsoft.com
Signed-off-by: Beau Belgrave <beaub@linux.microsoft.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>1 parent f9cce23 commit ce58e96
1 file changed
Lines changed: 47 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
64 | 71 | | |
65 | 72 | | |
66 | 73 | | |
| |||
1241 | 1248 | | |
1242 | 1249 | | |
1243 | 1250 | | |
| 1251 | + | |
| 1252 | + | |
1244 | 1253 | | |
1245 | 1254 | | |
1246 | 1255 | | |
| |||
1257 | 1266 | | |
1258 | 1267 | | |
1259 | 1268 | | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
1260 | 1274 | | |
1261 | 1275 | | |
1262 | 1276 | | |
| |||
1744 | 1758 | | |
1745 | 1759 | | |
1746 | 1760 | | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
1747 | 1766 | | |
1748 | 1767 | | |
1749 | 1768 | | |
| |||
1755 | 1774 | | |
1756 | 1775 | | |
1757 | 1776 | | |
| 1777 | + | |
1758 | 1778 | | |
1759 | 1779 | | |
1760 | 1780 | | |
| |||
2390 | 2410 | | |
2391 | 2411 | | |
2392 | 2412 | | |
| 2413 | + | |
| 2414 | + | |
| 2415 | + | |
| 2416 | + | |
| 2417 | + | |
| 2418 | + | |
| 2419 | + | |
| 2420 | + | |
| 2421 | + | |
| 2422 | + | |
| 2423 | + | |
| 2424 | + | |
| 2425 | + | |
| 2426 | + | |
| 2427 | + | |
| 2428 | + | |
| 2429 | + | |
| 2430 | + | |
| 2431 | + | |
| 2432 | + | |
| 2433 | + | |
| 2434 | + | |
| 2435 | + | |
| 2436 | + | |
| 2437 | + | |
2393 | 2438 | | |
2394 | 2439 | | |
2395 | 2440 | | |
| |||
2419 | 2464 | | |
2420 | 2465 | | |
2421 | 2466 | | |
| 2467 | + | |
| 2468 | + | |
2422 | 2469 | | |
2423 | 2470 | | |
2424 | 2471 | | |
| |||
0 commit comments