Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35791906rwd; Mon, 10 Jul 2023 12:40:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlEVTJtvNmBscbvLYy9ykp9dgFO4glk84jYWf++VXL+TIFaki/Gx+nLKv0Z9UHshZl6wMod1 X-Received: by 2002:a05:6a20:b918:b0:131:5b6f:ccb6 with SMTP id fe24-20020a056a20b91800b001315b6fccb6mr5913903pzb.19.1689018040074; Mon, 10 Jul 2023 12:40:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689018040; cv=none; d=google.com; s=arc-20160816; b=T3Kl6T+yiN/YEdU/2gtcU8KGCWN41LT8d6anmaMy7MUjoJbsHP0CCkfz7L856a7wQa Ito6PAt4jZdDnob5K6dQkAnH/KkIXuxCohnijSeUjEBDgWiL8g3LpYWpECuygJLgmiul kQilydMFQ6V1aA9vQXlDR0mKadhUrigcsjbEYUliEF5SXQX0yc4RswYSSnUaIENXADgt FvrGOHPel7jGcef1bdtk/At7RkThB4Wzj6qpMSnUUHopFwfdiEe0k8FrnnRqEVRJ2U9i eRovXTBS5quzRlceSguiRF7+a2WsrW+CFDi6tX1ADvEeUxfwIC2CLeNmyr81vI5fRQhr ij9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=KJl6xBiueEAkIKarvHIBEAsPNJcVrx9T6j5N5ztqHmI=; fh=QPJkUTJsMvz4O0Qbrc/2wjY6L+UWpQQ3brPSkmVoXvA=; b=FArj9ncGhZj3Avi1mG5l/kcQtebSSOrdKt+eV9wsnRBJags0Lyy/UpN/BDtvnQ5vH9 yZTyjNVGah/ri4WYm7TTnEaZ9Ww8Xez73d8HTGAoQGsCSsviNZDLm1wvhx0qvrTr9c57 iIoC+7HWyRJ84e5k9C8tQvzcM0DGcjd2t+UFtx6+p9tpPjonBzm2xo8sC6HVx4R6Tx46 DFgcDBIozoavGAyrfZFyQn2eh3xltmeGwWP88RN/Uj7co38hbJK3vGSMhe5pXXdtaTiG I+ykdbE/7XM5BoBGrP4pTmQ7Y3Fi9Ir+VhqUZShCEisFfKsKjOEZb7xogRGxdLfPvkAy i+/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=nAv4PnLM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x14-20020a170902a38e00b001b7ecbbaa13si269807pla.152.2023.07.10.12.40.27; Mon, 10 Jul 2023 12:40:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=nAv4PnLM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229863AbjGJTd0 (ORCPT + 99 others); Mon, 10 Jul 2023 15:33:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230247AbjGJTdW (ORCPT ); Mon, 10 Jul 2023 15:33:22 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1D64BC; Mon, 10 Jul 2023 12:33:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description; bh=KJl6xBiueEAkIKarvHIBEAsPNJcVrx9T6j5N5ztqHmI=; b=nAv4PnLMR9ljIg3pN8qz2+SZdQ GnmTnnxMRnlYcmbRvgD7WPnmwyeQ4fMQnm+EY8Y6E1cwAHCeDQTgFZnMBBUayjjVcqu8G4XOKbqY4 qG9CSjIIsy7WAo4JDGM39MqIcah9cXtT7z+LFQqr5lXwqrUcXJDIp682dmFSR0+trTl45YLmSV4It OwnqWnkVje/HfFzgPdF9KKgtM/RNRpgMXde0XpXcU/k3VkvBUYrIvQ4EB4jxWAOMmYCgyxC7HilZF yNMeLg6Atw9GM0f/mr03zdv7JF/iQBoCJAzfmt/341pm/mEKlEHpDQ+NTwFVM5p5vZCE6vLz4q36F b5tRrv4Q==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1qIwdA-00CZRB-2M; Mon, 10 Jul 2023 19:33:08 +0000 Date: Mon, 10 Jul 2023 12:33:08 -0700 From: Luis Chamberlain To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Jason Baron , Jim Cromie , Jonathan Corbet , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH v2 3/3] dyndbg: add source filename to prefix Message-ID: References: <20230709-dyndbg-filename-v2-0-fd83beef0925@weissschuh.net> <20230709-dyndbg-filename-v2-3-fd83beef0925@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230709-dyndbg-filename-v2-3-fd83beef0925@weissschuh.net> Sender: Luis Chamberlain X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 09, 2023 at 11:18:00PM +0200, Thomas Wei?schuh wrote: > Printing the line number without the file is of limited usefulness. > > Knowing the filename also makes it also easier to relate the logged > information to the controlfile. > > Example: > > # modprobe test_dynamic_debug > # echo 'file test_dynamic_debug.c =pfsl' > /proc/dynamic_debug/control > # echo 1 > /sys/module/test_dynamic_debug/parameters/do_prints > # dmesg | tail -2 > [ 71.802212] do_cats:lib/test_dynamic_debug.c:103: test_dd: doing categories > [ 71.802227] do_levels:lib/test_dynamic_debug.c:123: test_dd: doing levels > > Signed-off-by: Thomas Wei?schuh > Acked-by: Jim Cromie > Acked-by: Jason Baron Reviewed-by: Luis Chamberlain Luis