btf.c (22dc4a0f5ed11b6dc8fd73a0892fa0ea1a4c3cdf) | btf.c (290248a5b7d829871b3ea3c62578613a580a1744) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* Copyright (c) 2018 Facebook */ 3 4#include <uapi/linux/btf.h> 5#include <uapi/linux/bpf.h> 6#include <uapi/linux/bpf_perf_event.h> 7#include <uapi/linux/types.h> 8#include <linux/seq_file.h> --- 5724 unchanged lines hidden (view full) --- 5733 return fd; 5734} 5735 5736u32 btf_obj_id(const struct btf *btf) 5737{ 5738 return btf->id; 5739} 5740 | 1/* SPDX-License-Identifier: GPL-2.0 */ 2/* Copyright (c) 2018 Facebook */ 3 4#include <uapi/linux/btf.h> 5#include <uapi/linux/bpf.h> 6#include <uapi/linux/bpf_perf_event.h> 7#include <uapi/linux/types.h> 8#include <linux/seq_file.h> --- 5724 unchanged lines hidden (view full) --- 5733 return fd; 5734} 5735 5736u32 btf_obj_id(const struct btf *btf) 5737{ 5738 return btf->id; 5739} 5740 |
5741bool btf_is_kernel(const struct btf *btf) 5742{ 5743 return btf->kernel_btf; 5744} 5745 |
|
5741static int btf_id_cmp_func(const void *a, const void *b) 5742{ 5743 const int *pa = a, *pb = b; 5744 5745 return *pa - *pb; 5746} 5747 5748bool btf_id_set_contains(const struct btf_id_set *set, u32 id) --- 126 unchanged lines hidden --- | 5746static int btf_id_cmp_func(const void *a, const void *b) 5747{ 5748 const int *pa = a, *pb = b; 5749 5750 return *pa - *pb; 5751} 5752 5753bool btf_id_set_contains(const struct btf_id_set *set, u32 id) --- 126 unchanged lines hidden --- |