libabigail
abg-btf-reader.h
Go to the documentation of this file.
1 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2 // -*- Mode: C++ -*-
3 //
4 // Copyright (C) 2022-2023 Red Hat, Inc.
5 //
6 // Author: Dodji Seketeli
7 
8 /// @file
9 ///
10 /// This file contains the declarations of the front-end to analyze the
11 /// BTF information contained in an ELF file.
12 
13 #ifndef __ABG_BTF_READER_H__
14 #define __ABG_BTF_READER_H__
15 
16 #include "abg-elf-based-reader.h"
17 
18 namespace abigail
19 {
20 
21 namespace btf
22 {
23 
24 elf_based_reader_sptr
25 create_reader(const std::string& elf_path,
26  const vector<char**>& debug_info_root_paths,
27  environment& env,
28  bool load_all_types = false,
29  bool linux_kernel_mode = false);
30 
31 }//end namespace btf
32 }//end namespace abigail
33 
34 #endif //__ABG_BTF_READER_H__
elf_based_reader_sptr create_reader(const std::string &elf_path, const vector< char ** > &debug_info_root_paths, environment &env)
Create and return a new read context to process CTF information from a given ELF file.
This file contains the declarations for an elf-based. DWARF and CTF readers can inherit this one.
Toplevel namespace for libabigail.