Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1585648lqa; Mon, 29 Apr 2024 12:41:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXYrhDrr3l5TP8aseRkSpKmrq2NOJ7z9+jWqFKuoIHXLUl+HgrdSnLO0+bQnn36+kWObOtkwXPMD/WcYFQwgm+/AFC0OvtXLRSfEYqbtw== X-Google-Smtp-Source: AGHT+IFfM3JnFByz9ZaB9ichq5ZT+kxSKAEj+WHBYDbJzz+J/50mnOf347ucyPMq9jj7O5BpE92I X-Received: by 2002:a05:6871:e804:b0:221:442d:254b with SMTP id qd4-20020a056871e80400b00221442d254bmr13755960oac.26.1714419689378; Mon, 29 Apr 2024 12:41:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714419689; cv=pass; d=google.com; s=arc-20160816; b=xPhuySFwaTjHWn4Lj/8GKm4wE62rWXEIK08texZU1WviLMglzsvrMhTw7/7xYbs5ig i13AmkrDozfcnJEifvwWL2vufaPs8XJG3WL+pFn1LZmYQXVvQMZK7+/50LsLeZ5wnAFV fqyoC9TjiDk/HEzjdIoqP/+6n8SHm3ddyrtpY4GEy2kfobJIYohkGdkfc3WewXYVhfPf dZsBamz/k5iXQswRI21PVpgsjjCnm477b/zAD8Al8wTp7FefVmK7XcVbvLArUnOEsVjI tDf7Cr6nKLNGRpg+GSGicgVeJm9n91yJMEnX88bJkJN2t6nwhSVYeHNvoVdNJhU1yT3F RcMw== 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=0LYQlvE+T8WA65CtT3d9bMBQ65wsAHik/vFXXFGgqX8=; fh=D9LLkUFX2Z+W7MGtXsWIhxdce9gWTOmK8eQ7EPTuz+A=; b=QNYiiCdprSQfoVupZVWmLs75RPwJwCEFIYwLTDXcnWzM8bD+b71GF5LgAFGOpJ/wXt 2PGIIYT12lLolIZKmntjXn3xUVFQtziBnD6e8mGTljTfFJ8FM2ht/q4IHMTJfLY8HjEY /SKZO/ZM3uvSjBTHWSWiCm+49uY1S0VR+bDmu1potgQe02eHNnaDlSvIaNEJyNcs/yVn jcKAS6hziiZhqEgEymNS1Dbs/tMXpFdYY4vJH6/nBsk+JGnAcepxQM6JEXdJi5pNbFr0 ekirjtZA0+jgD1s33PO1AACf7xOwLWT9wG7RJhfTjCzPSzImdXUWN2kN4IkM/0zNG1td 8f/g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=W4xKcmFH; 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-162944-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162944-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 h190-20020a6383c7000000b0060b5c6f8963si7753969pge.58.2024.04.29.12.41.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 12:41:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162944-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=W4xKcmFH; 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-162944-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162944-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 83D0C284875 for ; Mon, 29 Apr 2024 19:40:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B4C613B5B2; Mon, 29 Apr 2024 19:39:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="W4xKcmFH" Received: from mail-io1-f48.google.com (mail-io1-f48.google.com [209.85.166.48]) (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 BD39113C3C9; Mon, 29 Apr 2024 19:39:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714419573; cv=none; b=I8Bj0UrCB2qWZryv5qDVXXhlwvCUmWB5dqkzr8CAgKfN9zl8OWPZFgxidkB1R5GWYAQeb2PqmHx/c43jf9R2EWlAJdznNJCUCTTyrgB53z+hz3LGDgdsTJetCT4/M87vFLYr8OvjqcbjqOkeAzkT9MSRjVBfAHv2i/GIuqHY5P4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714419573; c=relaxed/simple; bh=Zz98BXo6lbuvyhCQUEGZtTRcSFE48GbPSYaZ0jQWueg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LW5Ym4/yWdJY88KzaYi4yNrwbD6QvI0mkrrkl2GkbS5QtZEpeVRKzlqf9JvjpWP4kmAhw5sFg3e50CyiorWlL/7n1qgC0JAJcfl2cG4y7vdvfbmtOz1eaJc89BZG4hEGW3jte11Dyk7AXv8fW1eMw+/6/Cb/MOxBTx23x4AEkUk= 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=W4xKcmFH; arc=none smtp.client-ip=209.85.166.48 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-f48.google.com with SMTP id ca18e2360f4ac-7da04b08b82so130418539f.0; Mon, 29 Apr 2024 12:39:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714419571; x=1715024371; 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=0LYQlvE+T8WA65CtT3d9bMBQ65wsAHik/vFXXFGgqX8=; b=W4xKcmFHNY+uPVV67n+Or3cN8wEnNlFWBP5bDwF0nKljHOjQ/n3iCA6eHCd3HUxqgP HFBXamVVsCnEXXPXxQ4m8cdr8LWGpHO/89GOwYXTDCWAl9zwLnHyfQVMAVPg6wA2xP4I R083BOB1vMrsvtbOMhSYV59Sxo9ynHgEN3cVO4UyamympWnlu7fy5zdx371IiQm9lSpv UgE4niqHccuqQDGPpvzEihatZVGUOFDRPkr3nYfZ2kE6GegztEcOWc1a+TEpALH1wwNV BMkgeVWuwdzWchKE8tt2kLj+iHC7Ix7vgUWZgTY7G5kbQU29yIgXUoYEvw7AWmCIHA9Y BtPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714419571; x=1715024371; 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=0LYQlvE+T8WA65CtT3d9bMBQ65wsAHik/vFXXFGgqX8=; b=oO+rPWLW7kC+oTdR+B2df1uuMNow7yl4RUUPjSct8DOolQHQSQ99NzaiIEcqotDTuQ HcNgmyUBeY269Q7xPP7THw7KhQY9tqubILO43wivXWQ/08S3TMhDYy3MEAQZ9lOS5UpM aGxT+6InIUtRkTU53defzWHU9Kf8xb6moz6BLaqTtyHbp07Uc4VwdLM0FOYMouhkrRZU XxuvJHvGBdWjJZSE39xXruZ56NOZyaSlPimC87U1yxeNDrN7Dd0CwjwPHMyKqSaQVrTU Q5qIdV+AYrA5p6SDyS0zFf+bbxmiK+fB9P7UeZgxdH1Bqi+Jbj68v4R54aUqa5G/ZjBW CjKA== X-Forwarded-Encrypted: i=1; AJvYcCU14dV+BVx7ehlSG6qA0P7pR5F9lnSxa9pByzVm5RKmTxTab6R5xjDhLQ8r8gOGSoEXWTSFEtXlsR4FdHJ06n+TtMmzKaVoWKJDxVPPcW4nFhUVZqQ+vcf3/Zyq9eO8tFcdlfLAhMBD X-Gm-Message-State: AOJu0YyqyO7Q2RlbYKyvgWug4nUU39O6fTbOH2Wf5/dgOsijuUEDYeSl IlYk29/03ir6L4MrorKMRLXaeqUxc2dmelW/M+0ZHQM55DL6JGmq7sJzkfog X-Received: by 2002:a05:6602:1c92:b0:7d7:56a:1d75 with SMTP id hf18-20020a0566021c9200b007d7056a1d75mr14087995iob.10.1714419571016; Mon, 29 Apr 2024 12:39:31 -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.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 12:39:30 -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 23/35] dyndbg: split multi-query strings with % Date: Mon, 29 Apr 2024 13:39:09 -0600 Message-ID: <20240429193921.66648-4-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 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.44.0