Skip to content

Commit

Permalink
Rename variables, reduce message size
Browse files Browse the repository at this point in the history
  • Loading branch information
berkayurun authored and lukasauer committed Apr 17, 2023
1 parent 31dbc66 commit 7374560
Show file tree
Hide file tree
Showing 27 changed files with 714 additions and 873 deletions.
14 changes: 7 additions & 7 deletions control_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 17 additions & 23 deletions control_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5,53 +5,47 @@ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Map

DESCRIPTOR: _descriptor.FileDescriptor

class Config(_message.Message):
__slots__ = ["end_list", "exists_end", "exists_memory_dump", "exists_ring_buffer", "exists_start", "exists_tb_exec_list", "exists_tb_info", "max_duration", "mem_info", "memorydump", "num_faults", "num_memregions", "start_address", "start_counter", "tb_exec_list", "tb_exec_list_ring_buffer", "tb_info"]
END_LIST_FIELD_NUMBER: _ClassVar[int]
EXISTS_END_FIELD_NUMBER: _ClassVar[int]
EXISTS_MEMORY_DUMP_FIELD_NUMBER: _ClassVar[int]
EXISTS_RING_BUFFER_FIELD_NUMBER: _ClassVar[int]
EXISTS_START_FIELD_NUMBER: _ClassVar[int]
EXISTS_TB_EXEC_LIST_FIELD_NUMBER: _ClassVar[int]
EXISTS_TB_INFO_FIELD_NUMBER: _ClassVar[int]
class Control(_message.Message):
__slots__ = ["end_points", "has_ring_buffer", "has_start", "has_tb_exec_list", "has_tb_info", "max_duration", "mem_info", "memorydumps", "num_faults", "start_address", "start_counter", "tb_exec_list", "tb_exec_list_ring_buffer", "tb_info"]
END_POINTS_FIELD_NUMBER: _ClassVar[int]
HAS_RING_BUFFER_FIELD_NUMBER: _ClassVar[int]
HAS_START_FIELD_NUMBER: _ClassVar[int]
HAS_TB_EXEC_LIST_FIELD_NUMBER: _ClassVar[int]
HAS_TB_INFO_FIELD_NUMBER: _ClassVar[int]
MAX_DURATION_FIELD_NUMBER: _ClassVar[int]
MEMORYDUMP_FIELD_NUMBER: _ClassVar[int]
MEMORYDUMPS_FIELD_NUMBER: _ClassVar[int]
MEM_INFO_FIELD_NUMBER: _ClassVar[int]
NUM_FAULTS_FIELD_NUMBER: _ClassVar[int]
NUM_MEMREGIONS_FIELD_NUMBER: _ClassVar[int]
START_ADDRESS_FIELD_NUMBER: _ClassVar[int]
START_COUNTER_FIELD_NUMBER: _ClassVar[int]
TB_EXEC_LIST_FIELD_NUMBER: _ClassVar[int]
TB_EXEC_LIST_RING_BUFFER_FIELD_NUMBER: _ClassVar[int]
TB_INFO_FIELD_NUMBER: _ClassVar[int]
end_list: _containers.RepeatedCompositeFieldContainer[End]
exists_end: bool
exists_memory_dump: bool
exists_ring_buffer: bool
exists_start: bool
exists_tb_exec_list: bool
exists_tb_info: bool
end_points: _containers.RepeatedCompositeFieldContainer[EndPoint]
has_ring_buffer: bool
has_start: bool
has_tb_exec_list: bool
has_tb_info: bool
max_duration: int
mem_info: bool
memorydump: _containers.RepeatedCompositeFieldContainer[Memory_Region]
memorydumps: _containers.RepeatedCompositeFieldContainer[MemoryDump]
num_faults: int
num_memregions: int
start_address: int
start_counter: int
tb_exec_list: bool
tb_exec_list_ring_buffer: bool
tb_info: bool
def __init__(self, max_duration: _Optional[int] = ..., num_faults: _Optional[int] = ..., tb_exec_list: bool = ..., tb_info: bool = ..., mem_info: bool = ..., start_address: _Optional[int] = ..., start_counter: _Optional[int] = ..., end_list: _Optional[_Iterable[_Union[End, _Mapping]]] = ..., tb_exec_list_ring_buffer: bool = ..., num_memregions: _Optional[int] = ..., memorydump: _Optional[_Iterable[_Union[Memory_Region, _Mapping]]] = ..., exists_tb_exec_list: bool = ..., exists_tb_info: bool = ..., exists_start: bool = ..., exists_end: bool = ..., exists_memory_dump: bool = ..., exists_ring_buffer: bool = ...) -> None: ...
def __init__(self, max_duration: _Optional[int] = ..., num_faults: _Optional[int] = ..., tb_exec_list: bool = ..., tb_info: bool = ..., mem_info: bool = ..., start_address: _Optional[int] = ..., start_counter: _Optional[int] = ..., end_points: _Optional[_Iterable[_Union[EndPoint, _Mapping]]] = ..., tb_exec_list_ring_buffer: bool = ..., memorydumps: _Optional[_Iterable[_Union[MemoryDump, _Mapping]]] = ..., has_tb_exec_list: bool = ..., has_tb_info: bool = ..., has_start: bool = ..., has_ring_buffer: bool = ...) -> None: ...

