1
0

proj: Allow exclutions of functions

This commit is contained in:
2025-04-14 23:51:09 +02:00
parent cd8384f4fb
commit 83ddd409a4
3 changed files with 15 additions and 3 deletions

View File

@@ -24,6 +24,7 @@ def main() -> None:
subprocess.run(extra, env={
'LD_PRELOAD': os.getcwd() + '/../../intercept/intercept.so',
'INTERCEPT': 'unix:' + socket_name,
'INTERCEPT_FUNCTIONS': ','.join(['*', '-malloc', '-calloc', '-realloc', '-reallocarray', '-free']),
})

View File

@@ -35,6 +35,7 @@ def main() -> None:
subprocess.run(extra, stdin=stdin, env={
'LD_PRELOAD': os.getcwd() + '/../../intercept/intercept.so',
'INTERCEPT': 'unix:' + socket_name,
'INTERCEPT_FUNCTIONS': ','.join(['*', '-malloc', '-calloc', '-realloc', '-reallocarray', '-free']),
})
for i, name in enumerate(ctx['call_sequence']):
errors = [r[1] for r in ctx['results'] if r[0] == i]