lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Mon, 24 Feb 2020 09:28:35 +0800
From:   "Xu, Like" <like.xu@...el.com>
To:     陈弋玺 <jasoncyx@....com>,
        linux-kernel@...r.kernel.org, linux-x86_64@...r.kernel.org
Subject: Re: [Ask for Help]LBR usage in kernel

Hi 弋玺,

On 2020/2/20 21:53, 陈弋玺 wrote:
> Hi experts,
>      We want to try to retreive callchains of some perf events from LBR rather than frame stacks, as the information in frame stacks would be optimized by compiler. After investigating the usage of LBR in kernel, we found that LBR can only operated via Intel PMU,
The default driver to operate LBR on the Linux is the PMU deriver,
which is one of perf feature ofs and I assume you know about its basic usages.

     perf record -b ./workload
     perf record --call-graph lbr ./workload

Other performance monitoring tools like Emon, VTune and other non-opensource
commercial tools in Ring 0 could operate LBR as well.
> that means for now only callchains of hardware events can be retrieved from LBR. Is that correct?
the callchains and the basic branch records in sampling mode.
>   
>      If yes, I wonder if callchains of other perf events(eg. tracepoint, software events) can be retrieved from LBR?
Software events like trace points are not retrieved from LBR,
but you could wrapper them with intentional branch instructions changes.

> Or only callchains of events on PMU can be retrieved from LBR as there are some hardware restrictions?
I won't say its hardware restrictions but intentional behavior.
It's all about your innovative ideas to operate LBR for your purpose.

Thanks,
Like Xu
>
> Thanks for any help you can offer!
>
> Best Regards,
> Yixi Chen

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