[LTP] [PATCH] pt_test: skip pt_disable_branch on Broadwell CPUs

Jan Stancek jstancek@redhat.com
Mon Nov 4 16:55:07 CET 2019



----- Original Message -----
> 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>

Pushed.

> 
> ...
> > @@ -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