-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
k(ret)func and iter are btf-based tracing, which can detect whether dereferencing is safe through btf, so dereferencing does not need to call the helper function bpf_probe_read. This patch mainly modifies the semantic and codegen modules semantic: - Handle the ctx of iter, mark is_btftype as true - Handle the retval of kretfunc, mark is_btftype as true - When dealing with ArrayAccess, Unop, FieldAccess, inherit is_btftype attribute codegen: - If it is a string type, use CREATE_MEMCPY directly to load the data - For other types, load data through CreateDatastructElemLoad instead of CreateProbeRead Signed-off-by: Shuyi Cheng <chengshuyi@linux.alibaba.com>
- Loading branch information
1 parent
31d7a35
commit c2c3ab9
Showing
3 changed files
with
28 additions
and
4 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
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
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