driver: fix build on solaris

Solaris has syscall.Rusage but not syscall.Getrusage.

So use golang.org/x/sys/unix for Getrusage instead, which requires
using the unix.Rusage type more. But we still need to use the syscall
type in one place too, which requires converting from the std to unix
type. Little gross, but works.

Change-Id: I7176062f1325cbb808e5f0ef481be966d94c1ac0
Reviewed-on: https://go-review.googlesource.com/c/benchmarks/+/170785
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
2 files changed