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


Groups > linux.kernel > #1506282 > unrolled thread

[patch] perf_event_open.2: add PERF_SAMPLE_BRANCH_CALL branch sample type

Started byVince Weaver <vincent.weaver@maine.edu>
First post2016-10-21 23:00 +0200
Last post2016-10-22 12:00 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [patch] perf_event_open.2: add PERF_SAMPLE_BRANCH_CALL branch sample  type Vince Weaver <vincent.weaver@maine.edu> - 2016-10-21 23:00 +0200
    Re: [patch] perf_event_open.2: add PERF_SAMPLE_BRANCH_CALL branch  sample type "Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com> - 2016-10-22 12:00 +0200

#1506282 — [patch] perf_event_open.2: add PERF_SAMPLE_BRANCH_CALL branch sample type

FromVince Weaver <vincent.weaver@maine.edu>
Date2016-10-21 23:00 +0200
Subject[patch] perf_event_open.2: add PERF_SAMPLE_BRANCH_CALL branch sample type
Message-ID<suP50-2kf-15@gated-at.bofh.it>
Linux 4.4 (c229bf9dc179d2023e185c0f705bdf68484c1e73) added
the PERF_SAMPLE_BRANCH_CALL branch sample type, which confusingly
is a direct-call only subset of what PERF_SAMPLE_BRANCH_ANY_CALL
provides.

Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>

diff --git a/man2/perf_event_open.2 b/man2/perf_event_open.2
index fade28c..8d985b3 100644
--- a/man2/perf_event_open.2
+++ b/man2/perf_event_open.2
@@ -1256,14 +1256,18 @@ following bits must be set.
 Any branch type.
 .TP
 .B PERF_SAMPLE_BRANCH_ANY_CALL
-Any call branch.
-.TP
-.B PERF_SAMPLE_BRANCH_ANY_RETURN
-Any return branch.
+Any call branch (includes direct calls, indirect calls, and far jumps).
 .TP
 .B PERF_SAMPLE_BRANCH_IND_CALL
 Indirect calls.
 .TP
+.BR PERF_SAMPLE_BRANCH_CALL " (since Linux 4.4)"
+.\" commit c229bf9dc179d2023e185c0f705bdf68484c1e73
+Direct calls.
+.TP
+.B PERF_SAMPLE_BRANCH_ANY_RETURN
+Any return branch.
+.TP
 .BR PERF_SAMPLE_BRANCH_IND_JUMP " (since Linux 4.2)"
 .\" commit c9fdfa14c3792c0160849c484e83aa57afd80ccc
 Indirect jumps.

[toc] | [next] | [standalone]


#1506481 — Re: [patch] perf_event_open.2: add PERF_SAMPLE_BRANCH_CALL branch sample type

From"Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com>
Date2016-10-22 12:00 +0200
SubjectRe: [patch] perf_event_open.2: add PERF_SAMPLE_BRANCH_CALL branch sample type
Message-ID<sv1fP-1I3-13@gated-at.bofh.it>
In reply to#1506282
Hi Vince,

On 10/21/2016 10:55 PM, Vince Weaver wrote:
> 
> Linux 4.4 (c229bf9dc179d2023e185c0f705bdf68484c1e73) added
> the PERF_SAMPLE_BRANCH_CALL branch sample type, which confusingly
> is a direct-call only subset of what PERF_SAMPLE_BRANCH_ANY_CALL
> provides.

Thanks. Applied.

Cheers,

Michael


> Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
> 
> diff --git a/man2/perf_event_open.2 b/man2/perf_event_open.2
> index fade28c..8d985b3 100644
> --- a/man2/perf_event_open.2
> +++ b/man2/perf_event_open.2
> @@ -1256,14 +1256,18 @@ following bits must be set.
>  Any branch type.
>  .TP
>  .B PERF_SAMPLE_BRANCH_ANY_CALL
> -Any call branch.
> -.TP
> -.B PERF_SAMPLE_BRANCH_ANY_RETURN
> -Any return branch.
> +Any call branch (includes direct calls, indirect calls, and far jumps).
>  .TP
>  .B PERF_SAMPLE_BRANCH_IND_CALL
>  Indirect calls.
>  .TP
> +.BR PERF_SAMPLE_BRANCH_CALL " (since Linux 4.4)"
> +.\" commit c229bf9dc179d2023e185c0f705bdf68484c1e73
> +Direct calls.
> +.TP
> +.B PERF_SAMPLE_BRANCH_ANY_RETURN
> +Any return branch.
> +.TP
>  .BR PERF_SAMPLE_BRANCH_IND_JUMP " (since Linux 4.2)"
>  .\" commit c9fdfa14c3792c0160849c484e83aa57afd80ccc
>  Indirect jumps.
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web