All of lore.kernel.org
 help / color / mirror / Atom feed
From: long.wanglong@huawei.com (long.wanglong)
To: linux-arm-kernel@lists.infradead.org
Subject: How to support multiple watchpoints on kernel after 3.10 when using arm debug architectures prior to 7.1?
Date: Wed, 12 Aug 2015 11:14:23 +0800	[thread overview]
Message-ID: <55CABA0F.9020901@huawei.com> (raw)

Hi, all

The linux kernel after 3.10 (after the commit c512de95 "ARM:
hw_breakpoint: reserve one breakpoint for watchpoint stepping" )
reserve a single breakpoint, regardless of the number of watchpoints,
when the hardware use the ARM Debug architectures prior to 7.1.

On these older CPUS, how to support multiple watchpoints when
using kernel after 3.10?

Are there any risks if we change the function 'get_num_wrps(void)'
and force it returning the number of watchpoints the hardware have?

Best Regards
Wang Long

             reply	other threads:[~2015-08-12  3:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-12  3:14 long.wanglong [this message]
2015-08-12  9:53 ` How to support multiple watchpoints on kernel after 3.10 when using arm debug architectures prior to 7.1? Will Deacon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55CABA0F.9020901@huawei.com \
    --to=long.wanglong@huawei.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.