class End(_message.Message):
class EndPoint(_message.Message):
__slots__ = ["address", "counter"]
ADDRESS_FIELD_NUMBER: _ClassVar[int]
COUNTER_FIELD_NUMBER: _ClassVar[int]
address: int
counter: int
def __init__(self, address: _Optional[int] = ..., counter: _Optional[int] = ...) -> None: ...

class Memory_Region(_message.Message):
class MemoryDump(_message.Message):
__slots__ = ["address", "length"]
ADDRESS_FIELD_NUMBER: _ClassVar[int]
LENGTH_FIELD_NUMBER: _ClassVar[int]
Expand Down
36 changes: 18 additions & 18 deletions data_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

82 changes: 39 additions & 43 deletions data_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5,61 +5,51 @@ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Map

DESCRIPTOR: _descriptor.FileDescriptor

class Arch_Register(_message.Message):
__slots__ = ["arch_type", "register_dumps"]
ARCH_TYPE_FIELD_NUMBER: _ClassVar[int]
REGISTER_DUMPS_FIELD_NUMBER: _ClassVar[int]
arch_type: int
register_dumps: _containers.RepeatedCompositeFieldContainer[Register_dump]
def __init__(self, register_dumps: _Optional[_Iterable[_Union[Register_dump, _Mapping]]] = ..., arch_type: _Optional[int] = ...) -> None: ...

