Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1214655

Re: [PATCH 2/5] coresight-etm4x: Change the name of the ctxid_val to ctxid_pid

From Christopher Covington <cov@codeaurora.org>
Newsgroups linux.kernel
Subject Re: [PATCH 2/5] coresight-etm4x: Change the name of the ctxid_val to ctxid_pid
Date 2015-08-27 17:40 +0200
Message-ID <q27rr-8j-9@gated-at.bofh.it> (permalink)
References <pJwJI-3ot-7@gated-at.bofh.it> <pJwJJ-3ot-39@gated-at.bofh.it> <q1N9o-4tM-21@gated-at.bofh.it> <q2786-8ds-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 08/27/2015 11:12 AM, Mathieu Poirier wrote:
> On 26 August 2015 at 11:57, Christopher Covington <cov@codeaurora.org> wrote:
>> On 07/07/2015 04:41 AM, Chunyan Zhang wrote:
>>> 'ctxid_val' array was used to store the value of ETM context ID comparator
>>> which actually stores the process ID to be traced, so using 'ctxid_pid' as
>>> its name instead make it easier to understand.
>>
>> Previous discussion with some ARM folks has led me to believe there isn't a
>> guarantee that the Context ID Register will always have a PID. Why not allow
>> filtering on thread group ID, session ID, cgroup related identifiers, etc.?
> 
> Coresight tracers only support contextID tracing.  The HW
> automatically does the match between the contextID comparator register
> in the tracer with the contextID register of the core.  Tracing is
> enabled if both values match (and the tracer is configured to do so).

Is there a reason to only ever allow Process IDs to be written into the
Coresight and CPU Context ID registers? Is there anything in the hardware that
would prevent writing, for example, Thread Group IDs into the Coresight and
CPU Context ID registers? If there's no hardware limitation, why should there
be kernel or device tree architecture that states or implies that patches to
support such a use case are unacceptable?

Thanks,
Christopher Covington

-- 
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH 2/5] coresight-etm4x: Change the name of the  ctxid_val to ctxid_pid Christopher Covington <cov@codeaurora.org> - 2015-08-26 20:00 +0200
  Re: [PATCH 2/5] coresight-etm4x: Change the name of the ctxid_val to ctxid_pid Mathieu Poirier <mathieu.poirier@linaro.org> - 2015-08-27 17:20 +0200
    Re: [PATCH 2/5] coresight-etm4x: Change the name of the  ctxid_val to ctxid_pid Christopher Covington <cov@codeaurora.org> - 2015-08-27 17:40 +0200
      Re: [PATCH 2/5] coresight-etm4x: Change the name of the ctxid_val to ctxid_pid Mathieu Poirier <mathieu.poirier@linaro.org> - 2015-08-27 18:00 +0200

csiph-web