From 4082fe33cdac9ada5bbad2c467b351492dce6550 Mon Sep 17 00:00:00 2001 From: Anatoly Korniltsev Date: Mon, 2 Nov 2020 00:46:54 +0300 Subject: [PATCH] [qira_program] fix strace parsing (mmap files opened with openat syscall) --- middleware/qira_program.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware/qira_program.py b/middleware/qira_program.py index 293f6414a7..4f64ec4ca3 100644 --- a/middleware/qira_program.py +++ b/middleware/qira_program.py @@ -465,7 +465,7 @@ def read_strace_file(self): try: return_code = int(sc.split(") = ")[1].split(" ")[0], 0) fxn = sc.split("(")[0] - if fxn == "open" and return_code != -1: + if (fxn == "open" or fxn == "openat") and return_code != -1: firststr = sc.split('\"')[1] files[return_code] = firststr elif fxn[0:4] == "mmap":