Add directory tree traversal benchmark.

Generates a directory tree with requested depth, also writing files
at each leaf to add width.  Then it times traversal of entire tree,
which can reveal impact of VFS caching inside kernel.

Also specify mode_t when creating files.

Bug: 6925012
Change-Id: I65370d6fd0b9777e959be3a0867f27ce22ee4644
3 files changed