[LTP] [PATCH] pt_test: skip pt_disable_branch on Broadwell CPUs
Petr Vorel
pvorel@suse.cz
Fri Nov 1 08:12:44 CET 2019
Hi Jan,
> commit d35869ba348d ("perf/x86/intel/pt: Allow the disabling of branch tracing")
> disallows not setting BRANCH_EN due to erratum BDM106 on Broadwell CPUs.
> Signed-off-by: Jan Stancek <jstancek@redhat.com>
Reviewed-by: Petr Vorel <pvorel@suse.cz>
...
> @@ -145,6 +171,11 @@ static void setup(void)
> attr.size = sizeof(struct perf_event_attr);
> attr.mmap = 1;
> if (str_branch_flag) {
> + if (is_affected_by_erratum_BDM106()) {
> + tst_brk(TCONF, "erratum BDM106 disallows not "
> + "setting BRANCH_EN on this CPU");
I'd join string (to be on single line), even it's longer than 80.
(better for grep)
Kind regards,
Petr
More information about the ltp
mailing list