From: Christopher Covington <cov-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
To: Mathieu Poirier
<mathieu.poirier-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Cc: Greg KH
<gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org>,
"linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org"
<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>,
linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
"linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Kaixu Xia <kaixu.xia-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
Chunyan Zhang
<zhang.chunyan-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Subject: Re: [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-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On 04/23/2015 11:16 AM, Mathieu Poirier wrote:
> On 23 April 2015 at 09:08, Christopher Covington <cov-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org> wrote:
>> Hi Mathieu,
>>
>> On 04/22/2015 06:40 PM, Mathieu Poirier wrote:
>>> From: Pratik Patel <pratikp-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
>>>
>>> Adding sysfs entries to access and configure specifics about the
>>> context ID comparator functions.
>>>
>>> Signed-off-by: Pratik Patel <pratikp-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
>>> Signed-off-by: Mathieu Poirier <mathieu.poirier-QSEj5FYQhm4dnm+yROfE0A@public.gmane.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-QSEj5FYQhm4dnm+yROfE0A@public.gmane.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-QSEj5FYQhm4dnm+yROfE0A@public.gmane.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-QSEj5FYQhm4dnm+yROfE0A@public.gmane.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
WARNING: multiple messages have this Message-ID (diff)
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
WARNING: multiple messages have this Message-ID (diff)
From: Christopher Covington <cov@codeaurora.org>
To: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Greg KH <gregkh@linuxfoundation.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
linux-api@vger.kernel.org,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Kaixu Xia <kaixu.xia@linaro.org>,
Chunyan Zhang <zhang.chunyan@linaro.org>
Subject: Re: [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: 65+ 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 ` Mathieu Poirier
[not found] ` <1429742451-11465-1-git-send-email-mathieu.poirier-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2015-04-22 22:40 ` [PATCH 01/11] coresight-etm4x: Adding CoreSight ETM4x driver Mathieu Poirier
2015-04-22 22:40 ` Mathieu Poirier
2015-04-22 22:40 ` Mathieu Poirier
[not found] ` <1429742451-11465-2-git-send-email-mathieu.poirier-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2015-04-23 15:17 ` Christopher Covington
2015-04-23 15:17 ` Christopher Covington
2015-04-23 15:17 ` Christopher Covington
2015-04-24 15:05 ` Ivan T. Ivanov
2015-04-24 15:05 ` Ivan T. Ivanov
2015-04-24 15:05 ` Ivan T. Ivanov
2015-04-27 15:51 ` Mathieu Poirier
2015-04-27 15:51 ` Mathieu Poirier
2015-04-24 15:41 ` Ivan T. Ivanov
2015-04-24 15:41 ` Ivan T. Ivanov
2015-04-24 15:41 ` Ivan T. Ivanov
[not found] ` <1429890108.5211.8.camel-NEYub+7Iv8PQT0dZR+AlfA@public.gmane.org>
2015-04-27 15:48 ` Mathieu Poirier
2015-04-27 15:48 ` Mathieu Poirier
2015-04-27 15:48 ` Mathieu Poirier
[not found] ` <CANLsYky6TZhZ=JZuoBxU4dNRWVPYGUj6joMfi+dD9zjaokRE0A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-04-28 8:30 ` Ivan T. Ivanov
2015-04-28 8:30 ` Ivan T. Ivanov
2015-04-28 8:30 ` Ivan T. Ivanov
[not found] ` <1430209858.1904.1.camel-NEYub+7Iv8PQT0dZR+AlfA@public.gmane.org>
2015-04-28 20:32 ` Mathieu Poirier
2015-04-28 20:32 ` Mathieu Poirier
2015-04-28 20:32 ` Mathieu Poirier
2015-04-28 12:23 ` Linus Walleij
2015-04-28 12:23 ` Linus Walleij
2015-04-28 12:28 ` Linus Walleij
2015-04-28 12:28 ` Linus Walleij
[not found] ` <CACRpkdak5-iuWEDAvhDq3uwYobK+tW_N-t-QaY+-5TUSCa7uOg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-05-08 14:07 ` Mathieu Poirier
2015-05-08 14:07 ` Mathieu Poirier
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 ` Mathieu Poirier
2015-04-22 22:40 ` 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 ` Mathieu Poirier
2015-04-22 22:40 ` 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 ` Mathieu Poirier
2015-04-22 22:40 ` Mathieu Poirier
2015-04-22 22:40 ` [PATCH 10/11] coresight-etm4x: Controls pertaining to the context ID functions Mathieu Poirier
2015-04-22 22:40 ` Mathieu Poirier
2015-04-22 22:40 ` Mathieu Poirier
2015-04-23 15:08 ` Christopher Covington
2015-04-23 15:08 ` Christopher Covington
[not found] ` <55390B05.1050801-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2015-04-23 15:16 ` Mathieu Poirier
2015-04-23 15:16 ` Mathieu Poirier
2015-04-23 15:16 ` Mathieu Poirier
[not found] ` <CANLsYkw-XwEW9gaXVr07fqHspZU+Vo7FukN7Qz6S07L6jC5ENA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-04-23 16:59 ` Christopher Covington [this message]
2015-04-23 16:59 ` Christopher Covington
2015-04-23 16:59 ` Christopher Covington
2015-04-22 22:40 ` [PATCH 04/11] coresight-etm4x: Controls pertaining to various configuration options Mathieu Poirier
2015-04-22 22:40 ` Mathieu Poirier
2015-04-22 22:40 ` 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 ` 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 ` 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 ` 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 ` Mathieu Poirier
2015-04-22 22:40 ` [PATCH 11/11] coresight-etm4x: Controls pertaining to the VM ID functions Mathieu Poirier
2015-04-22 22:40 ` 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-sgv2jx0feol9jmxxk+q4oq@public.gmane.org \
--cc=gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org \
--cc=kaixu.xia-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mathieu.poirier-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=zhang.chunyan-QSEj5FYQhm4dnm+yROfE0A@public.gmane.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.