Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp393927pxv; Thu, 15 Jul 2021 06:47:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz07nj4Ne2POzC8DsJZB9nnJnCUsdNpWJp4c3G/sOn40QwWMsGMD5zsb6+IFH/EOktZX7Km X-Received: by 2002:a05:6402:1d31:: with SMTP id dh17mr7112526edb.211.1626356824655; Thu, 15 Jul 2021 06:47:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626356824; cv=none; d=google.com; s=arc-20160816; b=lywTXhdC8pF/lrD/mS0247jlYP2q5sqUDN1h/gcFnsudve5+gtsWg+Dx8WjAfWJzuM IZXztGSTaiTA8XRwwQ14sJiYwD5vkeVk3hCpHK3unZZhvocecmWIgDF8SAVpXU72A/pC vN1vX5OpGQYG57ma+0Iig0k48bpZ8bDL6imDNZzZTJiKlORiAFtln6Z7fcE4l7MrdHpk aBKuJIg44TDpsFPUQzEisp6N1hIAw9xNMIACSvP7uhzmLEq1bAJGn1FsxLYQA91vkgoh uEVHqji/3aMOjmVYD9olgtZ1X6Xu0EmAZy329dJ0GzkmdoUfrBOSaKiFJ2m1O1dMIVnQ I7AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=UBoFNxp1b520fRzwIwDPG0kXtQsa6fJbfqVoMrrg6MM=; b=dX5AG7mH1B0MgUqfBME2wbGtD3WBQKesKDDokYl7Y9VH7o07rte+o5O5SomZo5eW1C zTOiiHBAff8jh3uEj5UYlH/ccxzqiLGwfSi4h3zKjWmJOQBg/kmyoAXxLPvOdYvbOLEN uABFjoaT/RELXe3YhofxWqYDwWTp9pjoCdQb48SPVqGI5gW7wuKm72bGrm4h/iy7u6/d UzdPIrsZTGzy7gXYwIJkjN4neRse9GlMrHBx0ML403W00+usmp9RzrjvUiCKdQiNKhcP hpKtCa6oYjOd5Z86Vp2pL7Ypw8F1G4KCYobaocl4FoxT2fUGbfZJ/tY9J0C41cSepKEf sdDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iLd8sw25; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v5si8728327edi.582.2021.07.15.06.46.41; Thu, 15 Jul 2021 06:47:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iLd8sw25; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241696AbhGOKvg (ORCPT + 99 others); Thu, 15 Jul 2021 06:51:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:58216 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238693AbhGOKvf (ORCPT ); Thu, 15 Jul 2021 06:51:35 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4BC9461380; Thu, 15 Jul 2021 10:48:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626346122; bh=ulKsHw6GlZ6s1kRpL+Qcq9OClUQjFQtzTWFe+7+Dr3s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iLd8sw25g0H+uooHvbjEgSQcRaOlLoo2XDMNS7h7D7sQx1CtmhfrHrtCna0xyLifI BQbYp6moOoufSOVfHx10oWgizNnt592jr+iPdzOIidL8pvJzy7zXJspADxgVRwZFEX I+WKvPnPN74QqmsgxG6m3uJxqfrsyXkD9B3Toxd8= Date: Thu, 15 Jul 2021 12:48:36 +0200 From: Greg KH To: Xiaochen Shen Cc: stable@vger.kernel.org, sashal@kernel.org, shuah@kernel.org, tony.luck@intel.com, fenghua.yu@intel.com, reinette.chatre@intel.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, pei.p.jia@intel.com Subject: Re: [PATCH 5.12] selftests/resctrl: Fix incorrect parsing of option "-t" Message-ID: References: <16260087708135@kroah.com> <1626076523-924-1-git-send-email-xiaochen.shen@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1626076523-924-1-git-send-email-xiaochen.shen@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 12, 2021 at 03:55:23PM +0800, Xiaochen Shen wrote: > commit 1421ec684a43379b2aa3cfda20b03d38282dc990 upstream. > > Resctrl test suite accepts command line argument "-t" to specify the > unit tests to run in the test list (e.g., -t mbm,mba,cmt,cat) as > documented in the help. > > When calling strtok() to parse the option, the incorrect delimiters > argument ":\t" is used. As a result, passing "-t mbm,mba,cmt,cat" throws > an invalid option error. > > Fix this by using delimiters argument "," instead of ":\t" for parsing > of unit tests list. At the same time, remove the unnecessary "spaces" > between the unit tests in help documentation to prevent confusion. > > Fixes: 790bf585b0ee ("selftests/resctrl: Add Cache Allocation Technology (CAT) selftest") > Fixes: 78941183d1b1 ("selftests/resctrl: Add Cache QoS Monitoring (CQM) selftest") > Fixes: ecdbb911f22d ("selftests/resctrl: Add MBM test") > Fixes: 034c7678dd2c ("selftests/resctrl: Add README for resctrl tests") > Cc: stable@vger.kernel.org > Signed-off-by: Xiaochen Shen > Reviewed-by: Tony Luck > Signed-off-by: Shuah Khan > --- > tools/testing/selftests/resctrl/README | 2 +- > tools/testing/selftests/resctrl/resctrl_tests.c | 4 ++-- > 2 files changed, 3 insertions(+), 3 deletions(-) > Both now queued up, thanks. greg k-h