libbpf: Fix usdt_cookie being cast to 32 bits
authorPu Lehui <pulehui@huawei.com>
Tue, 19 Apr 2022 14:52:37 +0000 (22:52 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 20 Apr 2022 04:59:35 +0000 (21:59 -0700)
commit5af25a410acb8d34acb11024d752f0ea3491decf
treea25eef1a7a78ab9ce10fe2108f63719e03d0dbfa
parentdcf456c9a095a6e71f53d6f6f004133ee851ee70
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
tools/lib/bpf/libbpf.c
tools/lib/bpf/libbpf_internal.h
tools/lib/bpf/usdt.c