Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1585153lqa; Mon, 29 Apr 2024 12:40:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUspcizkn8fwxnmn4a+YOExkq85klurNFO3JWO5SlIonZ6G5s1x6FcORlPkJY8iC4orJLgEJDQPLRIfpFw41kSA4FjlasWcvo+ey8koaQ== X-Google-Smtp-Source: AGHT+IEAI0WBAW/0LBEi6TyiTr224oFd9Jfz+aCFoejoMHReFqGos8sSUo658hozeQTDg3KU317G X-Received: by 2002:a50:d611:0:b0:568:8e22:4eff with SMTP id x17-20020a50d611000000b005688e224effmr327141edi.37.1714419620665; Mon, 29 Apr 2024 12:40:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714419620; cv=pass; d=google.com; s=arc-20160816; b=URdJZdDLUUsxDZfFDVS40Ghf1yjT7DOF2wft785hStJvYpXjlLWBcLFPqL5+gF3Kao i0sSqcXNU1s3jOXtXF8qV0f364ucsgptkw8o/KsAjnDqQqIckkhfATu03IUiPGdhaWa9 a7uze0WwlJVpIWqOGfnT3lhOrlzezUG9A/iZ22bsjjxSa0YUUZvPY5c93auMzAi08tj4 cvh5s8HM8OJbIBHUE69OktWucESzgdfuw8BkYj4KqkpHWFGkzb/X53+gBjZkhurD0LlK dZ1obr3BYYA3iCswXng8uG8U+k9ioQqcig2GIXcY6vhbP2+2YmwM0xo+J2sbAYyCzbJz REAQ== 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=vg38OZx3YLIwABtnQGkinhhYjsiQa4opg6MoojqE7Ag=; fh=4WvibEEAqpgQoJmak/hERgCluhNhxWdjCMNVaiS2lVA=; b=b9pT5MN8NusGPFkecWdl8ejkJ9kNsg1mRocGd9gbLhMEi7SSAP3DglCBxfvKNM+LVu vHYr2hKYu6bgXxNsskO/5txOcCB2YZQaUGeXL7Q3R1KEYAo2qa6gDe5ybiSJD309p2BL mGikDWhY5n4bonHcLK4IvwiXQPEYp0RgtMMAJmu7shpe9To7L6uiWVaNAT9yOdtAcU5w sVrEiysN0m4VuDveEVQuE7C9CAPiOFstS8VKiDQ2ZCt0VvP894tdbRCn4tua+BBK9A8M qMUSwQGPJFYvltPdXqAEXDFSLwIlp/5ATFwZcI7Z3nsepqVTiudN+OZAm5tEfrQ/rot0 aRdA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=UEvDduwB; 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-162945-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162945-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id k14-20020aa7d8ce000000b005727dc83509si1904765eds.1.2024.04.29.12.40.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 12:40:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162945-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=UEvDduwB; 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-162945-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162945-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6734E1F22D99 for ; Mon, 29 Apr 2024 19:40:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 442AF13C83B; Mon, 29 Apr 2024 19:39:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UEvDduwB" Received: from mail-io1-f45.google.com (mail-io1-f45.google.com [209.85.166.45]) (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 E79B613C662; Mon, 29 Apr 2024 19:39:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714419574; cv=none; b=XunrB+a+sbvSEnrsMHtmzSu6A3vWhDHRAt2SuPTiLW2TgdSwoBnca/j5+HpaLthh6M2fgybnOf8N3QGEjTGF/16/LnURXF/fJ9CG+TkObJ4rRMEtPaFI0PbW5tG2PJLY0+VrBul42kpP1SYI2Mp37sJzc7zeRLmp880tlJTil5U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714419574; c=relaxed/simple; bh=HA0meXi/hb7p0axpxiXqsBTheF/w90VGeM/mc8da7p4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ulnrqL4DQokbgX/N2RQM/rZddRplZa01Txtx7giEDDO2mdOldl+NwkXBuC3eYjgByVUMtMlKx5Zn2sTvlsJtFFstg7oysvViTa0bwLNf4ZZRbZML2mB9e7evYWhyCh1M4GDj46RApQg8/HclMJJJ+Ji4OGHXlZRrZKqeUbwhREA= 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=UEvDduwB; arc=none smtp.client-ip=209.85.166.45 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-f45.google.com with SMTP id ca18e2360f4ac-7decb58626aso55756939f.1; Mon, 29 Apr 2024 12:39:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714419572; x=1715024372; 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=vg38OZx3YLIwABtnQGkinhhYjsiQa4opg6MoojqE7Ag=; b=UEvDduwBhe2sOzunixCF+yuMEv2HSfWodUxE/V8ggRfuy4VzGZFNRx3IZogBBcj1GP V2/iIsFqqH8W4gDMSMbXIL3mbqpU5e0fhU/b9DA1CRQiWG6R8A22If4i2AtgxaAfJi/J OBhIlqC83LlEMepsWm+1R9EgGm+X5/41/8SWlTyCeNgo57kXASG0gxSGLFdmIEW2M3Jf EVNOaPhlMU+IrO8wSt8srw4njY8CWq/wVOJbjsPnMd7kEIeZm9IJ9pf2IeHmvY9Pqxxf SIqoqq5q9da2Cegw89kQcZL+psEYXlMeh6vb44MvTSHl7rma49CBTPS+hmqo+i5wOXzB GcJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714419572; x=1715024372; 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=vg38OZx3YLIwABtnQGkinhhYjsiQa4opg6MoojqE7Ag=; b=d7WktnjgqjrvoR1gdOtpotwdTODPPvaWDGi+GfkSAqZp4vLLCmJK/S5hcjHhUlvd4Q bNLYtKyIf+YuEokwIliqgX7/Iu6gM48zMh4/2o0R2OLQuyzXDW29Wzga1lx+vSTrEVjA qX9kdnMRvKZuL9IoJb3eCB7HR8fflLZEqhFPb5p5oNjHc6yXpvHKAGPfwsmxbA7ShUVl nwddUguAs55UxCY5+5J3RxHOdl3+4wLbI3ps5PaDSVWd/l6Z3ZKj7GxBLxbBZba7wW/K 9rCQcYmNNaDGCAoOLbjDo9hCgbJRbyt7YnCbNoNxqRDvN9ORfVpUy3LheluYMkkOXgeO j1TA== X-Forwarded-Encrypted: i=1; AJvYcCW/aaOsLTCZKmhqFuYVZZ8ri6K3Xf0wW2ALocWlWylqjZ+h4GQU1mBhyS/PTsH63nNOedzaW1rIgOl+vF/XorpvkaxUrQJG3pQ499ynC516pAVO5t3OEXnvkH0l18yRY2kseHJ9BfYV X-Gm-Message-State: AOJu0Yy+dKkeRl30xWXFE9NPsnEE8U0xntu0RWXq0l7EBpVbON7Vm4CD 1VdT111pJQpJH+rcGzock0Usfpn4tI22ZzFbxSN2HVomDgxmiRCo X-Received: by 2002:a6b:cf14:0:b0:7de:cb34:98ad with SMTP id o20-20020a6bcf14000000b007decb3498admr583501ioa.1.1714419572068; Mon, 29 Apr 2024 12:39:32 -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.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 12:39:31 -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 24/35] selftests-dyndbg: test_percent_splitting multi-cmds on module classes Date: Mon, 29 Apr 2024 13:39:10 -0600 Message-ID: <20240429193921.66648-5-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 tests multi-queries composed with % splitters. It uses both test_dynamic_debug and test_dynamic_debug_submod, and manipulates several classes at once. So despite the syntactic-oriented name, it also tests classmaps. Signed-off-by: Jim Cromie --- .../dynamic_debug/dyndbg_selftest.sh | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tools/testing/selftests/dynamic_debug/dyndbg_selftest.sh b/tools/testing/selftests/dynamic_debug/dyndbg_selftest.sh index 7a7d437e948b..ddb04c0a7fd2 100755 --- a/tools/testing/selftests/dynamic_debug/dyndbg_selftest.sh +++ b/tools/testing/selftests/dynamic_debug/dyndbg_selftest.sh @@ -231,9 +231,29 @@ function comma_terminator_tests { ddcmd =_ } +function test_percent_splitting { + echo -e "${GREEN}# TEST_PERCENT_SPLITTING - multi-command splitting on % ${NC}" + ifrmmod test_dynamic_debug_submod + ifrmmod test_dynamic_debug + ddcmd =_ + modprobe test_dynamic_debug dyndbg=class,D2_CORE,+pf%class,D2_KMS,+pt%class,D2_ATOMIC,+pm + check_match_ct =pf 1 + check_match_ct =pt 1 + check_match_ct =pm 1 + check_match_ct test_dynamic_debug 23 -r + # add flags to those callsites + ddcmd class,D2_CORE,+mf%class,D2_KMS,+lt%class,D2_ATOMIC,+ml + check_match_ct =pmf 1 + check_match_ct =plt 1 + check_match_ct =pml 1 + check_match_ct test_dynamic_debug 23 -r + ifrmmod test_dynamic_debug +} + tests_list=( basic_tests comma_terminator_tests + test_percent_splitting ) # Run tests -- 2.44.0