<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Is it possible to set a hardware breakpoint on a memory write in Linux on the i.MX6ULL? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Is-it-possible-to-set-a-hardware-breakpoint-on-a-memory-write-in/m-p/2062137#M235103</link>
    <description>Maybe this code is obsolete that you sent?&lt;BR /&gt;&lt;BR /&gt;jiffies probably is no longer a symbol.&lt;BR /&gt;&lt;BR /&gt;Here is a symbol:&lt;BR /&gt;&lt;BR /&gt;bash# modprobe databrkpt ksym=pm_power_off_prepare&lt;BR /&gt;[ 1405.440261] Failed to register hardware breakpoint: -19&lt;BR /&gt;[ 1405.445552] Breakpoint registration failed&lt;BR /&gt;modprobe: ERROR: could not insert 'databrkpt': No such device&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;pm_poweroff_prepare is found here:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;kernel/reboot.c:EXPORT_SYMBOL_GPL(pm_power_off_prepare);&lt;BR /&gt;&lt;BR /&gt;So the question remains, how does one set a hardware breakpoint? Are there kernel configuration parameters that I have not set?</description>
    <pubDate>Fri, 14 Mar 2025 14:26:51 GMT</pubDate>
    <dc:creator>JohnKlug</dc:creator>
    <dc:date>2025-03-14T14:26:51Z</dc:date>
    <item>
      <title>Is it possible to set a hardware breakpoint on a memory write in Linux on the i.MX6ULL?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Is-it-possible-to-set-a-hardware-breakpoint-on-a-memory-write-in/m-p/2061599#M235073</link>
      <description>&lt;LI-CODE lang="c"&gt;		attr.bp_addr = (unsigned long)&amp;amp;mydata;
		attr.bp_len = HW_BREAKPOINT_LEN_4;
		attr.bp_type = HW_BREAKPOINT_W;
		bps = register_wide_hw_breakpoint(&amp;amp;attr, gpio_dump_stack, NULL);
		if(IS_ERR(bps)) {
		    pr_err("Failed to register hardware breakpoint: %ld\n",PTR_ERR(bps));
		    bps = NULL;
NULL);
		}&lt;/LI-CODE&gt;&lt;P&gt;This prints:&lt;BR /&gt;Failed to register hardware breakpoint: -19&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-19 is ENODEV.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I have the following flags added to the kernel:&lt;BR /&gt;CONFIG_HAVE_HW_BREAKPOINT=y&lt;BR /&gt;CONFIG_KPROBES=y&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I am using kernel:&lt;BR /&gt;&lt;A href="https://github.com/nxp-imx/linux-imx.git" target="_blank"&gt;https://github.com/nxp-imx/linux-imx.git&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;With branch lf-5.15.y&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 21:18:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Is-it-possible-to-set-a-hardware-breakpoint-on-a-memory-write-in/m-p/2061599#M235073</guid>
      <dc:creator>JohnKlug</dc:creator>
      <dc:date>2025-03-13T21:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to set a hardware breakpoint on a memory write in Linux on the i.MX6ULL?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Is-it-possible-to-set-a-hardware-breakpoint-on-a-memory-write-in/m-p/2061628#M235074</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you for your interest in NXP Semiconductor products,&lt;/P&gt;
&lt;P&gt;You can base the usage of HW BP in the &lt;A href="https://github.com/nxp-imx/linux-imx/blob/e0f9e2afd4cff3f02d71891244b4aa5899dfc786/samples/hw_breakpoint/data_breakpoint.c#L7" target="_self"&gt;next sample&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;It should support any transaction of SDMA memory bus and the core.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 22:50:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Is-it-possible-to-set-a-hardware-breakpoint-on-a-memory-write-in/m-p/2061628#M235074</guid>
      <dc:creator>JosephAtNXP</dc:creator>
      <dc:date>2025-03-13T22:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to set a hardware breakpoint on a memory write in Linux on the i.MX6ULL?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Is-it-possible-to-set-a-hardware-breakpoint-on-a-memory-write-in/m-p/2061644#M235076</link>
      <description>&lt;P&gt;Unfortunately the sample fails in symbol_get:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;bash# modprobe databrkpt&lt;BR /&gt;[ 3868.245139] failing symbol_get of non-GPLONLY symbol jiffies.&lt;BR /&gt;modprobe: ERROR: could not insert 'databrkpt': No such device or address&lt;BR /&gt;&lt;BR /&gt;I shortened the driver name to databrkpt.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This error is found in the code here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/nxp-imx/linux-imx/blob/e0f9e2afd4cff3f02d71891244b4aa5899dfc786/samples/hw_breakpoint/data_breakpoint.c#L47" target="_self"&gt;Symbol not found error&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 00:37:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Is-it-possible-to-set-a-hardware-breakpoint-on-a-memory-write-in/m-p/2061644#M235076</guid>
      <dc:creator>JohnKlug</dc:creator>
      <dc:date>2025-03-14T00:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to set a hardware breakpoint on a memory write in Linux on the i.MX6ULL?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Is-it-possible-to-set-a-hardware-breakpoint-on-a-memory-write-in/m-p/2062137#M235103</link>
      <description>Maybe this code is obsolete that you sent?&lt;BR /&gt;&lt;BR /&gt;jiffies probably is no longer a symbol.&lt;BR /&gt;&lt;BR /&gt;Here is a symbol:&lt;BR /&gt;&lt;BR /&gt;bash# modprobe databrkpt ksym=pm_power_off_prepare&lt;BR /&gt;[ 1405.440261] Failed to register hardware breakpoint: -19&lt;BR /&gt;[ 1405.445552] Breakpoint registration failed&lt;BR /&gt;modprobe: ERROR: could not insert 'databrkpt': No such device&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;pm_poweroff_prepare is found here:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;kernel/reboot.c:EXPORT_SYMBOL_GPL(pm_power_off_prepare);&lt;BR /&gt;&lt;BR /&gt;So the question remains, how does one set a hardware breakpoint? Are there kernel configuration parameters that I have not set?</description>
      <pubDate>Fri, 14 Mar 2025 14:26:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Is-it-possible-to-set-a-hardware-breakpoint-on-a-memory-write-in/m-p/2062137#M235103</guid>
      <dc:creator>JohnKlug</dc:creator>
      <dc:date>2025-03-14T14:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to set a hardware breakpoint on a memory write in Linux on the i.MX6ULL?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Is-it-possible-to-set-a-hardware-breakpoint-on-a-memory-write-in/m-p/2067564#M235458</link>
      <description>We happen to have the Technexion PICO-PI-IMX8M with four cores. The driver you suggests works fine on the i.MX8 CPU on this board. So I will have to move my driver to this platform to debug it.</description>
      <pubDate>Mon, 24 Mar 2025 22:01:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Is-it-possible-to-set-a-hardware-breakpoint-on-a-memory-write-in/m-p/2067564#M235458</guid>
      <dc:creator>JohnKlug</dc:creator>
      <dc:date>2025-03-24T22:01:47Z</dc:date>
    </item>
  </channel>
</rss>

