lkml.org 
[lkml]   [2022]   [Jun]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v2] perf test: Add ARM SPE system wide test
Hi Leo,

On Fri, Jun 17, 2022 at 12:45 AM Leo Yan <leo.yan@linaro.org> wrote:
>
> On Fri, Jun 17, 2022 at 03:38:40PM +0800, Leo Yan wrote:
> > Hi Namhyung,
> >
> > On Thu, Jun 16, 2022 at 04:05:46PM -0700, Namhyung Kim wrote:
> >
> > [...]
> >
> > > +arm_spe_system_wide_test() {
> > > + echo "Recording trace with system-wide mode $perfdata"
> > > + perf record -o ${perfdata} -e arm_spe// -a \
> > > + -- dd if=/dev/zero of=/dev/null count=100000 > /dev/null 2>&1
> > > +
> > > + if [ $? != 0 ]; then
> > > + arm_spe_report "SPE system-wide testing" 2
> > > + return
> > > + fi
> >
> > I am awared the root permission issue after I saw German's suggestion.
> >
> > If the snapshot test is passed, no matter the system wide test is passed
> > or not, we will always return 0 for 'passed' result. But we might miss
> > to capture the system-wide testing failure.
> >
> > How about use 'dummy' event to verіfy the root permission?
> > (actually I referred to intel-pt test):
> >
> > perf record -o ${perfdata} -B -N --no-bpf-event -e dummy:u -a true 2>&1 >/dev/null
> > if [ $? != 0 ]; then
> > arm_spe_report "SPE system-wide testing" 2
> > return
> > fi
> >
> > perf record -o ${perfdata} -e arm_spe// -a \
> > -- dd if=/dev/zero of=/dev/null count=100000 > /dev/null 2>&1

Ok, will add the change.

Thanks,
Namhyung

\
 
 \ /
  Last update: 2022-06-24 08:23    [W:0.034 / U:0.880 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site