Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1585624lqa; Mon, 29 Apr 2024 12:41:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVTekiTLSGP75f+GFn/nNqyczTK5tyhMnjUhUlF03OMCFonpO+Me16qEPgKqfHw5ur9u443gGX2iNaGOwNW6lkS8ZtCqGUrxIQo4A+rrA== X-Google-Smtp-Source: AGHT+IH5EhonC0x0XkoHQ6F5zDpSeCpZIgS0+gydQhffkbop8gpiY9nHDYtdAGkSvOVnBHgBYVa8 X-Received: by 2002:a17:90a:fa46:b0:2b1:54e4:e125 with SMTP id dt6-20020a17090afa4600b002b154e4e125mr802301pjb.22.1714419685124; Mon, 29 Apr 2024 12:41:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714419685; cv=pass; d=google.com; s=arc-20160816; b=Me9i8Es54jHqvnR6KrRqTJ+DfUuie4Z/syxT45R2j1D8NOb3JBqnq9vhj1Ui/w0Dbv vS4Mc/IudkYyvwQ3qtv9nOo1mwVzVh4hwreeFeZ0i0oGZtcXS/ft6R0l1SfwdMSW5vqp ZZCILzRJnF5e7eOgKfCmCBvyesYcXFLMakfyvMs5fr5V2PLJPrNtpsrFT/zdSjtd2QJe t1FY1oCT50PzOPJSmoJJPN3wwFUVf/bnwr8keAu18zBpwwKDfqy3XSqoZPgH6skzatrC bs4t6D4ed040Lx/7gjEVVfcEKNo/WKLGRn34QG2nSYVMhekyRR+mixUIl652NzFz3hbQ hVhg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=tsc/9WsGromIBMCX1IbPd4mLGTopgfHgqr35jw6ogHo=; fh=O8wrXH8bSZIotNQonnnMqISPGLprkznJNyiw9X3l71A=; b=p30jsqeNaLq1OGOfeaI+b+FhxLOpddCeVZov7FEEhBhy9/hf2KbxPiwZCV1fFCYikV ILcdGXkamVom7AqtPimhp9lkrYpOFowgXDTMC+vZyvcLWwYBMZnPQuvDNQMVXHxdjtSk HSJiRY/ML7naHspq+BE4KhTuUTvfXmgUjjZMXdM4AKgiYVFy2Shpjig8+XuWsHcpkA+e ZYutCRDba+Tl87jj9k411uLDoDxbO1B29N11ID2HRXyIwC9Xdkzt15inpzTXlV4FsREU gA2o3hT0cHPQIjiIos+ahk+rFsqd+DgPyjFbjrn11GQXHlOfYsBjbxKxRxYJawmKJXVi eQMg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Li5f2pab; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-162943-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162943-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q40-20020a17090a17ab00b002a2140cc869si22254026pja.130.2024.04.29.12.41.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 12:41:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162943-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Li5f2pab; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-162943-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162943-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7048D2846FE for ; Mon, 29 Apr 2024 19:40:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC06313C690; Mon, 29 Apr 2024 19:39:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Li5f2pab" Received: from mail-io1-f49.google.com (mail-io1-f49.google.com [209.85.166.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8F23813BC3C; Mon, 29 Apr 2024 19:39:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714419572; cv=none; b=rGOIhJ76Vb629c5bfa1Dhw+l7otZXOYRQ5rOGvz9djGsNZN4edtSKMDDda9bIQmUQve2E57cfo0jKeHLmQsrE0zK8lvW+u5XHHq9gi/ycRgUiy5VZ/OnM1nxBTg3ndqku4VsT7SI4S4dP2vtqr1ugsUkcn6yyxlIn4ZyachVZJw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714419572; c=relaxed/simple; bh=C5DYJf0dGg1RSXsBs63GsWtBySO28gzBOeTcg35xaOw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DXq3D3meTjXJUqeZHomsny3TwkPGOy4r10HS+3T+rAx+BMDvbAWa7QKL8ZWCdB77PwOtOyVaObnKMFOjRePMDv31swkMNxWX7c8DO0GbPCUQUASgdLQyLLJ/XL5/HKxcNG/sJJxawffYr78nGCmW3TZ3aCH3rl+tMaSTN5OynAs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Li5f2pab; arc=none smtp.client-ip=209.85.166.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-io1-f49.google.com with SMTP id ca18e2360f4ac-7da09662332so160422339f.0; Mon, 29 Apr 2024 12:39:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714419570; x=1715024370; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=tsc/9WsGromIBMCX1IbPd4mLGTopgfHgqr35jw6ogHo=; b=Li5f2pabwBbfQQSYK3JM3yZBxJfBitJ0wWnnyE4yAX2QFpKoLVNmDbL9C87w7zRvJp Z6ERBh4dDgBBxBkARjBgqk+Bs5JSdCPpdIh7UZxIizvmYh/HA0rPcoBTuz/ldJDKzo58 qCMmQixqEGpuXfcccDatc8GaMQmdGlZw5LGtU6AfYJ3MwkaQUbeCwmnW3O4fUIofyHbB ij5AjdKqziFpXOGpj3NwAYan7LPYD43pQSs1/O/5FuPDTwc7x1uHi4dvizGU33FzuLZS RgVUQA3qftB7w1/NYf0AEd68cfMvGPyg3cJpOsn4FkIh96dd0NCntN8a7XzqwipvrYxx P7XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714419570; x=1715024370; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tsc/9WsGromIBMCX1IbPd4mLGTopgfHgqr35jw6ogHo=; b=GAAPmu2VznxtJ25D1X5frerz1LJP3/lRSV+1NiyHBq+7PgnEy6GbxfFbVz2pKFgvFH VKuRY3KKHhjR+8C1ic6BZbeirws2VtDLeqW3aoXzUxBFHmYpNCJi6uV6hptriBEivL2B o0kMxiDiGN5D2Zb1zBuEzBXvx/Z8QjRlZe6b9FHfi5zmpIiqB8RTDHCz2/M0KAD/3gcN 5hBhOSg/dKsY1mJ1iuk4cUNkv1Gqb6x8zsm/sCViNB+cxdtyyAUIvAVO9AvtJr3FIMAp PiyMTAL5WUq4j/Mtmj3Zca/5kaKveN2lMB+1Yx90zpBLbcbAL6HyozvmK57tR03cDdL4 MXrw== X-Forwarded-Encrypted: i=1; AJvYcCW9bvYOEUc5f0wbmvdOxff/XFuzKxn1Kh5vbUyx7zEdpuRjWEV/8oLvT+K47u2YbV9dQNbHG2k7nm0pTysAYjAy7ZBIva+lXZfyNDenjO21NZiZzC5DXnALwg+Hy4hdr8l15g9/czym X-Gm-Message-State: AOJu0Yz45tLOC8Xct4KkKDB6zeS7bvPDYIpQuOPHQjolqLhIfrsGqcNe FxdihwzSNH+rGXYr0IxR13vQiRakNin7tU4vfRXt2yT59aaxp9Uu X-Received: by 2002:a05:6602:2772:b0:7dd:c59c:83a5 with SMTP id l18-20020a056602277200b007ddc59c83a5mr574201ioe.9.1714419569961; Mon, 29 Apr 2024 12:39:29 -0700 (PDT) Received: from frodo.. (c-73-78-62-130.hsd1.co.comcast.net. [73.78.62.130]) by smtp.googlemail.com with ESMTPSA id y16-20020a056602165000b007de9f92dc57sm2325105iow.16.2024.04.29.12.39.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 12:39:29 -0700 (PDT) From: Jim Cromie To: jbaron@akamai.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, intel-gvt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org Cc: ukaszb@chromium.org, linux-doc@vger.kernel.org, daniel.vetter@ffwll.ch, tvrtko.ursulin@linux.intel.com, jani.nikula@intel.com, ville.syrjala@linux.intel.com, seanpaul@chromium.org, robdclark@gmail.com, groeck@google.com, yanivt@google.com, bleung@google.com, Jim Cromie Subject: [PATCH v8 22/35] selftests-dyndbg: add comma_terminator_tests Date: Mon, 29 Apr 2024 13:39:08 -0600 Message-ID: <20240429193921.66648-3-jim.cromie@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240429193921.66648-1-jim.cromie@gmail.com> References: <20240429193921.66648-1-jim.cromie@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit New fn validates parsing and effect of queries using combinations of commas and spaces to delimit the tokens. It manipulates pr-debugs in builtin module/params, so might have deps I havent foreseen on odd configurations. Signed-off-by: Jim Cromie --- .../selftests/dynamic_debug/dyndbg_selftest.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tools/testing/selftests/dynamic_debug/dyndbg_selftest.sh b/tools/testing/selftests/dynamic_debug/dyndbg_selftest.sh index cb77ae142520..7a7d437e948b 100755 --- a/tools/testing/selftests/dynamic_debug/dyndbg_selftest.sh +++ b/tools/testing/selftests/dynamic_debug/dyndbg_selftest.sh @@ -217,9 +217,23 @@ EOF ddcmd =_ } +function comma_terminator_tests { + echo -e "${GREEN}# COMMA_TERMINATOR_TESTS ${NC}" + # try combos of spaces & commas + check_match_ct '\[params\]' 4 -r + ddcmd module,params,=_ # commas as spaces + ddcmd module,params,+mpf # turn on module's pr-debugs + check_match_ct =pmf 4 + ddcmd ,module ,, , params, -p + check_match_ct =mf 4 + ddcmd " , module ,,, , params, -m" # + check_match_ct =f 4 + ddcmd =_ +} tests_list=( basic_tests + comma_terminator_tests ) # Run tests -- 2.44.0