Skip to content

Commit

Permalink
Fix designated initializers
Browse files Browse the repository at this point in the history
  • Loading branch information
danobi authored and yonghong-song committed Jul 12, 2019
1 parent 50d0602 commit d413c95
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/cpp/pyperf/PyPerfUtil.cc
Expand Up @@ -142,6 +142,7 @@ bool getAddrOfPythonBinary(const std::string& path, PidData& data) {

struct bcc_symbol_option option = {.use_debug_file = 0,
.check_debug_file_crc = 0,
.lazy_symbolize = 0,
.use_symbol_type = (1 << STT_OBJECT)};

bcc_elf_foreach_sym(path.c_str(), &getAddrOfPythonBinaryCallback, &option,
Expand Down
2 changes: 2 additions & 0 deletions src/cc/api/BPFTable.cc
Expand Up @@ -257,6 +257,7 @@ BPFStackTable::BPFStackTable(const TableDesc& desc, bool use_debug_file,

symbol_option_ = {.use_debug_file = use_debug_file,
.check_debug_file_crc = check_debug_file_crc,
.lazy_symbolize = 0,
.use_symbol_type = (1 << STT_FUNC) | (1 << STT_GNU_IFUNC)};
}

Expand Down Expand Up @@ -327,6 +328,7 @@ BPFStackBuildIdTable::BPFStackBuildIdTable(const TableDesc& desc, bool use_debug

symbol_option_ = {.use_debug_file = use_debug_file,
.check_debug_file_crc = check_debug_file_crc,
.lazy_symbolize = 0,
.use_symbol_type = (1 << STT_FUNC) | (1 << STT_GNU_IFUNC)};
}

Expand Down
1 change: 1 addition & 0 deletions src/cc/bcc_syms.cc
Expand Up @@ -438,6 +438,7 @@ bool BuildSyms::Module::load_sym_table()
symbol_option_ = {
.use_debug_file = 1,
.check_debug_file_crc = 1,
.lazy_symbolize = 0,
.use_symbol_type = (1 << STT_FUNC) | (1 << STT_GNU_IFUNC)
};

Expand Down
1 change: 1 addition & 0 deletions src/cc/usdt/usdt_args.cc
Expand Up @@ -39,6 +39,7 @@ bool Argument::get_global_address(uint64_t *address, const std::string &binpath,
static struct bcc_symbol_option default_option = {
.use_debug_file = 1,
.check_debug_file_crc = 1,
.lazy_symbolize = 0,
.use_symbol_type = BCC_SYM_ALL_TYPES
};
return ProcSyms(*pid, &default_option)
Expand Down
1 change: 1 addition & 0 deletions src/lua/bcc/libbcc.lua
Expand Up @@ -116,6 +116,7 @@ struct bcc_symbol {
struct bcc_symbol_option {
int use_debug_file;
int check_debug_file_crc;
int lazy_symbolize;
uint32_t use_symbol_type;
};

Expand Down

0 comments on commit d413c95

Please sign in to comment.