[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <685d54bf6ff69_2cdbad29439@iweiny-mobl.notmuch>
Date: Thu, 26 Jun 2025 09:10:07 -0500
From: Ira Weiny <ira.weiny@...el.com>
To: Yuquan Wang <wangyuquan1236@...tium.com.cn>, <dave@...olabs.net>,
<jonathan.cameron@...wei.com>, <dave.jiang@...el.com>,
<alison.schofield@...el.com>, <vishal.l.verma@...el.com>,
<ira.weiny@...el.com>, <dan.j.williams@...el.com>
CC: <linux-cxl@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<chenbaozi@...tium.com.cn>, Yuquan Wang <wangyuquan1236@...tium.com.cn>
Subject: Re: [PATCH] cxl: Add CONFIG_CXL_DEBUG to drivers/cxl
Yuquan Wang wrote:
> CONFIG_CXL_DEBUG=y adds -DDEBUG to CFLAGS, which enables pr_debug()
> and dev_dbg(). Users can use this config to open all cxl debug
> messages.
There is no need for this.
Dynamic debugging can be turned on at run time.[1]
For example here is what run_qemu[2] adds to the cmdline to debug cxl with
cxl-test.
cxl_acpi.dyndbg=+fplm cxl_pci.dyndbg=+fplm cxl_core.dyndbg=+fplm
cxl_mem.dyndbg=+fplm cxl_pmem.dyndbg=+fplm cxl_port.dyndbg=+fplm
cxl_region.dyndbg=+fplm cxl_test.dyndbg=+fplm cxl_mock.dyndbg=+fplm
cxl_mock_mem.dyndbg=+fplm
Ira
[1] https://www.kernel.org/doc/html/v4.14/admin-guide/dynamic-debug-howto.html
[2] https://github.com/pmem/run_qemu
[snip]
Powered by blists - more mailing lists