summaryrefslogtreecommitdiff
path: root/simpleperf/etm_branch_list.proto
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2021-03-23 14:58:25 -0700
committerYabin Cui <yabinc@google.com>2021-03-30 11:41:35 -0700
commit16f41ffde6535be1663d628cc8e25666b2a7af97 (patch)
tree7a5ed3730121bd9ace2b4ac558f17048c56a5744 /simpleperf/etm_branch_list.proto
parent58740ffd118bad9e29ce3dbe35e688e3f98cb371 (diff)
downloadextras-16f41ffde6535be1663d628cc8e25666b2a7af97.tar.gz
simpleperf: support kernel etm data in inject cmd.
Add extra info in etm_branch_list.proto to decode kernel etm data. Bug: 183135316 Test: run simpleperf_unit_test Change-Id: I165d28c4e0f3a26c09741238336949bcff3902ca
Diffstat (limited to 'simpleperf/etm_branch_list.proto')
-rw-r--r--simpleperf/etm_branch_list.proto14
1 files changed, 13 insertions, 1 deletions
diff --git a/simpleperf/etm_branch_list.proto b/simpleperf/etm_branch_list.proto
index 8c0cfa25..396f7525 100644
--- a/simpleperf/etm_branch_list.proto
+++ b/simpleperf/etm_branch_list.proto
@@ -40,10 +40,22 @@ message ETMBranchList {
}
repeated Address addrs = 3;
+
+ enum BinaryType {
+ ELF_FILE = 0;
+ KERNEL = 1;
+ KERNEL_MODULE = 2;
+ }
+ BinaryType type = 4;
}
// Used to identify format in generated proto files.
// Should always be "simpleperf:EtmBranchList".
string magic = 1;
repeated Binary binaries = 2;
-} \ No newline at end of file
+
+ // kernel_start_addr is used to convert kernel ip address to vaddr in vmlinux.
+ // If it is zero, the Address in KERNEL binary has been converted to vaddr.
+ // Otherwise, the Address in KERNEL binary is still ip address, and need to be converted later.
+ uint64 kernel_start_addr = 3;
+}