From 72a3cc0c8dfd0116bb3ecf36eb5983ec3cae691c Mon Sep 17 00:00:00 2001 From: Denis Efremov Date: Mon, 18 Jul 2022 19:03:11 +0400 Subject: tools/syz-bisect: print hostname and bisection date Log bisection date and hostname of the bisecting machine for the debugging purposes. It makes more easy to check bisection problems on the bisecting host if something goes wrong. Signed-off-by: Denis Efremov --- pkg/bisect/bisect.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pkg') diff --git a/pkg/bisect/bisect.go b/pkg/bisect/bisect.go index 47489558c..3320e7da3 100644 --- a/pkg/bisect/bisect.go +++ b/pkg/bisect/bisect.go @@ -5,6 +5,7 @@ package bisect import ( "fmt" + "os" "time" "github.com/google/syzkaller/pkg/build" @@ -147,6 +148,11 @@ func runImpl(cfg *Config, repo vcs.Repo, inst instance.Env) (*Result, error) { return nil, err } env.head = head + hostname, err := os.Hostname() + if err != nil { + hostname = "unnamed host" + } + env.log("%s starts bisection %s", hostname, env.startTime.String()) if cfg.Fix { env.log("bisecting fixing commit since %v", cfg.Kernel.Commit) } else { -- cgit mrf-deployment