From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752406AbbIOCap (ORCPT ); Mon, 14 Sep 2015 22:30:45 -0400 Received: from mail4.hitachi.co.jp ([133.145.228.5]:33967 "EHLO mail4.hitachi.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751577AbbIOCan (ORCPT ); Mon, 14 Sep 2015 22:30:43 -0400 Message-ID: <55F782D0.6000501@hitachi.com> Date: Tue, 15 Sep 2015 11:30:40 +0900 From: Hiraku Toyooka User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: Mark Salyzyn , CC: Tony Luck , Kees Cook , , Anton Vorontsov , Shuah Khan , Colin Cross , Subject: Re: [PATCH 1/2] selftests/pstore: add pstore test script for pre-reboot References: <20150908110615.9783.69477.stgit@arietta> <20150908110617.9783.4635.stgit@arietta> <55EF6DC5.2080207@android.com> In-Reply-To: <55EF6DC5.2080207@android.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.232.31.66] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Mark, Thank you for your advise. >> +prlog -n "Checking pmsg file contains TEST_STRING ... " > Mark this as 'wish to have' OK. I'll change it to "Checking pmsg file wishes to have TEST_STRING ... ". Should I change other messages in the same way? > Can TEST_STRING be given an unique value each run, so that on the the > reboot-comparison run it can be found to be an unique match? Yes. I'll append /proc/sys/kernel/random/uuid content to TEST_STRING. I'll also change log directory name from date to the uuid. > Also confirm that any previous content (which may be binary) is not > present after reboot, and that totally new content is present. OK. As for pmsg, they are possible by checking if the /sys/fs/pstore/pmsg content perfectly matches the TEST_STRING which was written to /dev/pmsg before reboot. (The TEST_STRING can be left to a regular file before reboot as well as reboot_flag.) Is it OK? Best regards, Hiraku Toyooka -- Hiraku Toyooka Systems Productivity Research Dept. / Linux Technology Center Center for Technology Innovation - Systems Engineering, Hitachi Ltd.