From eb29943539adb48d56cce64d9f8922167a36c290 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Sun, 3 Dec 2023 00:42:51 -0800 Subject: [PATCH] syscalls/__init__: log which syscall is made this is very handy when looking at logs, since you no longer have to manually translate syscall numbers to syscall names. --- src/openpower/syscalls/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/openpower/syscalls/__init__.py b/src/openpower/syscalls/__init__.py index 88006fab..1277d19d 100644 --- a/src/openpower/syscalls/__init__.py +++ b/src/openpower/syscalls/__init__.py @@ -3,7 +3,7 @@ import errno import inspect import json import pathlib - +from openpower.util import log, LogType def architecture(arch, bits=0): @@ -189,6 +189,9 @@ class Dispatcher: identifier = str(identifier) entry = self.__guest[identifier][1][0] + log("syscalls.Dispatcher[%s] (%s)" % (identifier, entry), + kind=LogType.InstrInOuts) + return getattr(self, entry) def __getattr__(self, entry): -- 2.30.2