Skip to content

Commit

Permalink
common: temporar fix for improper inline functions parsing
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 27, 2024
1 parent 7e879fe commit dd0b61b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions utils/call_stacks_analysis/make_extra.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,14 +424,17 @@ def get_callees(calls):
callees.extend(v)
return list(set(callees))

# XXX
# The way how inlines() function is used shall be changed according to:
# https://github.com/pmem/pmdk/issues/6070
def main():
extra_calls = inlines({})
extra_calls = core_function_pointers(extra_calls)
extra_calls = core_function_pointers({})
extra_calls = pmem_function_pointers(extra_calls)
extra_calls = pmemobj_function_pointers(extra_calls)
with open("extra_calls.json", "w") as outfile:
json.dump(extra_calls, outfile, indent = 4)

extra_calls = inlines(extra_calls)
# All functions accessed via function pointers have to be provided
# on top of regular API calls for cflow to process their call stacks.
extra_entry_points = get_callees(extra_calls)
Expand Down

0 comments on commit dd0b61b

Please sign in to comment.