[PATCH] D69759: [RFC][BPF] Add preserve_access_index attribute to record definition

2019-11-02 Thread Yonghong Song via Phabricator via cfe-commits
yonghong-song added a comment. Discussed with Martin last Friday that it would be easier for CO-RE programming if we can annotate the structure itself. This is the RFC patch. Please let me whether this sounds a reasonable approach. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST

[PATCH] D69759: [RFC][BPF] Add preserve_access_index attribute to record definition

2019-11-02 Thread Yonghong Song via Phabricator via cfe-commits
yonghong-song created this revision. yonghong-song added reviewers: ast, anakryiko. Herald added subscribers: cfe-commits, arphaman. Herald added a project: clang. This patch introduced a new bpf specific attribute which can be added to struct or union definition. For example, struct s { ... }