* [patch] perf_event_open.2 -- clarify PERF_SAMPLE_DATA_SRC usage
@ 2014-07-14 14:33 Vince Weaver
[not found] ` <alpine.DEB.2.11.1407141025570.16796-6xBS8L8d439fDsnSvq7Uqyn2WXadKZNJe7X0jjDqjFGHXe+LvDLADg@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Vince Weaver @ 2014-07-14 14:33 UTC (permalink / raw)
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
linux-man-u79uwXL29TY76Z2rM5mHXA
When checking the fields in the PERF_SAMPLE_DATA_SRC type samples you need
to shift the masks before doing the compare.
Although the value you are checking (perf_mem_data_src) is specified as a
bitfield so this might all far apart if trying to access the field in a
cross-endian way. The Power people were working on this issue, not sure
if they resolved it.
Signed-off-by: Vince Weaver <vincent.weaver-e7X0jjDqjFGHXe+LvDLADg@public.gmane.org>
diff --git a/man2/perf_event_open.2 b/man2/perf_event_open.2
index 47e9984..3d70300 100644
--- a/man2/perf_event_open.2
+++ b/man2/perf_event_open.2
@@ -1935,7 +1935,9 @@ Executable code
.PD
.TP
.I mem_lvl
-Memory hierarchy level hit or miss, a bitwise combination of:
+Memory hierarchy level hit or miss, a bitwise combination of
+the following, shifted left by
+.BR PERF_MEM_LVL_SHIFT :
.PD 0
.RS
@@ -1985,7 +1987,8 @@ Uncached memory
.PD
.TP
.I mem_snoop
-Snoop mode, a bitwise combination of:
+Snoop mode, a bitwise combination of the following, shifted left by
+.BR PERF_MEM_SNOOP_SHIFT :
.PD 0
.RS
@@ -2008,7 +2011,8 @@ Snoop hit modified
.PD
.TP
.I mem_lock
-Lock instruction, a bitwise combination of:
+Lock instruction, a bitwise combination of the following, shifted left by
+.BR PERF_MEM_LOCK_SHIFT :
.PD 0
.RS
@@ -2022,7 +2026,9 @@ Locked transaction
.PD
.TP
.I mem_dtlb
-TLB access hit or miss, a bitwise combination of:
+TLB access hit or miss, a bitwise combination of the following, shifted
+left by
+.BR PERF_MEM_TLB_SHIFT :
.PD 0
.RS
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 3+ messages in thread[parent not found: <alpine.DEB.2.11.1407141025570.16796-6xBS8L8d439fDsnSvq7Uqyn2WXadKZNJe7X0jjDqjFGHXe+LvDLADg@public.gmane.org>]
* Re: [patch] perf_event_open.2 -- clarify PERF_SAMPLE_DATA_SRC usage [not found] ` <alpine.DEB.2.11.1407141025570.16796-6xBS8L8d439fDsnSvq7Uqyn2WXadKZNJe7X0jjDqjFGHXe+LvDLADg@public.gmane.org> @ 2014-07-15 4:33 ` Michael Kerrisk (man-pages) [not found] ` <53C4AEFE.1050605-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Michael Kerrisk (man-pages) @ 2014-07-15 4:33 UTC (permalink / raw) To: Vince Weaver, linux-man-u79uwXL29TY76Z2rM5mHXA Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w On 07/14/2014 04:33 PM, Vince Weaver wrote: > > When checking the fields in the PERF_SAMPLE_DATA_SRC type samples you need > to shift the masks before doing the compare. > > Although the value you are checking (perf_mem_data_src) is specified as a > bitfield so this might all far apart if trying to access the field in a > cross-endian way. The Power people were working on this issue, not sure > if they resolved it. Thanks, Vince. Applied. In the changelog text above, I changed "far" to "fall". Okay? Cheers, Michael > Signed-off-by: Vince Weaver <vincent.weaver-e7X0jjDqjFGHXe+LvDLADg@public.gmane.org> > > diff --git a/man2/perf_event_open.2 b/man2/perf_event_open.2 > index 47e9984..3d70300 100644 > --- a/man2/perf_event_open.2 > +++ b/man2/perf_event_open.2 > @@ -1935,7 +1935,9 @@ Executable code > .PD > .TP > .I mem_lvl > -Memory hierarchy level hit or miss, a bitwise combination of: > +Memory hierarchy level hit or miss, a bitwise combination of > +the following, shifted left by > +.BR PERF_MEM_LVL_SHIFT : > > .PD 0 > .RS > @@ -1985,7 +1987,8 @@ Uncached memory > .PD > .TP > .I mem_snoop > -Snoop mode, a bitwise combination of: > +Snoop mode, a bitwise combination of the following, shifted left by > +.BR PERF_MEM_SNOOP_SHIFT : > > .PD 0 > .RS > @@ -2008,7 +2011,8 @@ Snoop hit modified > .PD > .TP > .I mem_lock > -Lock instruction, a bitwise combination of: > +Lock instruction, a bitwise combination of the following, shifted left by > +.BR PERF_MEM_LOCK_SHIFT : > > .PD 0 > .RS > @@ -2022,7 +2026,9 @@ Locked transaction > .PD > .TP > .I mem_dtlb > -TLB access hit or miss, a bitwise combination of: > +TLB access hit or miss, a bitwise combination of the following, shifted > +left by > +.BR PERF_MEM_TLB_SHIFT : > > .PD 0 > .RS > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <53C4AEFE.1050605-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: [patch] perf_event_open.2 -- clarify PERF_SAMPLE_DATA_SRC usage [not found] ` <53C4AEFE.1050605-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2014-07-28 13:39 ` Vince Weaver 0 siblings, 0 replies; 3+ messages in thread From: Vince Weaver @ 2014-07-28 13:39 UTC (permalink / raw) To: Michael Kerrisk (man-pages); +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA On Tue, 15 Jul 2014, Michael Kerrisk (man-pages) wrote: > Thanks, Vince. Applied. > > In the changelog text above, I changed "far" to "fall". Okay? yes, that's fine. I should obviously proofread the changelogs better before sending things off. Vince -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-07-28 13:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-14 14:33 [patch] perf_event_open.2 -- clarify PERF_SAMPLE_DATA_SRC usage Vince Weaver
[not found] ` <alpine.DEB.2.11.1407141025570.16796-6xBS8L8d439fDsnSvq7Uqyn2WXadKZNJe7X0jjDqjFGHXe+LvDLADg@public.gmane.org>
2014-07-15 4:33 ` Michael Kerrisk (man-pages)
[not found] ` <53C4AEFE.1050605-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-07-28 13:39 ` Vince Weaver
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.