Re: [PATCH v4] pgo: add clang's Profile Guided Optimization infrastructure

2021-01-17 Thread Sedat Dilek
On Sat, Jan 16, 2021 at 1:13 AM Nick Desaulniers wrote: > > > On Wed, Jan 13, 2021 at 8:07 PM Nick Desaulniers > > wrote: > > > > > > On Wed, Jan 13, 2021 at 12:55 PM Nathan Chancellor > > > wrote: > > > > > > > > However, I see an issue with actually using the data: > > > > > > > > $ sudo -s >

Re: [PATCH v4] pgo: add clang's Profile Guided Optimization infrastructure

2021-01-15 Thread Sedat Dilek
On Sat, Jan 16, 2021 at 6:07 AM Sedat Dilek wrote: > > On Sat, Jan 16, 2021 at 1:13 AM Nick Desaulniers > wrote: > > > > > On Wed, Jan 13, 2021 at 8:07 PM Nick Desaulniers > > > wrote: > > > > > > > > On Wed, Jan 13, 2021 at 12:55 PM Nathan Chancellor > > > > wrote: > > > > > > > > > >

Re: [PATCH v4] pgo: add clang's Profile Guided Optimization infrastructure

2021-01-15 Thread Sedat Dilek
On Sat, Jan 16, 2021 at 1:13 AM Nick Desaulniers wrote: > > > On Wed, Jan 13, 2021 at 8:07 PM Nick Desaulniers > > wrote: > > > > > > On Wed, Jan 13, 2021 at 12:55 PM Nathan Chancellor > > > wrote: > > > > > > > > However, I see an issue with actually using the data: > > > > > > > > $ sudo -s >

Re: [PATCH v4] pgo: add clang's Profile Guided Optimization infrastructure

2021-01-15 Thread Sedat Dilek
On Sat, Jan 16, 2021 at 1:13 AM Nick Desaulniers wrote: > > > On Wed, Jan 13, 2021 at 8:07 PM Nick Desaulniers > > wrote: > > > > > > On Wed, Jan 13, 2021 at 12:55 PM Nathan Chancellor > > > wrote: > > > > > > > > However, I see an issue with actually using the data: > > > > > > > > $ sudo -s >

Re: [PATCH v4] pgo: add clang's Profile Guided Optimization infrastructure

2021-01-15 Thread Nick Desaulniers
> On Wed, Jan 13, 2021 at 8:07 PM Nick Desaulniers > wrote: > > > > On Wed, Jan 13, 2021 at 12:55 PM Nathan Chancellor > > wrote: > > > > > > However, I see an issue with actually using the data: > > > > > > $ sudo -s > > > # mount -t debugfs none /sys/kernel/debug > > > # cp -a

Re: [PATCH v4] pgo: add clang's Profile Guided Optimization infrastructure

2021-01-15 Thread Nick Desaulniers
On Wed, Jan 13, 2021 at 8:07 PM Nick Desaulniers wrote: > > On Wed, Jan 13, 2021 at 12:55 PM Nathan Chancellor > wrote: > > > > However, I see an issue with actually using the data: > > > > $ sudo -s > > # mount -t debugfs none /sys/kernel/debug > > # cp -a /sys/kernel/debug/pgo/profraw

Re: [PATCH v4] pgo: add clang's Profile Guided Optimization infrastructure

2021-01-13 Thread Nick Desaulniers
On Wed, Jan 13, 2021 at 12:55 PM Nathan Chancellor wrote: > > However, I see an issue with actually using the data: > > $ sudo -s > # mount -t debugfs none /sys/kernel/debug > # cp -a /sys/kernel/debug/pgo/profraw vmlinux.profraw > # chown nathan:nathan vmlinux.profraw > # exit > $

Re: [PATCH v4] pgo: add clang's Profile Guided Optimization infrastructure

2021-01-13 Thread Bill Wendling
On Wed, Jan 13, 2021 at 12:55 PM Nathan Chancellor wrote: > > Hi Bill, > > On Tue, Jan 12, 2021 at 10:19:58PM -0800, Bill Wendling wrote: > > From: Sami Tolvanen > > > > Enable the use of clang's Profile-Guided Optimization[1]. To generate a > > profile, the kernel is instrumented with PGO

Re: [PATCH v4] pgo: add clang's Profile Guided Optimization infrastructure

2021-01-13 Thread Nick Desaulniers
On Tue, Jan 12, 2021 at 10:20 PM Bill Wendling wrote: > > From: Sami Tolvanen > > Enable the use of clang's Profile-Guided Optimization[1]. To generate a > profile, the kernel is instrumented with PGO counters, a representative > workload is run, and the raw profile data is collected from >

Re: [PATCH v4] pgo: add clang's Profile Guided Optimization infrastructure

2021-01-13 Thread Nathan Chancellor
Hi Bill, On Tue, Jan 12, 2021 at 10:19:58PM -0800, Bill Wendling wrote: > From: Sami Tolvanen > > Enable the use of clang's Profile-Guided Optimization[1]. To generate a > profile, the kernel is instrumented with PGO counters, a representative > workload is run, and the raw profile data is

[PATCH v4] pgo: add clang's Profile Guided Optimization infrastructure

2021-01-12 Thread Bill Wendling
From: Sami Tolvanen Enable the use of clang's Profile-Guided Optimization[1]. To generate a profile, the kernel is instrumented with PGO counters, a representative workload is run, and the raw profile data is collected from /sys/kernel/debug/pgo/profraw. The raw profile data must be processed