Skip to content

Commit

Permalink
kernel: Warn if no common syscall prefixes are found
Browse files Browse the repository at this point in the history
  • Loading branch information
mebeim committed May 27, 2024
1 parent 41c4567 commit 9a80684
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/systrack/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,10 @@ def __extract_syscalls(self) -> List[Syscall]:
# Find common syscall symbol prefixes (e.g. "__x64_sys_") in order to be
# able to strip them later to obtain the actual syscall name
prefixes = common_syscall_symbol_prefixes(symbol_names, 20)
logging.info('Common syscall symbol prefixes: %s', ', '.join(prefixes))
if prefixes:
logging.info('Common syscall symbol prefixes: %s', ', '.join(prefixes))
else:
logging.warn('No common syscall symbol prefixes found (weird!)')

syscalls = []
n_skipped = 0
Expand Down

0 comments on commit 9a80684

Please sign in to comment.