From: cov@codeaurora.org (Christopher Covington)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 10/11] coresight-etm4x: Controls pertaining to the context ID functions
Date: Thu, 23 Apr 2015 12:59:51 -0400 [thread overview]
Message-ID: <55392507.1030103@codeaurora.org> (raw)
In-Reply-To: <CANLsYkw-XwEW9gaXVr07fqHspZU+Vo7FukN7Qz6S07L6jC5ENA@mail.gmail.com>
On 04/23/2015 11:16 AM, Mathieu Poirier wrote:
> On 23 April 2015 at 09:08, Christopher Covington <cov@codeaurora.org> wrote:
>> Hi Mathieu,
>>
>> On 04/22/2015 06:40 PM, Mathieu Poirier wrote:
>>> From: Pratik Patel <pratikp@codeaurora.org>
>>>
>>> Adding sysfs entries to access and configure specifics about the
>>> context ID comparator functions.
>>>
>>> Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
>>> Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
>>> ---
>>> .../ABI/testing/sysfs-bus-coresight-devices-etm4x | 19 +++
>>> drivers/hwtracing/coresight/coresight-etm4x.c | 187 +++++++++++++++++++++
>>> 2 files changed, 206 insertions(+)
>>>
>>> diff --git a/Documentation/ABI/testing/sysfs-bus-coresight-devices-etm4x b/Documentation/ABI/testing/sysfs-bus-coresight-devices-etm4x
>>> index b5c0456290ab..8b32cb7b9723 100644
>>> --- a/Documentation/ABI/testing/sysfs-bus-coresight-devices-etm4x
>>> +++ b/Documentation/ABI/testing/sysfs-bus-coresight-devices-etm4x
>>> @@ -254,3 +254,22 @@ Date: April 2015
>>> KernelVersion: 4.01
>>> Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
>>> Description: (RW) Controls the selection of the resources in the trace unit.
>>> +
>>> +What: /sys/bus/coresight/devices/<memory_map>.etm/ctxid_idx
>>> +Date: April 2015
>>> +KernelVersion: 4.01
>>> +Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
>>> +Description: (RW) Select which context ID comparator to work with.
>>> +
>>> +What: /sys/bus/coresight/devices/<memory_map>.etm/ctxid_val
>>> +Date: April 2015
>>> +KernelVersion: 4.01
>>> +Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
>>> +Description: (RW) Get/Set the context ID comparator value to trigger on.
>>
>> If I'm understanding this correctly, ctxid_val is multiplexed using ctxid_idx.
>> Why not just have ctxid_val0, ctxid_val1, ...?
>
> There can be up to 8 of them on the current implementation and who
> knows how many more in the future. To me using and index to select
> the context ID to work on scaled better and is introducing less
> clutter in sysfs.
In theory there's a race condition if two tasks are trying to set the index
and then the value, which having individually addressable values solves, but I
don't anticipate trying to use more than one task to configure tracing.
Chris
--
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
next prev parent reply other threads:[~2015-04-23 16:59 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-22 22:40 [PATCH 00/11] Support for coresight ETMv4 tracer Mathieu Poirier
2015-04-22 22:40 ` [PATCH 01/11] coresight-etm4x: Adding CoreSight ETM4x driver Mathieu Poirier
2015-04-23 15:17 ` Christopher Covington
2015-04-24 15:05 ` Ivan T. Ivanov
2015-04-27 15:51 ` Mathieu Poirier
2015-04-24 15:41 ` Ivan T. Ivanov
2015-04-27 15:48 ` Mathieu Poirier
2015-04-28 8:30 ` Ivan T. Ivanov
2015-04-28 20:32 ` Mathieu Poirier
2015-04-28 12:23 ` Linus Walleij
2015-04-28 12:28 ` Linus Walleij
2015-05-08 14:07 ` Mathieu Poirier
2015-04-22 22:40 ` [PATCH 02/11] coresight-etm4x: Controls pertaining to tracer configuration Mathieu Poirier
2015-04-22 22:40 ` [PATCH 03/11] coresight-etm4x: Controls pertaining to the reset, mode, pe and events Mathieu Poirier
2015-04-22 22:40 ` [PATCH 04/11] coresight-etm4x: Controls pertaining to various configuration options Mathieu Poirier
2015-04-22 22:40 ` [PATCH 05/11] coresight-etm4x: Controls pertaining to the ViewInst register Mathieu Poirier
2015-04-22 22:40 ` [PATCH 06/11] coresight-etm4x: Controls pertaining to the address comparator functions Mathieu Poirier
2015-04-22 22:40 ` [PATCH 07/11] coresight-etm4x: Controls pertaining to the sequencer functions Mathieu Poirier
2015-04-22 22:40 ` [PATCH 08/11] coresight-etm4x: Controls pertaining to the counter functions Mathieu Poirier
2015-04-22 22:40 ` [PATCH 09/11] coresight-etm4x: Controls pertaining to the selection of resources Mathieu Poirier
2015-04-22 22:40 ` [PATCH 10/11] coresight-etm4x: Controls pertaining to the context ID functions Mathieu Poirier
2015-04-23 15:08 ` Christopher Covington
2015-04-23 15:16 ` Mathieu Poirier
2015-04-23 16:59 ` Christopher Covington [this message]
2015-04-22 22:40 ` [PATCH 11/11] coresight-etm4x: Controls pertaining to the VM " Mathieu Poirier
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=55392507.1030103@codeaurora.org \
--to=cov@codeaurora.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).