[OE-core] [PATCH v2 1/1] latencytop: fix mount error

Burton, Ross ross.burton at intel.com
Thu Jul 10 14:46:21 UTC 2014


On 10 July 2014 14:50, Saul Wold <sgw at linux.intel.com> wrote:
> I think Ross's suggestion of using stat() to check for the existance of a
> file in debugfs would be better.

At least one good way of checking if a directory is a mount point is
to compare the device of / and /debug using stat().  For example:

$ stat -c %d /
2049
$ stat -c %d /sys
13

Different devices, so /sys is a mount.

Ross



More information about the Openembedded-core mailing list