From: "Adrien Vergé" <adrienverge@gmail.com>
To: Russell King <linux@arm.linux.org.uk>
Cc: "Adrien Vergé" <adrienverge@gmail.com>,
"Catalin Marinas" <catalin.marinas@arm.com>,
"Will Deacon" <will.deacon@arm.com>,
"Ben Dooks" <ben.dooks@codethink.co.uk>,
"zhangwei(Jovi)" <jovi.zhangwei@huawei.com>,
"Andrew Morton" <akpm@linux-foundation.org>,
"Randy Dunlap" <rdunlap@infradead.org>,
"Mathieu Poirier" <mathieu.poirier@linaro.org>,
"Christopher Covington" <cov@codeaurora.org>,
"Dirk Behme" <dirk.behme@de.bosch.com>,
"Michel Dagenais" <michel.dagenais@polymtl.ca>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: [PATCH V3 0/5] ARM CoreSight: ETM: Fix a vmalloc/vfree failure and enhance tracing control
Date: Thu, 30 Jan 2014 11:11:05 -0500 [thread overview]
Message-ID: <1391098270-8867-1-git-send-email-adrienverge@gmail.com> (raw)
Hi Russell,
Different ARM users have shown their interest in this patch, so I made
a third version that is compatible with PID namespaces.
Mainly:
- It fixes a "vmalloc: allocation failure: 0 bytes" when reading an
ETB buffer that is empty.
- It extends current support of CoreSight ETM, that is currently
very limited.
ETM is a dedicated hardware that provides program tracing, a
cycle-precise and low-overhead solution that software tools such as
'perf record' cannot provide.
Usage of ETM tracing facility is presently limited to start and stop
tracing. This set of patches enables management of address combinations
and PIDs that trigger tracing, thus allowing to trace specific
functions and processes. ETM management was done via sysfs entries
(trace_info, trace_running...), this code adds trace_addrrange and
trace_pid to let the user read/write custom values.
Changes in V2:
- Fix a vmalloc/vfree failure when ETB is empty
- Use device attributes rather than raw kobjects
- Make PID_IN_CONTEXTIDR incompatible with PID_NS in Kconfig
- Use pid_t instead of long
Changes in V3:
- Support tracing processes by their PID in PID namespaces
- Reset PID_IN_CONTEXTIDR and PID_NS independent
This series of patches applies to v3.13.
Adrien Vergé (5):
ARM CoreSight: ETM: Fix a memory allocation failure
ARM CoreSight: ETM: Use device attributes
ARM CoreSight: ETM: Rename 'comparator' to 'address comparator'
ARM CoreSight: ETM: Add address control support
ARM CoreSight: ETM: Add PID control support
arch/arm/include/asm/hardware/coresight.h | 9 +-
arch/arm/kernel/etm.c | 257 ++++++++++++++++++++++++------
2 files changed, 216 insertions(+), 50 deletions(-)
--
1.8.5.3
next reply other threads:[~2014-01-30 16:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-30 16:11 Adrien Vergé [this message]
2014-01-30 16:11 ` [PATCH V3 1/5] ARM CoreSight: ETM: Fix a memory allocation failure Adrien Vergé
2014-01-30 16:11 ` [PATCH V3 2/5] ARM CoreSight: ETM: Use device attributes Adrien Vergé
2014-01-30 16:11 ` [PATCH V3 3/5] ARM CoreSight: ETM: Rename 'comparator' to 'address comparator' Adrien Vergé
2014-01-30 16:11 ` [PATCH V3 4/5] ARM CoreSight: ETM: Add address control support Adrien Vergé
2014-01-30 16:11 ` [PATCH V3 5/5] ARM CoreSight: ETM: Add PID " Adrien Vergé
2014-02-03 10:46 ` 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=1391098270-8867-1-git-send-email-adrienverge@gmail.com \
--to=adrienverge@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=ben.dooks@codethink.co.uk \
--cc=catalin.marinas@arm.com \
--cc=cov@codeaurora.org \
--cc=dirk.behme@de.bosch.com \
--cc=jovi.zhangwei@huawei.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=mathieu.poirier@linaro.org \
--cc=michel.dagenais@polymtl.ca \
--cc=rdunlap@infradead.org \
--cc=will.deacon@arm.com \
/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
all inboxes | Powered by JetHome®