summaryrefslogtreecommitdiffstats
path: root/include/linux/pti.h
diff options
context:
space:
mode:
authorJ Freyensee <james_p_freyensee@linux.intel.com>2011-06-17 15:09:53 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2011-07-01 15:39:38 -0700
commit8168e9c2de7383c497aff9cd906dd475f9b42b2c (patch)
treec22775a1d4ae33a04d0ed87c3661262425c22688 /include/linux/pti.h
parentfc360ee7a75da5ef96e7fca145b05024bfce4c72 (diff)
downloadop-kernel-dev-8168e9c2de7383c497aff9cd906dd475f9b42b2c.zip
op-kernel-dev-8168e9c2de7383c497aff9cd906dd475f9b42b2c.tar.gz
PTI feature to allow user to name and mark masterchannel request.
This feature addition provides a new parameter in pti_request_masterchannel() to allow the user to provide their own name to mark the request when the trace is viewed in a PTI SW trace viewer (like MPTA). If a name is not provided and NULL is provided, the 'current' process name is used. API function header documentation documents this. Signed-off-by: Jeremy Rocher <rocher.jeremy@gmail.com> Signed-off-by: J Freyensee <james_p_freyensee@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/pti.h')
-rw-r--r--include/linux/pti.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/pti.h b/include/linux/pti.h
index 81af667..b3ea01a 100644
--- a/include/linux/pti.h
+++ b/include/linux/pti.h
@@ -36,7 +36,8 @@ struct pti_masterchannel {
/* the following functions are defined in misc/pti.c */
void pti_writedata(struct pti_masterchannel *mc, u8 *buf, int count);
-struct pti_masterchannel *pti_request_masterchannel(u8 type);
+struct pti_masterchannel *pti_request_masterchannel(u8 type,
+ const char *thread_name);
void pti_release_masterchannel(struct pti_masterchannel *mc);
#endif /*PTI_H_*/
OpenPOWER on IntegriCloud