class Data(_message.Message):
__slots__ = ["Mem_dump_object_list", "arch_register", "end_reason", "endpoint", "faulted_data_list", "mem_info_list", "tb_exec_orders", "tb_information"]
ARCH_REGISTER_FIELD_NUMBER: _ClassVar[int]
ENDPOINT_FIELD_NUMBER: _ClassVar[int]
__slots__ = ["end_point", "end_reason", "faulted_datas", "mem_dump_infos", "mem_infos", "register_info", "tb_exec_orders", "tb_informations"]
END_POINT_FIELD_NUMBER: _ClassVar[int]
END_REASON_FIELD_NUMBER: _ClassVar[int]
FAULTED_DATA_LIST_FIELD_NUMBER: _ClassVar[int]
MEM_DUMP_OBJECT_LIST_FIELD_NUMBER: _ClassVar[int]
MEM_INFO_LIST_FIELD_NUMBER: _ClassVar[int]
Mem_dump_object_list: _containers.RepeatedCompositeFieldContainer[Mem_dump_object]
FAULTED_DATAS_FIELD_NUMBER: _ClassVar[int]
MEM_DUMP_INFOS_FIELD_NUMBER: _ClassVar[int]
MEM_INFOS_FIELD_NUMBER: _ClassVar[int]
REGISTER_INFO_FIELD_NUMBER: _ClassVar[int]
TB_EXEC_ORDERS_FIELD_NUMBER: _ClassVar[int]
TB_INFORMATION_FIELD_NUMBER: _ClassVar[int]
arch_register: Arch_Register
TB_INFORMATIONS_FIELD_NUMBER: _ClassVar[int]
end_point: int
end_reason: str
endpoint: int
faulted_data_list: _containers.RepeatedCompositeFieldContainer[Faulted_data]
mem_info_list: _containers.RepeatedCompositeFieldContainer[Mem_info]
tb_exec_orders: _containers.RepeatedCompositeFieldContainer[Tb_exec_order]
tb_information: _containers.RepeatedCompositeFieldContainer[Tb_information]
def __init__(self, endpoint: _Optional[int] = ..., end_reason: _Optional[str] = ..., tb_information: _Optional[_Iterable[_Union[Tb_information, _Mapping]]] = ..., tb_exec_orders: _Optional[_Iterable[_Union[Tb_exec_order, _Mapping]]] = ..., mem_info_list: _Optional[_Iterable[_Union[Mem_info, _Mapping]]] = ..., arch_register: _Optional[_Union[Arch_Register, _Mapping]] = ..., faulted_data_list: _Optional[_Iterable[_Union[Faulted_data, _Mapping]]] = ..., Mem_dump_object_list: _Optional[_Iterable[_Union[Mem_dump_object, _Mapping]]] = ...) -> None: ...
faulted_datas: _containers.RepeatedCompositeFieldContainer[FaultedData]
mem_dump_infos: _containers.RepeatedCompositeFieldContainer[MemDumpInfo]
mem_infos: _containers.RepeatedCompositeFieldContainer[MemInfo]
register_info: RegisterInfo
tb_exec_orders: _containers.RepeatedCompositeFieldContainer[TbExecOrder]
tb_informations: _containers.RepeatedCompositeFieldContainer[TbInformation]
def __init__(self, end_point: _Optional[int] = ..., end_reason: _Optional[str] = ..., tb_informations: _Optional[_Iterable[_Union[TbInformation, _Mapping]]] = ..., tb_exec_orders: _Optional[_Iterable[_Union[TbExecOrder, _Mapping]]] = ..., mem_infos: _Optional[_Iterable[_Union[MemInfo, _Mapping]]] = ..., register_info: _Optional[_Union[RegisterInfo, _Mapping]] = ..., faulted_datas: _Optional[_Iterable[_Union[FaultedData, _Mapping]]] = ..., mem_dump_infos: _Optional[_Iterable[_Union[MemDumpInfo, _Mapping]]] = ...) -> None: ...

class Faulted_data(_message.Message):
class FaultedData(_message.Message):
__slots__ = ["assembler", "trigger_address"]
ASSEMBLER_FIELD_NUMBER: _ClassVar[int]
TRIGGER_ADDRESS_FIELD_NUMBER: _ClassVar[int]
assembler: str
trigger_address: int
def __init__(self, trigger_address: _Optional[int] = ..., assembler: _Optional[str] = ...) -> None: ...

class Mem_dump(_message.Message):
class MemDump(_message.Message):
__slots__ = ["mem"]
MEM_FIELD_NUMBER: _ClassVar[int]
mem: bytes
def __init__(self, mem: _Optional[bytes] = ...) -> None: ...

