Commit 160a504
committed
ftrace: Improve parsing for string fields
With this commit:
* The code now accepts string fields with an indentifier, instead of a
literal, for array size. This is important since commit
3087c61ed2c4("tools/testing/selftests/bpf: replace open-coded 16 with
TASK_COMM_LEN"), included in kernel 5.17, which exposes TASK_COMM_LEN
in the format.
* The code now accepts fields whose name include a digit (because that's
a valid C identifier.).
Tested: unit tests
Bug: 227677227
Change-Id: I6f0074607f6ce41880a235a00ee7a4fbc53a5bb91 parent 71cbb3f commit 160a504
File tree
2 files changed
+19
-6
lines changed- src/traced/probes/ftrace
2 files changed
+19
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
264 | 268 | | |
265 | 269 | | |
266 | 270 | | |
267 | | - | |
| 271 | + | |
| 272 | + | |
268 | 273 | | |
269 | 274 | | |
270 | 275 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
322 | 330 | | |
323 | 331 | | |
324 | 332 | | |
| |||
0 commit comments