Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp883343pxb; Wed, 29 Sep 2021 11:40:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFwad4MCzNC16ZtR8XKdPMMxur/kZ6okyS/a/SDX+o8rBEsxJuXRR8Sn1vXaDDtqbCH81g X-Received: by 2002:a17:906:8cd:: with SMTP id o13mr1456855eje.341.1632940852695; Wed, 29 Sep 2021 11:40:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632940852; cv=none; d=google.com; s=arc-20160816; b=JLPO171VW4o8Ztx6l4m1gvKfewMw5ZJd13Uf9Qiu8cxyEvYR/3uYvHLRXRsP9rF7UF xFFSqh2IkJ8JxV+EQiNT7hhfv45nISLm3iezwoQxciYIHohzm1erDJY8eSLCbq+504EZ KTW13MEbmQKV4AcaM/QJbeK2jVip16Xsr0ObFtgNpwEp8nsxLOGtE2Syk1zGX+q6V2Vr SjtYVRf5NUAggSqe3L68GdmfOFYUpAH+iWXi8FYQmwXrJitRLJmGUsOFNXaJXVZDK4V/ WEWE5R5b7SPfgzHngx5nSVsfSjWAdsjJ3F6NiWzIV99yaF+jLBUczfXdgZUKReO+89w/ 3XCg== 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=y5FCFf0C4oPIZwuqL7lPMiJhEyMaVRPCG7T2XvgpeF0=; b=WxdkXM12SNgpA5uyN6gQcF850yqM5DEL1RhMkGrf2CD4hstEytaWxH/iT7ufFhTfHK Q61CWP9ZSsexs9l2sC9tFOSq9D97xlm4GBtdoXb8LL/trthC3HXJJCCRPBXQacEM1/6j NK9Rr6DqH0UpAALmAVNTHh1tfYY6Un5f9NEGKLdkem5BJ3OX3pe+JQfKlMHvZx9vrVdj yKSSZa7tEHOcFRmi2xj+ZI0NDohEYgBwZ7Fma2s9U+Qrm+CPJsBwNYk02zrcxXdG6PHv UA8D4KdvN0jCLazMwaxvJpH3r66V0ljlTMvO9ocPNMGc1p6vMZjdYmqXtKIXn1oJ5Eno H0OA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HAbUx5BL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c19si638731ejj.716.2021.09.29.11.40.17; Wed, 29 Sep 2021 11:40:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HAbUx5BL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346343AbhI2Sjn (ORCPT + 99 others); Wed, 29 Sep 2021 14:39:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346310AbhI2Sjh (ORCPT ); Wed, 29 Sep 2021 14:39:37 -0400 Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A6BBC061768 for ; Wed, 29 Sep 2021 11:37:54 -0700 (PDT) Received: by mail-io1-xd33.google.com with SMTP id e144so4368078iof.3 for ; Wed, 29 Sep 2021 11:37:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=y5FCFf0C4oPIZwuqL7lPMiJhEyMaVRPCG7T2XvgpeF0=; b=HAbUx5BLsXZ8QXbYdFVdP2m1BzSphksnGorTRCHkXbgqOiZQ4V6ZNj9RTsyENC8tBi RX226/a28xdVqC1B0FkZBUu64zZ/W8fBBuW1pSMWPM9RDbRG7mF/26SUUr84IZmdJ/h4 71EuOjJGngDjehdVcGicU766GRrXxQB5zneVkalJwmx07wDbLignrAWmIXoNNTeDsRlw Z5aJAknUuj/erXAzNu9FIucyYjao7Nt7BIFFHlSa1Nsb2/LhEhAwGFHSFRPAarcQVEWI X0j6Q50+ZuvbMAwVEYbTUM3qJlLITH3Bulo8oPOa3XnWPp6MiGQev0mQ+yaRDGrvDiMW 0DiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=y5FCFf0C4oPIZwuqL7lPMiJhEyMaVRPCG7T2XvgpeF0=; b=yotJrS4w+EamUjQmZdmi0zBohQimJwMR0xhjt+OVR9vVWUzxMndXRBxcCSHoNF01jC /B+hY4B964x9KD/3TiknJr+gcHSkjhVz+gcc42up6LlTsdSPZHI7nwOOcLQ4HUMikajv dKFMaoGUqlctMmuRsc0yNIfZgJ8NSSkXy1C/tN6PQTZfN+gSYmKKrfRyEV03h4BoiqCz PSNDpIriy2exWjIO4mi0MRU7QZcPH5Rryd+2jLqch63JyFMqSimHglauieCNBWe9Ac5d WEASbhQe0xt3J6D/XCf7mKv2YLrqNR0WY7WfH59uSKHy+imPrbkSnW3x3nHnBSy8jOve exWA== X-Gm-Message-State: AOAM530pE/yPlF2a+sSgJZ5ZCkOmZlSCV3/3/Ayh4s/ob+UvBoT4NbmC cwcFEw4go3EVEmCobDCpohk= X-Received: by 2002:a05:6602:345:: with SMTP id w5mr900950iou.49.1632940673529; Wed, 29 Sep 2021 11:37:53 -0700 (PDT) Received: from samwise.. (c-24-9-77-57.hsd1.co.comcast.net. [24.9.77.57]) by smtp.googlemail.com with ESMTPSA id y2sm317041ioj.12.2021.09.29.11.37.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Sep 2021 11:37:53 -0700 (PDT) From: Jim Cromie To: jbaron@akamai.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org Cc: Jim Cromie Subject: [PATCH 5/6] dyndbg: vpr-info on remove-module complete, not starting Date: Wed, 29 Sep 2021 12:37:34 -0600 Message-Id: <20210929183735.6630-6-jim.cromie@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210929183735.6630-1-jim.cromie@gmail.com> References: <20210929183735.6630-1-jim.cromie@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On qemu --smp 3 runs, remove-module can get called 3 times. Instead, print once at end, if entry was found and removed. Signed-off-by: Jim Cromie --- lib/dynamic_debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index d762bf4172f4..8230fdc66d9d 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -1030,8 +1030,6 @@ int ddebug_remove_module(const char *mod_name) struct ddebug_table *dt, *nextdt; int ret = -ENOENT; - v2pr_info("removing module <%s>\n", mod_name); - mutex_lock(&ddebug_lock); list_for_each_entry_safe(dt, nextdt, &ddebug_tables, link) { if (dt->mod_name == mod_name) { @@ -1041,6 +1039,8 @@ int ddebug_remove_module(const char *mod_name) } } mutex_unlock(&ddebug_lock); + if (!ret) + v2pr_info("removed module <%s>\n", mod_name); return ret; } -- 2.31.1