-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tp: handle tracepoint argument datatypes with symbolic array size
Some kernels expose datatypes for tracepoint elements like this: field:char oldcomm[TASK_COMM_LEN]; offset:12; size:16; signed:1; Since the type compiler and CTF type parser) cannot resolve the value of TASK_COMM_LEN, we synthesize the type ourselves based on the base type (char in this case) and the argument size (16 in this case). Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com> Reviewed-by: Eugene Loh <eugene.loh@oracle.com>
- Loading branch information
Showing
1 changed file
with
34 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters