perf: Use stat instead of seeks for xfsize
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 15 Jun 2016 18:22:39 +0000 (14:22 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 17 Jun 2016 16:17:54 +0000 (12:17 -0400)
commit9a023fa2149b1f476cab0b305b68281925da8ee3
tree5e3aa3554cb478143bde0a82c7da67c2e7049a36
parent45f6e90ecab47483acfb4524146e74d2542de27c
perf: Use stat instead of seeks for xfsize

It's faster and doesn't rely on a file being seekable.  I don't know how
well seeks work with qio queues...

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
tools/profile/perf/perf_core.c
tools/profile/perf/xlib.c