diff --git a/linux-ramdump-parser-v2/ramdump.py b/linux-ramdump-parser-v2/ramdump.py index fe63041faff551f2a680acb85c105955d816731f..b0d4ecf33aeaff322f104b6137125a72391b8994 100755 --- a/linux-ramdump-parser-v2/ramdump.py +++ b/linux-ramdump-parser-v2/ramdump.py @@ -1275,6 +1275,11 @@ class RamDump(): s = self.read_string(addr_or_name, '<?', virtual, cpu) return s[0] if s is not None else None + def read_s64(self, addr_or_name, virtual=True, cpu=None): + """returns a value guaranteed to be 64 bits""" + s = self.read_string(addr_or_name, '<q', virtual, cpu) + return s[0] if s is not None else None + def read_u64(self, addr_or_name, virtual=True, cpu=None): """returns a value guaranteed to be 64 bits""" s = self.read_string(addr_or_name, '<Q', virtual, cpu)