From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Stancek Date: Mon, 4 Nov 2019 10:55:07 -0500 (EST) Subject: [LTP] [PATCH] pt_test: skip pt_disable_branch on Broadwell CPUs In-Reply-To: <20191101071244.GA4930@dell5510> References: <20191101071244.GA4930@dell5510> Message-ID: <268062442.10361445.1572882907300.JavaMail.zimbra@redhat.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it ----- 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 > Reviewed-by: Petr Vorel 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 >