]>
Commit | Line | Data |
---|---|---|
3db9c843 | 1 | // Setup routines for creating fully populated DWFLs. Used in pass 2 and 3. |
ef36f781 | 2 | // Copyright (C) 2009-2014 Red Hat, Inc. |
3db9c843 MW |
3 | // |
4 | // This file is part of systemtap, and is free software. You can | |
5 | // redistribute it and/or modify it under the terms of the GNU General | |
6 | // Public License (GPL); either version 2, or (at your option) any | |
7 | // later version. | |
8 | // | |
9 | #ifndef SETUP_DWFLPP_H | |
10 | #define SETUP_DWFLPP_H | |
11 | ||
68678008 CM |
12 | #ifndef NT_GNU_BUILD_ID |
13 | #define NT_GNU_BUILD_ID 3 | |
14 | #endif | |
15 | ||
3db9c843 MW |
16 | #include "config.h" |
17 | #include "session.h" | |
18 | ||
19 | #include <set> | |
20 | #include <string> | |
5f8ca04f | 21 | #include <vector> |
3db9c843 MW |
22 | |
23 | extern "C" { | |
24 | #include <elfutils/libdwfl.h> | |
25 | } | |
26 | ||
ccf2c922 | 27 | Dwfl *setup_dwfl_kernel(const std::string &name, |
68983551 MW |
28 | unsigned *found, |
29 | systemtap_session &s); | |
ccf2c922 | 30 | Dwfl *setup_dwfl_kernel(const std::set<std::string> &names, |
68983551 MW |
31 | unsigned *found, |
32 | systemtap_session &s); | |
33 | ||
ccf2c922 JL |
34 | Dwfl *setup_dwfl_user(const std::string &name); |
35 | Dwfl *setup_dwfl_user(std::vector<std::string>::const_iterator &begin, | |
68983551 | 36 | const std::vector<std::string>::const_iterator &end, |
e1e8b44e | 37 | bool all_needed, systemtap_session &s); |
5f8ca04f MW |
38 | |
39 | // user-space files must be full paths and not end in .ko | |
40 | bool is_user_module(const std::string &m); | |
41 | ||
e1e8b44e CM |
42 | int internal_find_debuginfo (Dwfl_Module *mod, |
43 | void **userdata __attribute__ ((unused)), | |
44 | const char *modname __attribute__ ((unused)), | |
45 | GElf_Addr base __attribute__ ((unused)), | |
46 | const char *file_name, | |
47 | const char *debuglink_file, | |
48 | GElf_Word debuglink_crc, | |
49 | char **debuginfo_file_name); | |
50 | int execute_abrt_action_install_debuginfo_to_abrt_cache (std::string hex); | |
ecd129af CM |
51 | std::string get_kernel_build_id (systemtap_session &s); |
52 | int download_kernel_debuginfo (systemtap_session &s, std::string hex); | |
05fb3e0c | 53 | void debuginfo_path_insert_sysroot(std::string sysroot); |
e1e8b44e | 54 | |
3db9c843 | 55 | #endif |