From: Jacob Lifshay Date: Sun, 3 Dec 2023 08:42:51 +0000 (-0800) Subject: syscalls/__init__: log which syscall is made X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eb29943539adb48d56cce64d9f8922167a36c290;p=openpower-isa.git 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. --- 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):