Messages in this thread | | | From | Namhyung Kim <> | Date | Wed, 30 Nov 2022 10:35:03 -0800 | Subject | Re: [PATCH] perf: Fix interpretation of branch records |
| |
On Wed, Nov 30, 2022 at 8:52 AM James Clark <james.clark@arm.com> wrote: > > Commit 93315e46b000 ("perf/core: Add speculation info to branch > entries") added a new field in between type and new_type. Perf has > its own copy of this struct so update it to match the kernel side. > > This doesn't currently cause any issues because new_type is only used > by the Arm BRBE driver which isn't merged yet. > > Fixes: 93315e46b000 ("perf/core: Add speculation info to branch entries") > Signed-off-by: James Clark <james.clark@arm.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Thanks, Namhyung
> --- > tools/perf/util/branch.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/tools/perf/util/branch.h b/tools/perf/util/branch.h > index d6017c9b1872..3ed792db1125 100644 > --- a/tools/perf/util/branch.h > +++ b/tools/perf/util/branch.h > @@ -22,9 +22,10 @@ struct branch_flags { > u64 abort:1; > u64 cycles:16; > u64 type:4; > + u64 spec:2; > u64 new_type:4; > u64 priv:3; > - u64 reserved:33; > + u64 reserved:31; > }; > }; > }; > -- > 2.25.1 >
| |