Skip to content

Commit ca86e94

Browse files
anakryikoacmel
authored andcommitted
pahole: use btf.h directly from libbpf
Now that libbpf is a submodule, we don't need to copy/paste btf.h header with BTF type definitions. This is a first step in migrating parts of libbtf, btf_encoder and btf_loader to use libbpf and starting to use btf__dedup(). Signed-off-by: Andrii Nakryiko <andriin@fb.com> Cc: Alexei Starovoitov <ast@fb.com> Cc: Martin KaFai Lau <kafai@fb.com> Cc: Yonghong Song <yhs@fb.com> Cc: dwarves@vger.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 21507cd commit ca86e94

4 files changed

Lines changed: 3 additions & 143 deletions

File tree

btf.h

Lines changed: 0 additions & 140 deletions
This file was deleted.

btf_encoder.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#include "dwarves.h"
1313
#include "libbtf.h"
14-
#include "btf.h"
14+
#include "lib/bpf/include/uapi/linux/btf.h"
1515
#include "hash.h"
1616
#include "elf_symtab.h"
1717
#include "btf_encoder.h"

btf_loader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include <gelf.h>
2626

2727
#include "libbtf.h"
28-
#include "btf.h"
28+
#include "lib/bpf/include/uapi/linux/btf.h"
2929
#include "dutil.h"
3030
#include "dwarves.h"
3131

libbtf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include <stdarg.h>
1717

1818
#include "libbtf.h"
19-
#include "btf.h"
19+
#include "lib/bpf/include/uapi/linux/btf.h"
2020
#include "dutil.h"
2121
#include "gobuffer.h"
2222
#include "dwarves.h"

0 commit comments

Comments
 (0)