class Mem_dump_object(_message.Message):
__slots__ = ["address", "dumps", "len", "used_dumps"]
class MemDumpInfo(_message.Message):
__slots__ = ["address", "dumps", "len"]
ADDRESS_FIELD_NUMBER: _ClassVar[int]
DUMPS_FIELD_NUMBER: _ClassVar[int]
LEN_FIELD_NUMBER: _ClassVar[int]
USED_DUMPS_FIELD_NUMBER: _ClassVar[int]
address: int
dumps: _containers.RepeatedCompositeFieldContainer[Mem_dump]
dumps: _containers.RepeatedCompositeFieldContainer[MemDump]
len: int
used_dumps: int
def __init__(self, address: _Optional[int] = ..., len: _Optional[int] = ..., used_dumps: _Optional[int] = ..., dumps: _Optional[_Iterable[_Union[Mem_dump, _Mapping]]] = ...) -> None: ...
def __init__(self, address: _Optional[int] = ..., len: _Optional[int] = ..., dumps: _Optional[_Iterable[_Union[MemDump, _Mapping]]] = ...) -> None: ...

class Mem_info(_message.Message):
class MemInfo(_message.Message):
__slots__ = ["counter", "direction", "ins_address", "memmory_address", "size"]
COUNTER_FIELD_NUMBER: _ClassVar[int]
DIRECTION_FIELD_NUMBER: _ClassVar[int]
Expand All @@ -73,27 +63,33 @@ class Mem_info(_message.Message):
size: int
def __init__(self, ins_address: _Optional[int] = ..., size: _Optional[int] = ..., memmory_address: _Optional[int] = ..., direction: _Optional[int] = ..., counter: _Optional[int] = ...) -> None: ...

class Register_dump(_message.Message):
__slots__ = ["pc", "register_data", "tb_count"]
class RegisterDump(_message.Message):
__slots__ = ["pc", "register_values", "tb_count"]
PC_FIELD_NUMBER: _ClassVar[int]
REGISTER_DATA_FIELD_NUMBER: _ClassVar[int]
REGISTER_VALUES_FIELD_NUMBER: _ClassVar[int]
TB_COUNT_FIELD_NUMBER: _ClassVar[int]
pc: int
register_data: _containers.RepeatedScalarFieldContainer[int]
register_values: _containers.RepeatedScalarFieldContainer[int]
tb_count: int
def __init__(self, register_data: _Optional[_Iterable[int]] = ..., pc: _Optional[int] = ..., tb_count: _Optional[int] = ...) -> None: ...
def __init__(self, register_values: _Optional[_Iterable[int]] = ..., pc: _Optional[int] = ..., tb_count: _Optional[int] = ...) -> None: ...

class RegisterInfo(_message.Message):
__slots__ = ["arch_type", "register_dumps"]
ARCH_TYPE_FIELD_NUMBER: _ClassVar[int]
REGISTER_DUMPS_FIELD_NUMBER: _ClassVar[int]
arch_type: int
register_dumps: _containers.RepeatedCompositeFieldContainer[RegisterDump]
def __init__(self, register_dumps: _Optional[_Iterable[_Union[RegisterDump, _Mapping]]] = ..., arch_type: _Optional[int] = ...) -> None: ...

class Tb_exec_order(_message.Message):
__slots__ = ["pos", "tb_base_address", "tb_info_exist"]
class TbExecOrder(_message.Message):
__slots__ = ["pos", "tb_base_address"]
POS_FIELD_NUMBER: _ClassVar[int]
TB_BASE_ADDRESS_FIELD_NUMBER: _ClassVar[int]
TB_INFO_EXIST_FIELD_NUMBER: _ClassVar[int]
pos: int
tb_base_address: int
tb_info_exist: bool
def __init__(self, tb_info_exist: bool = ..., tb_base_address: _Optional[int] = ..., pos: _Optional[int] = ...) -> None: ...
def __init__(self, tb_base_address: _Optional[int] = ..., pos: _Optional[int] = ...) -> None: ...

class Tb_information(_message.Message):
class TbInformation(_message.Message):
__slots__ = ["assembler", "base_address", "instruction_count", "num_of_exec", "size"]
ASSEMBLER_FIELD_NUMBER: _ClassVar[int]
BASE_ADDRESS_FIELD_NUMBER: _ClassVar[int]
Expand Down
Loading

0 comments on commit 7374560

Please sign in to comment.