Skip to content

Commit 2f963d4

Browse files
saying121BrytonLee
authored andcommitted
feat: upload elf file
1 parent 99fe8a4 commit 2f963d4

File tree

1 file changed

+6
-27
lines changed

1 file changed

+6
-27
lines changed

proto/psh.proto

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,6 @@ message Task {
5353
oneof task_type {
5454
WasmTask wasm = 3;
5555
ProfilingTask profiling = 4;
56-
DisasmTask disasm = 5;
57-
}
58-
59-
message DisasmTask {
60-
Symbol sym = 1;
6156
}
6257

6358
message WasmTask {
@@ -89,8 +84,7 @@ message ExportDataReq {
8984
FileData file = 1;
9085
LineProtocolData line_protocol = 2;
9186
PerfDataProto perf_data = 3;
92-
ElfSymbol symbol = 4;
93-
Insns insns = 5;
87+
ElfFile elf_file = 4;
9488
}
9589
}
9690

@@ -105,24 +99,9 @@ message LineProtocolData {
10599
bytes bytes = 1;
106100
}
107101

108-
message ElfSymbol {
109-
string file_path = 1;
110-
repeated Symbol symbols = 2;
111-
}
112-
113-
message Symbol {
114-
uint64 index = 1;
115-
optional string name = 2;
116-
uint64 address = 3;
117-
uint64 size = 4;
118-
}
119-
120-
message Insns {
121-
repeated Instruction insns = 1;
122-
123-
message Instruction {
124-
uint64 addr = 1;
125-
optional string mnemonic = 2;
126-
optional string op = 3;
127-
}
102+
message ElfFile {
103+
string filename = 1;
104+
bytes build_id = 2;
105+
string arch = 3; // use for disasm
106+
bytes bytes = 4;
128107
}

0 commit comments

Comments
 (0)