Skip to content

Commit

Permalink
common: include new logging functions in call_stacks_analysis
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Gromadzki <tomasz.gromadzki@intel.com>
  • Loading branch information
grom72 committed Mar 21, 2024
1 parent 7361b61 commit 30ee4a7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions utils/call_stacks_analysis/make_extra.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ def dict_extend(dict_, key, values):
def inlines(calls: Calls) -> Calls:
# common
calls['core_init'] = ['util_init', 'core_log_init', 'out_init']
calls['core_fini'] = ['out_fini']
calls['core_fini'] = ['out_fini', 'core_log_fini', 'last_error_msg_fini']
calls['common_init'] = ['core_init', 'util_mmap_init']
calls['common_fini'] = ['util_mmap_fini', 'core_fini']
calls['Last_errormsg_key_alloc'] = ['_Last_errormsg_key_alloc']
calls['_Last_errormsg_key_alloc'] = ['os_once', 'os_tls_key_create']
calls['core_log_va'] = ['core_log_default_function']
calls['core_log_init'] = ['core_log_default_init', 'core_log_set_function']

# libpmem
calls['flush_empty'] = ['flush_empty_nolog']
Expand All @@ -41,6 +41,10 @@ def inlines(calls: Calls) -> Calls:

return calls

def function_pointers(calls: Calls) -> Calls:
calls['core_log_va'] = ['core_log_default_function']
return calls

def pmem_function_pointers(calls: Calls) -> Calls:
calls['pmem_drain'] = ['fence_empty', 'memory_barrier']

Expand Down Expand Up @@ -424,6 +428,7 @@ def get_callees(calls):

def main():
extra_calls = inlines({})
extra_calls = function_pointers(extra_calls)
extra_calls = pmem_function_pointers(extra_calls)
extra_calls = pmemobj_function_pointers(extra_calls)
with open("extra_calls.json", "w") as outfile:
Expand Down

0 comments on commit 30ee4a7

Please sign in to comment.