summaryrefslogtreecommitdiffhomepage
path: root/runsc/cmd/BUILD
diff options
context:
space:
mode:
authorDean Deng <deandeng@google.com>2020-12-11 15:40:39 -0800
committergVisor bot <gvisor-bot@google.com>2020-12-11 15:43:22 -0800
commit80379894d36cd13c0d1d0008bbb2832d9441e466 (patch)
treece23d0fa98f9c800bb63fbb64418b3ea40d98f61 /runsc/cmd/BUILD
parentd45420b1528b8ad23e8f12fe81fb9cc148b83012 (diff)
Add runsc symbolize command.
This command takes instruction pointers from stdin and converts them into their corresponding file names and line/column numbers in the runsc source code. The inputs are not interpreted as actual addresses, but as synthetic values that are exposed through /sys/kernel/debug/kcov. One can extract coverage information from kcov and translate those values into locations in the source code by running symbolize on the same runsc binary. This will allow us to generate syzkaller coverage reports. PiperOrigin-RevId: 347089624
Diffstat (limited to 'runsc/cmd/BUILD')
-rw-r--r--runsc/cmd/BUILD2
1 files changed, 2 insertions, 0 deletions
diff --git a/runsc/cmd/BUILD b/runsc/cmd/BUILD
index 2556f6d9e..19520d7ab 100644
--- a/runsc/cmd/BUILD
+++ b/runsc/cmd/BUILD
@@ -32,6 +32,7 @@ go_library(
"start.go",
"state.go",
"statefile.go",
+ "symbolize.go",
"syscalls.go",
"wait.go",
],
@@ -39,6 +40,7 @@ go_library(
"//runsc:__subpackages__",
],
deps = [
+ "//pkg/coverage",
"//pkg/log",
"//pkg/p9",
"//pkg/sentry/control",