On Wed, Dec 06, 2017 at 02:07:44PM -0800, Yonghong Song wrote: > Commit e87c6bc3852b ("bpf: permit multiple bpf attachments > for a single perf event") added support to attach multiple > bpf programs to a single perf event. Given a perf event > (kprobe, uprobe, or kernel tracepoint), the perf ioctl interface > is used to query bpf programs attached to the same trace event. > > There already exists a BPF_PROG_QUERY command for introspection > currently used by cgroup+bpf. We did have an implementation for > querying tracepoint+bpf through the same interface. However, it > looks cleaner to use ioctl() style of api here, since attaching > bpf prog to tracepoint/kuprobe is also done via ioctl. > > Patch #1 had the core implementation and patch #2 added > a test case in tools bpf selftests suite. > > Changelogs: > v2 -> v3: > - Change uapi structure perf_event_query_bpf to be more > clearer based on Peter's suggestion, and adjust > other codes accordingly.
Peter, could you please ack the patch 1 ? We'd like to route the set via bpf-next -> net-next trees.