diff options
| author | Denis Efremov <denis.e.efremov@oracle.com> | 2022-07-18 19:03:11 +0400 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2022-07-19 10:06:33 +0200 |
| commit | 72a3cc0c8dfd0116bb3ecf36eb5983ec3cae691c (patch) | |
| tree | 2a07ba103746ba0260e720481b72ede2e7103d14 /pkg/bisect/bisect.go | |
| parent | ff988920cbabff061e582d566b7f9b99bb9e7d1f (diff) | |
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 <denis.e.efremov@oracle.com>
Diffstat (limited to 'pkg/bisect/bisect.go')
| -rw-r--r-- | pkg/bisect/bisect.go | 6 |
1 files changed, 6 insertions, 0 deletions
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 { |
