• Teng Qin's avatar
    Use bcc_symbol_option in bcc_resolve_symname · aff6ce70
    Teng Qin authored
    This commit makes `bcc_resolve_symname` to take an `bcc_symbol_option`
    parameter, and pass it to underlying calls to control symboling behavior.
    When `NULL` is passed, it will fallback to default which is current
    behavior that uses debug file, verify debug file CRC, and check all
    types of symbols.
    
    This commit also removes the unneccesary intermediate
    `bcc_find_symbol_addr`.
    
    Added documentation for usage of the API, updated most call sites to use
    default with `NULL`, and fixed some memory leaks at call sites.
    aff6ce70
usdt_args.cc 9.67 KB