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 8361240
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions utils/call_stacks_analysis/make_extra.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,10 @@ 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['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']

# libpmem
calls['flush_empty'] = ['flush_empty_nolog']
Expand All @@ -41,6 +38,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 +425,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 8361240

Please sign in to comment.