Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp454836lqo; Thu, 16 May 2024 10:49:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWAoxJWC3V5bT0+Yn82STiIzXZgrJtWzwsh1oZhc5L2k8eAD7U/Vo8rT3ixtT9jf3j2uB5RFdeze8O0SWfnFR1CtmY9ZwlLaVA/l7TlAA== X-Google-Smtp-Source: AGHT+IH4u7V4lRqYK6fMiO4XYptQnI0OGC2WDAzKANKbvVE6ogpyPhZFZF0l/fpHmoqB/YNZc/5E X-Received: by 2002:a17:903:32ce:b0:1e0:c0b9:589e with SMTP id d9443c01a7336-1eefa5746d3mr357687655ad.25.1715881742495; Thu, 16 May 2024 10:49:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715881742; cv=pass; d=google.com; s=arc-20160816; b=CmpjLlL4xgfXmaJ465yphIJbAGhV/mTVnugCiaXZng9fT72RICKipVxmlkeHVzX0Jr 4bXVJ976/MvKgCIFUsTJGVsoTrW56Kozb5XYVoK/CXYg7Gunb4Y4GH8Ud9h912cdUdpS fQ+HJRJR2/V0ROkTKZSh2o99PBWNdZ6entzbAkdDB0GBuc+EO5i/b89cXr4fQIcwQOMR degoPEih4MgFLfp/JJ5fHkZ9WysRaEpB/kwCvITYj67LaRFTiO2Bdld/D3Lp3pk/6Tyo WdYX1XsrWa8QvWRrItz5OPMRBRyXjU3Wu67MiMG6oS88vV+vyYYhjh5NPsR0KStRVGjU MImg== 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=v1/6ZyOjyDKXy+eVnlQt6M6tqfLK/4vR0B+QR44xbZ0=; fh=SKSBpeVxk1gd+b0kQPKlxkRreBtjdRexdJXmdBN9t20=; b=t7YlaSabRyg49hRFU2Dro4ogvoAgciRkeTIiC84CGsewuYXI7Ck4ppEJ2sGmvhn6h9 ldw5MCOyuVdD1uVcw4o1k7s3tH1PCoBLwmgh3XDo+ktfjXMKkzw4NQTVPV5YxvFRoZpv 0kDFPzrGGjjOd7U/NRqRgHHA50/4QbqGtalU1iAnttJjaUBxT0uXykWTyHDKXWnHuQr0 mDOQA1QKok0Z4eyCCh0ui5Tg7SjrAjJfBeLrcwGeQnSKcrLmj9tJHb5OJW6ZYV4IY5kH wYC9rIJJhjDoWoUAWYY72YlbeywN/dyOlyUqK8LzdvxIsiigmO8lxAQk0XqEsATMK1V2 iwew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="VaiZWjn/"; 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-181404-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181404-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 d9443c01a7336-1ef0c15359dsi171490285ad.459.2024.05.16.10.49.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 10:49:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181404-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="VaiZWjn/"; 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-181404-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181404-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 B3CAA281FA5 for ; Thu, 16 May 2024 17:48:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 61DF615AAB1; Thu, 16 May 2024 17:45:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VaiZWjn/" Received: from mail-io1-f42.google.com (mail-io1-f42.google.com [209.85.166.42]) (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 8418D158DBF for ; Thu, 16 May 2024 17:45:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715881507; cv=none; b=B8ubNGxj46IlYekLav3xZN0YZmtvde4w/fXa8tLIfWoCD9AUknY+uWpgULVJHuMgdf12rTAf3Xlv7KP+0czI2RQm2mP9ASp6CEK2ZLv7opNofUy2D4IlSFXI7P+oujlLXikIkHanATGRqocImEvWdhb61TK84thtnzCBYQ+F0SM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715881507; c=relaxed/simple; bh=8iUlHoA18CODHTvP01/7nn44Fu6mfDtGqRxAHN6bArU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=j+8PKB9IlHuc648EVTFpiig0ODTdOfiuUSvzZqsU5NrFGReyYnNjWQtGQLn6Xf+9wyni+PR21ghhnM3Kq6ru8qQP7wxWEOG2ozukbaugSVoyQzZOcNTY9D3GLMENfPu4fCwLenn7mubvln4o+B0x5MVG5o8PnRUur72vIGUVveQ= 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=VaiZWjn/; arc=none smtp.client-ip=209.85.166.42 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-f42.google.com with SMTP id ca18e2360f4ac-7e1c2ea8481so29715239f.0 for ; Thu, 16 May 2024 10:45:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715881505; x=1716486305; 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=v1/6ZyOjyDKXy+eVnlQt6M6tqfLK/4vR0B+QR44xbZ0=; b=VaiZWjn/Ugl+HtgfbTjxCTcR60NkI872PlG19/eap16EkassUA6+uNFYZOudAJU7GL YE1PijxtSb5BTMtemqLazeJInz3lRGZljDrQvwZ0ePqL4tS9qWyTCIE/XCuvZa3ZpH5G UygyHS36slN9bs7zCLN5lufoZWq3gpo7pSxwsTQ5KoLnJmK8VVIMhBtrcGcki6ZCgf84 93sK0GSaZvBNDSHNYwjWJ1LGUjLwu7xMIlqLiL2GKOmW58Qgf/UAb+H2aKbV0XBGccKf 55iXAsA6pNiVa2Oifri7QmFaenbOUxiz/kIw4TQyt6Yobn+5FA/o8IcSfYK2TSH5Q5pK TOzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715881505; x=1716486305; 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=v1/6ZyOjyDKXy+eVnlQt6M6tqfLK/4vR0B+QR44xbZ0=; b=om3d/ld5hfFWGUNIKUlAABy4sYYIB0AVvjqQ+uXKFHZfLMdVbnkoVB+015UkL5OaJg Dd7CbrbbiHtXYXeXJuRw2ZBe0Xd8d5ddYtec3APK82rtHiH+gYHeMmCU5vt41IzNrIMv 3JEArPaXQn7hxIboka+XRAjrsomz3FK0aZ//LQKm7t+Fb5NRFHdewQyNZ9YJl88iU29A 24NmouM7vnW8f4pfI5RKAck4X0jfQwrTKQk50/5KKteFe1T93OIzJMWK800BVgHNvjNE oBVSHkk3ILtBqvbosOIpQgbbhzSmwLVQe/fMGCY+v8hGyiPtfXwpOy0sIJ2BJmf7VW6r cbTg== X-Forwarded-Encrypted: i=1; AJvYcCVkjkUzx0P2GzNc7U5NmCIl5FCyquIaiy13SsD7g8UYnhPzraY/Bc3mjyBaX7x0UfQ9fWpBgC/u9sVeXvJ9NWvMytfpA4On1/UCKITF X-Gm-Message-State: AOJu0YwQAl6QFQHOuLQ2/I8HVSsz9C+rZTyS7tQHWDtWXDV7heIlswen amoRmb+IGmHQGwmex5Uvn6P9TdqHhNTsO8vp3ukczT+h5LIZ0VDJ X-Received: by 2002:a05:6602:3049:b0:7e1:d5cc:84bf with SMTP id ca18e2360f4ac-7e1d5cc851dmr1109118639f.6.1715881504096; Thu, 16 May 2024 10:45:04 -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 8926c6da1cb9f-4893715057csm4273595173.80.2024.05.16.10.45.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 10:45:03 -0700 (PDT) From: Jim Cromie To: jbaron@akamai.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org Cc: ukaszb@chromium.org, linux@rasmusvillemoes.dk, joe@perches.com, mcgrof@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-RESEND 22/33] dyndbg: split multi-query strings with % Date: Thu, 16 May 2024 11:43:46 -0600 Message-ID: <20240516174357.26755-23-jim.cromie@gmail.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240516174357.26755-1-jim.cromie@gmail.com> References: <20240516174357.26755-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 Multi-query strings have long allowed: modprobe drm dyndbg="class DRM_UT_CORE +p; class DRM_UT_KMS +p" modprobe drm dyndbg=< [ 203.902703] dyndbg: query parse failed [ 203.902871] dyndbg: processed 2 queries, with 0 matches, 2 errs bash: echo: write error: Invalid argument The '%' splits the input into 2 queries, and both fail. Given the limited utility of matching against the working parts of a format string "foo: %d bar %s", nothing is actually lost here. Signed-off-by: Jim Cromie --- lib/dynamic_debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index c1bc728cb050..625838bd74aa 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -596,7 +596,7 @@ static int ddebug_exec_queries(char *query, const char *modname) int i, errs = 0, exitcode = 0, rc, nfound = 0; for (i = 0; query; query = split) { - split = strpbrk(query, ";\n"); + split = strpbrk(query, "%;\n"); if (split) *split++ = '\0'; -- 2.45.0