Commit 8274d2d
committed
latency-test, latency-histogram: warn when rtapi_app lacks RT privileges
Without 'sudo make setuid' (or 'sudo make setcap') rtapi_app runs
unprivileged: no SCHED_FIFO, no locked memory, so latency readings are
wildly inflated and easy to mistake for a code regression. Warn, for a
non-root user, when rtapi_app is neither setuid root nor carries the
cap_sys_nice capability.
Closes #40441 parent 4415063 commit 8274d2d
2 files changed
Lines changed: 42 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
114 | 134 | | |
115 | 135 | | |
116 | 136 | | |
| |||
944 | 964 | | |
945 | 965 | | |
946 | 966 | | |
| 967 | + | |
947 | 968 | | |
948 | 969 | | |
949 | 970 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
19 | 38 | | |
20 | 39 | | |
21 | 40 | | |
| |||
170 | 189 | | |
171 | 190 | | |
172 | 191 | | |
| 192 | + | |
| 193 | + | |
173 | 194 | | |
0 commit comments