Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2023098rdb; Thu, 7 Dec 2023 16:16:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IEayF8gefNLTsRrGYNdx122qOfWnVoLHopm8KC9NtehtvDrpmdkSEcU03AONqZ4VrcoKqIJ X-Received: by 2002:a17:902:7d8a:b0:1d0:d04a:7bfa with SMTP id a10-20020a1709027d8a00b001d0d04a7bfamr2954024plm.90.1701994598717; Thu, 07 Dec 2023 16:16:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701994598; cv=none; d=google.com; s=arc-20160816; b=pr+WLjdnfbWI2L1a2XUAjX8bUf0/MVbK+O59i8ITTA1wvcpKLlDC+tPA+hrk0G36AQ +YGRzT9LfvVcTuN6s4mrUjKAaZgFvysEn67t2moKBzL4gE99qxO7xWlhs4/+eOFHCbcM 0Ph/NMXHq31vNmAnAay6feADLg+Uc7u4njiIDpQfhqkReiG+1iqkAg1McpgtrO6FE2VZ oW/Sp2VH4DwTHebfgyh8NqhU0X98e9xcMYu6y0ZkGER99QlVzRgcSFechkbiYtsdKhFM KEnUaRceRmTAmMH/fqce3x6EmRfsqPuOM5vGEZ2oVFv2e7v2ub5/9cNqNZzNejsa0Agz ha0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MCkZIwhi88nd/yzrQGwCF8kQMXxopVxRCEGtmZwQBaw=; fh=Zewmf3wThiipMhDjR96yol5QxF5bGjQ0muN6YDM9mM0=; b=J3fXakCYZgwv7YQa7KrNpxZ0lhBdQjs7MNBmKTGLuk4emY0KADVEfX5Y/N8OYfOYhJ JQ3QLjqc3FcUP40+k4oIcGwFQqmfC6294edcf0o8kfwxUdY4BAg2KclaRvbnJzJj32i8 8cZeHl+szNNtOzzTy1gDPtoyNvQibdKor4PrPOTMyW9UD/3eDIn/7P9PE1APpNA+6QmK F5ZTGRfUvYFBokAxlmxcF4JbnSnOtqEUnXnxlsodbdpOCMaUKR1i/oeP45UM1aAmzSr0 LQYJCYWQlI95J6j21namK4sBSHDYVn0mDB2Ui1Deg4PibeqjCKB8k/hG1g4CUiaPuSxD pbgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=l2IXjgR5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id x6-20020a170902b40600b001d06b5f9af4si531929plr.441.2023.12.07.16.16.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 16:16:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=l2IXjgR5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 4DC338561653; Thu, 7 Dec 2023 16:16:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1444155AbjLHAQB (ORCPT + 99 others); Thu, 7 Dec 2023 19:16:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1444162AbjLHAP3 (ORCPT ); Thu, 7 Dec 2023 19:15:29 -0500 Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09D4A1718 for ; Thu, 7 Dec 2023 16:15:32 -0800 (PST) Received: by mail-io1-xd2b.google.com with SMTP id ca18e2360f4ac-7b459364167so55469439f.2 for ; Thu, 07 Dec 2023 16:15:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701994531; x=1702599331; 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=MCkZIwhi88nd/yzrQGwCF8kQMXxopVxRCEGtmZwQBaw=; b=l2IXjgR5KyRh26bbU9L28nP8CJjg6bC0LR7i+LwDQLfFaQolP0ug8BtNpxjMTsK77E zIKErZ5aWQSBXGZWoE3tvZk337IeG4LM14LQw4MGfoKPsAiWNbm0oTu163j+Zl4B47co 8DHDqdQ6JDMhLr+okbPxKgFWj/MjZWAEpxL+h04jUwG97ZNSa15+EfRPep1zpQj71VUd Epa4n5RyBAlytTMMC/Ir8lO/dJZCoAcy3zNbsnXHUjyN99A2iLWyjvnKirJFLfsBUgSh 6FmMJGJJKr8o+eL1mTEahfK/pLExdVllP3Sz+t8UlXS0QJZrJL0h7R15NI/sBpN9Knj2 7ZRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701994531; x=1702599331; 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=MCkZIwhi88nd/yzrQGwCF8kQMXxopVxRCEGtmZwQBaw=; b=t5Is/Jl0EaOWWPqzqfbcDx2/36vt4QmdCQ4nibbz+VzphSKBAq4Gahs8dc9PAGTq9F c4QbEWy49NrXRKduY3QbiQae87Fbqhv9+BuHPWJ7ouC9HjPCJBFeDCq37IB8d4e1HdGc W1lK+ihuKWuKuRt/cHgW6hNbnKCCgcDPxb8QwfpVK7gsV0qH/qpvSXjjCR/sXtBsO1sh eOHe3D1U2rVdduXOKmhWa5cdtqKXccY7VxPdYxNw40kWJyal180Zov0oG6CpQqoG8Q7c p9a80b0vDvS5LYXag+H7P/vwuokcGlp5djFjq5IykR/BxWP847F8ZclGAuWe4FgJNTQv bqNg== X-Gm-Message-State: AOJu0YwwwdCqLL4H1OgRwb6fQysrVtFvWiaKuMCtOOrWAENWFZvlSxHn Y8/2ywxnH8EpzTxUSDyFmDw= X-Received: by 2002:a5e:c818:0:b0:7b7:ea:befe with SMTP id y24-20020a5ec818000000b007b700eabefemr1482198iol.14.1701994531316; Thu, 07 Dec 2023 16:15:31 -0800 (PST) Received: from frodo.. (c-73-78-62-130.hsd1.co.comcast.net. [73.78.62.130]) by smtp.googlemail.com with ESMTPSA id z18-20020a056638241200b004664a0a7f2csm184652jat.177.2023.12.07.16.15.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 16:15:30 -0800 (PST) From: Jim Cromie To: lb@semihalf.com, linux-kernel@vger.kernel.org Cc: akpm@linux-foundation.org, bleung@google.com, contact@emersion.fr, daniel@ffwll.ch, dianders@chromium.org, groeck@google.com, jbaron@akamai.com, jim.cromie@gmail.com, john.ogness@linutronix.de, keescook@chromium.org, pmladek@suse.com, ppaalanen@gmail.com, rostedt@goodmis.org, seanpaul@chromium.org, sergey.senozhatsky@gmail.com, upstream@semihalf.com, vincent.whitchurch@axis.com, yanivt@google.com, gregkh@linuxfoundation.org Subject: [re: PATCH v2 00/15 - 07/11] dyndbg: __skip_spaces Date: Thu, 7 Dec 2023 17:15:10 -0700 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 07 Dec 2023 16:16:25 -0800 (PST) This private version treats a comma like a space. Its not known necessary ATM, but seems prudent. Signed-off-by: Jim Cromie --- lib/dynamic_debug.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index a380b8151dd8..c974f6e19ca1 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -628,6 +628,14 @@ static int ddebug_change(const struct ddebug_query *query, return nfound; } +char *__skip_spaces(const char *str) +{ + str = skip_spaces(str); + if (*str == ',') + str = skip_spaces(++str); + return (char *)str; +} + /* * Split the buffer `buf' into space-separated words. * Handles simple " and ' quoting, i.e. without nested, @@ -642,7 +650,7 @@ static int ddebug_tokenize(char *buf, char *words[], int maxwords) char *end; /* Skip leading whitespace */ - buf = skip_spaces(buf); + buf = __skip_spaces(buf); if (!*buf) break; /* oh, it was trailing whitespace */ if (*buf == '#') @@ -959,7 +967,7 @@ static int ddebug_exec_queries(char *query, const char *modname) if (split) *split++ = '\0'; - query = skip_spaces(query); + query = __skip_spaces(query); if (!query || !*query || *query == '#') continue; -- 2.43.0