Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2301999imm; Mon, 28 May 2018 05:42:21 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr/MV4/7iyTfnUEiZ7JFcxJGOTtAKFqq+kw2KH0yAsBSV3qan130U8VRwMK9RUpVkOr+9pl X-Received: by 2002:a62:c987:: with SMTP id l7-v6mr13078467pfk.221.1527511340954; Mon, 28 May 2018 05:42:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527511340; cv=none; d=google.com; s=arc-20160816; b=z3ZsTHf410q8HLGPFvHqHtvASXoykygR5a56Qn1VGi/OJPbVL9T5ZDucD/Tyxrp6JG IhYYRiapTiN3htcZr0sh6tOX5yyhm9+6/43nqIA7SPRD1ocv1rWJlUy+88TjygSieH3H MAHH1XczD1xWrFFEmJjMCh12iJ4x595gtAnCnJ0H/fANQXrGs9K5lheXYTcdimthcYPA OlcDgHFrsllo9Q7j3x92Yfrs7PRzHHqrt5m3a+tNkO1MU5wzGV/e+qLHcwYHlHp6nl/V UaYBfFim70FiHrqbAlMCCtWeWcg5aIV0usD72hI4wpochN7D7oMD+NcUVsVZ/Uvfmrtc mQ8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=Q6yopRXtsMWoHhqst57/deujNkf0Qx0eyIMjbTh1KGA=; b=XfhRI5D4S8sWpQt4LQf8nJqKV6XuoyS9MgTeaiEfCtQ+H3OfbX6/s7eMV2kaFiDLB1 Iw8zcFXmqkX7M4jigL+dbz9pJxWcZh7XgbLJ3sK9bp/b8FQLmqnqS0IW7hpDvO37WD/x haCwdZA8V6HvrsFL+5D7xf0wBXfu8IAmUTZIgsZ/UwJIlud4eJoTa+9Sx4Yi53fx6d9u L9k2RkUMolIXoVQUJPw/Agb6odQMzNc6Uj5YW+U7PeqLmDHZUBiTMVkByzGphPq8/4Yz vcbDKFlNJ06wdkWKuQ3dinOXIgoNnLuJrKAVI+vFCmbdkldhGSW4XiYXjATAMBLqsARo etHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=T+1+VnXI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q3-v6si30887296pfg.298.2018.05.28.05.42.06; Mon, 28 May 2018 05:42:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=T+1+VnXI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1165073AbeE1MlS (ORCPT + 99 others); Mon, 28 May 2018 08:41:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:46448 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937990AbeE1K6U (ORCPT ); Mon, 28 May 2018 06:58:20 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 12B99208A1; Mon, 28 May 2018 10:58:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527505099; bh=veKG7K7Wf+oglj7xEXqr4dN56rT9GwTtjsxw6MebHm0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=T+1+VnXIGxFs7zOpd0IrgTrnmiKRUatFhCWO2f1SzmvMEittQIBGfVRGKBKFzidOY E8n/JKkuqNfcPPSDCb/sr8IeGArrbs5G40rrv4dYbIio4MG4Cv+H6577X/X4yq049T WGHUM697N4088LL2F7q1CRQZQUs+RLEbqrzfc7UM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michael Ellerman , Shuah Khan , Sasha Levin Subject: [PATCH 4.14 375/496] selftests: Print the test were running to /dev/kmsg Date: Mon, 28 May 2018 12:02:40 +0200 Message-Id: <20180528100335.609936754@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180528100319.498712256@linuxfoundation.org> References: <20180528100319.498712256@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Michael Ellerman [ Upstream commit 88893cf787d3062c631cc20b875068eb11756e03 ] Some tests cause the kernel to print things to the kernel log buffer (ie. printk), in particular oops and warnings etc. However when running all the tests in succession it's not always obvious which test(s) caused the kernel to print something. We can narrow it down by printing which test directory we're running in to /dev/kmsg, if it's writable. Example output: [ 170.149149] kselftest: Running tests in powerpc [ 305.300132] kworker/dying (71) used greatest stack depth: 7776 bytes left [ 808.915456] kselftest: Running tests in pstore Signed-off-by: Michael Ellerman Signed-off-by: Shuah Khan Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- tools/testing/selftests/Makefile | 1 + 1 file changed, 1 insertion(+) --- a/tools/testing/selftests/Makefile +++ b/tools/testing/selftests/Makefile @@ -122,6 +122,7 @@ ifdef INSTALL_PATH BUILD_TARGET=$$BUILD/$$TARGET; \ echo "echo ; echo Running tests in $$TARGET" >> $(ALL_SCRIPT); \ echo "echo ========================================" >> $(ALL_SCRIPT); \ + echo "[ -w /dev/kmsg ] && echo \"kselftest: Running tests in $$TARGET\" >> /dev/kmsg" >> $(ALL_SCRIPT); \ echo "cd $$TARGET" >> $(ALL_SCRIPT); \ make -s --no-print-directory OUTPUT=$$BUILD_TARGET -C $$TARGET emit_tests >> $(ALL_SCRIPT); \ echo "cd \$$ROOT" >> $(ALL_SCRIPT); \