Skip to content

Comments

perf: stop using deprecated bpf APIs#1908

Open
tsipa wants to merge 3 commits intobpf-nextfrom
series/596933=>bpf-next
Open

perf: stop using deprecated bpf APIs#1908
tsipa wants to merge 3 commits intobpf-nextfrom
series/596933=>bpf-next

Conversation

@tsipa
Copy link
Owner

@tsipa tsipa commented Feb 13, 2022

Pull request for series with
subject: perf: stop using deprecated bpf APIs
version: 6
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=613742

@tsipa
Copy link
Owner Author

tsipa commented Feb 13, 2022

Master branch: 9c3de61
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=613742
version: 6

@tsipa
Copy link
Owner Author

tsipa commented Feb 15, 2022

Master branch: edc21dc
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=613742
version: 6

@tsipa tsipa force-pushed the series/596933=>bpf-next branch from 359e36a to 8a160d3 Compare February 15, 2022 17:26
@tsipa
Copy link
Owner Author

tsipa commented Feb 15, 2022

Master branch: d2b94f3
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=613742
version: 6

@tsipa tsipa force-pushed the series/596933=>bpf-next branch from 8a160d3 to 863d49f Compare February 15, 2022 18:08
Nobody and others added 3 commits February 15, 2022 10:12
bpf_load_program() API is deprecated, remove perf's usage of the
deprecated function. Add a __weak function declaration for libbpf
version compatibility.

Signed-off-by: Christy Lee <christylee@fb.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Libbpf has deprecated the ability to keep track of object list inside
libbpf, it now requires applications to track usage multiple bpf
objects directly. Remove usage of bpf_object__next() API and hoist the
tracking logic to perf.

Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Christy Lee <christylee@fb.com>
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
@tsipa
Copy link
Owner Author

tsipa commented Feb 15, 2022

Master branch: 8cbf062
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=613742
version: 6

@tsipa tsipa force-pushed the series/596933=>bpf-next branch from 863d49f to d86a77a Compare February 15, 2022 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants