From: Steven Rostedt (Red Hat) Date: Fri, 31 Oct 2014 22:02:05 +0000 (-0400) Subject: ftracetest: Take the first debugfs mount found X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~161^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7dbb48958897c0a80b14250a981a563d9160e4d;p=pandora-kernel.git ftracetest: Take the first debugfs mount found Running ftracetests on a box that mounted debugfs in two locations made the ftracetests fail. This is because the tests uses a grep of debugfs from the /proc/mounts file to find the debugfs mount point, and then appends "/tracing" to that string to get the tracing directory. If the debugfs directory is mounted twice, then that grep will return two answers and appending "/tracing" to a string with two lines will not work. Use "head -1" to only take the first mount point found. Acked-by: Masami Hiramatsu Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed