Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions proto/psh.proto
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ message Task {
oneof task_type {
WasmTask wasm = 3;
ProfilingTask profiling = 4;
DisasmTask disasm = 5;
}

message DisasmTask {
Symbol sym = 1;
}

message WasmTask {
Expand Down Expand Up @@ -85,6 +90,7 @@ message ExportDataReq {
LineProtocolData line_protocol = 2;
PerfDataProto perf_data = 3;
ElfSymbol symbol = 4;
Insns insns = 5;
}
}

Expand All @@ -110,3 +116,13 @@ message Symbol {
uint64 address = 3;
uint64 size = 4;
}

message Insns {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个可以在罗霄这端来做,不需要在PSH上解析。PSH可以直接把二进制文件传回给罗霄,罗霄通过build id进行索引。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

把二进制传回的话,elfsymbol也可以在罗霄解析了,只需要传回文件跟build_id再加一些任务信息

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

对,build_id每次都传回来,二进制文件按需传回,如果build_id 对应的二进制文件已经缓存了,就不需要再传送了。

repeated Instruction insns = 1;

message Instruction {
uint64 addr = 1;
optional string mnemonic = 2;
optional string op = 3;
}
}
Loading