aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2016-10-07 21:42:56 +0200
committerDmitry Vyukov <dvyukov@google.com>2016-10-07 21:42:56 +0200
commit191a429c4c0e671dcfdf53d04e38796d28e2d5cf (patch)
tree3652180a084f6390343cfd94a6259d93638eac7b /config
parentfbaafcd20067dea49eab8775154daf0a845eba20 (diff)
manager: save user tag with crash reports
If config contains "tag" parameter, save it along with crash reports. The tag is meant to contain kernel branch/commit hash. If workdir contains crashes from different kernel versions, it is useful to be able to find out on what kernel revision a crash happened.
Diffstat (limited to 'config')
-rw-r--r--config/config.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/config.go b/config/config.go
index d8a0742c2..9a6cb4f08 100644
--- a/config/config.go
+++ b/config/config.go
@@ -23,6 +23,7 @@ type Config struct {
Workdir string
Vmlinux string
Kernel string // e.g. arch/x86/boot/bzImage
+ Tag string // arbitrary optional tag that is saved along with crash reports (e.g. kernel branch/commit)
Cmdline string // kernel command line
Image string // linux image for VMs
Initrd string // linux initial ramdisk. (optional)
@@ -279,6 +280,7 @@ func checkUnknownFields(data []byte) (string, error) {
"Workdir",
"Vmlinux",
"Kernel",
+ "Tag",
"Cmdline",
"Image",
"Cpu",