mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-02 18:17:50 -04:00
libbpf: Fix usdt_cookie being cast to 32 bits
The usdt_cookie is defined as __u64, which should not be used as a long type because it will be cast to 32 bits in 32-bit platforms. Signed-off-by: Pu Lehui <pulehui@huawei.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20220419145238.482134-2-pulehui@huawei.com
This commit is contained in:
committed by
Andrii Nakryiko
parent
dcf456c9a0
commit
5af25a410a
@@ -10993,7 +10993,7 @@ struct bpf_link *bpf_program__attach_usdt(const struct bpf_program *prog,
|
||||
char resolved_path[512];
|
||||
struct bpf_object *obj = prog->obj;
|
||||
struct bpf_link *link;
|
||||
long usdt_cookie;
|
||||
__u64 usdt_cookie;
|
||||
int err;
|
||||
|
||||
if (!OPTS_VALID(opts, bpf_uprobe_opts))
|
||||
|
||||
Reference in New Issue
Block a user