From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932586AbdDQCom (ORCPT ); Sun, 16 Apr 2017 22:44:42 -0400 Received: from LGEAMRELO11.lge.com ([156.147.23.51]:39391 "EHLO lgeamrelo11.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932474AbdDQCoh (ORCPT ); Sun, 16 Apr 2017 22:44:37 -0400 X-Original-SENDERIP: 156.147.1.125 X-Original-MAILFROM: namhyung@kernel.org X-Original-SENDERIP: 10.177.227.17 X-Original-MAILFROM: namhyung@kernel.org From: Namhyung Kim To: Steven Rostedt Cc: Ingo Molnar , Masami Hiramatsu , LKML , kernel-team@lge.com, Shuah Khan Subject: [PATCH 3/4] selftests: ftrace: Add -l/--logdir option Date: Mon, 17 Apr 2017 11:44:29 +0900 Message-Id: <20170417024430.21194-4-namhyung@kernel.org> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170417024430.21194-1-namhyung@kernel.org> References: <20170417024430.21194-1-namhyung@kernel.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In my virtual machine setup, running ftracetest failed on creating LOG_DIR on a read-only filesystem. It'd be convenient to provide an option to specify a different directory as log directory. Acked-by: Masami Hiramatsu Cc: Steven Rostedt Cc: Shuah Khan Signed-off-by: Namhyung Kim --- tools/testing/selftests/ftrace/ftracetest | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/testing/selftests/ftrace/ftracetest b/tools/testing/selftests/ftrace/ftracetest index 52e3c4df28d6..a8631d978725 100755 --- a/tools/testing/selftests/ftrace/ftracetest +++ b/tools/testing/selftests/ftrace/ftracetest @@ -16,6 +16,7 @@ echo " -k|--keep Keep passed test logs" echo " -v|--verbose Increase verbosity of test messages" echo " -vv Alias of -v -v (Show all results in stdout)" echo " -d|--debug Debug mode (trace all shell commands)" +echo " -l|--logdir Save logs on the " exit $1 } @@ -64,6 +65,10 @@ parse_opts() { # opts DEBUG=1 shift 1 ;; + --logdir|-l) + LOG_DIR=$2 + shift 2 + ;; *.tc) if [ -f "$1" ]; then OPT_TEST_CASES="$OPT_TEST_CASES `abspath $1`" -- 2.12.2