Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix another btf_type_tag issue with llvm 15
Commit 57ca51b ("Fix btf_type_tag issue with llvm 15") fixed an issue where "btf_type_tag(rcu)" should be replaced with "__attribute__((btf_type_tag(\"rcu\")))". I audited some other bcc tools and found another similar failure pattern during processing funciton arguments. Three tools are dirtop.py, fileslower.py and filetop.py. The failure pattern for dirtop.py looks like: /virtual/main.c:79:72: error: expected ')' struct file *file = (struct file *)ctx->di; char __user *buf = (char btf_type_tag(user)*)ctx->si; size_t count = (size_t)ctx->dx; Again, the "btf_type_tag(user)" should be replaced with "__attribute__((btf_type_tag(\"user\")))". This patch fixed this issue. Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
- Loading branch information