Re: [AUTOFDO][AARCH64] Add support for profilebootstrap

2025-06-09 Thread Richard Sandiford
Kugan Vivekanandarajah writes: > [sending again as the email seems to have not delivered] > > Hi Richard, > >> On 7 Jun 2025, at 1:12 am, Richard Sandiford >> wrote: >> >> External email: Use caution opening links or attachments >> >> >> Jan Hubicka writes: Should I go with:

Re: [AUTOFDO][AARCH64] Add support for profilebootstrap

2025-06-08 Thread Kugan Vivekanandarajah
[sending again as the email seems to have not delivered] Hi Richard, > On 7 Jun 2025, at 1:12 am, Richard Sandiford > wrote: > > External email: Use caution opening links or attachments > > > Jan Hubicka writes: >>> Should I go with: >>> >>> +autofdo_target >>> >>> +autofdo_target="i386"

Re: [AUTOFDO][AARCH64] Add support for profilebootstrap

2025-06-06 Thread Kugan Vivekanandarajah
Hi Ricjard, > On 7 Jun 2025, at 1:12 am, Richard Sandiford > wrote: > > External email: Use caution opening links or attachments > > > Jan Hubicka writes: >>> Should I go with: >>> >>> +autofdo_target >>> >>> +autofdo_target="i386" >>> +case "${target}" in >>> + aarch64-*-*) >>> +autofdo

Re: [AUTOFDO][AARCH64] Add support for profilebootstrap

2025-06-06 Thread Richard Sandiford
Jan Hubicka writes: >> Should I go with: >> >> +autofdo_target >> >> +autofdo_target="i386" >> +case "${target}" in >> + aarch64-*-*) >> +autofdo_target="aarch64" >> +;; >> +esac >> >> As in the first version? I can test and send a patch for review if there is >> no other better alt

Re: [AUTOFDO][AARCH64] Add support for profilebootstrap

2025-06-06 Thread Jan Hubicka
> On 2025-06-06 12:42, Jan Hubicka wrote: > > > Hi, > > > also after fixing this issue my bootstrap failes with: > > > > > > Permission error mapping pages. > > > Consider increasing /proc/sys/kernel/perf_event_mlock_kb, > > > or try again with a smaller value of -m/--mmap_pages. > > > (current va

Re: [AUTOFDO][AARCH64] Add support for profilebootstrap

2025-06-06 Thread Andi Kleen
On 2025-06-06 12:42, Jan Hubicka wrote: Hi, also after fixing this issue my bootstrap failes with: Permission error mapping pages. Consider increasing /proc/sys/kernel/perf_event_mlock_kb, or try again with a smaller value of -m/--mmap_pages. (current value: 4294967295,0) Permission error mappin

Re: [AUTOFDO][AARCH64] Add support for profilebootstrap

2025-06-06 Thread Jan Hubicka
> Hi, > also after fixing this issue my bootstrap failes with: > > Permission error mapping pages. > Consider increasing /proc/sys/kernel/perf_event_mlock_kb, > or try again with a smaller value of -m/--mmap_pages. > (current value: 4294967295,0) > Permission error mapping pages. > Consider increa

Re: [AUTOFDO][AARCH64] Add support for profilebootstrap

2025-06-06 Thread Jan Hubicka
Hi, also after fixing this issue my bootstrap failes with: Permission error mapping pages. Consider increasing /proc/sys/kernel/perf_event_mlock_kb, or try again with a smaller value of -m/--mmap_pages. (current value: 4294967295,0) Permission error mapping pages. Consider increasing /proc/sys/ker

Re: [AUTOFDO][AARCH64] Add support for profilebootstrap

2025-06-06 Thread Kugan Vivekanandarajah
Hi Honza, > On 6 Jun 2025, at 6:34 pm, Jan Hubicka wrote: > > External email: Use caution opening links or attachments > > >> Kugan Vivekanandarajah writes: >>> Add support for autoprofiledbootstrap in aarch64. >>> This is similar to what is done for i386. Added >>> gcc/config/aarch64/gcc-aut

Re: [AUTOFDO][AARCH64] Add support for profilebootstrap

2025-06-06 Thread Jan Hubicka
> Should I go with: > > +autofdo_target > > +autofdo_target="i386" > +case "${target}" in > + aarch64-*-*) > +autofdo_target="aarch64" > +;; > +esac > > As in the first version? I can test and send a patch for review if there is > no other better alternative. This looks OK - I can n

Re: [AUTOFDO][AARCH64] Add support for profilebootstrap

2025-06-06 Thread Jan Hubicka
> Kugan Vivekanandarajah writes: > > Add support for autoprofiledbootstrap in aarch64. > > This is similar to what is done for i386. Added > > gcc/config/aarch64/gcc-auto-profile for aarch64 profile > > creation. > > > > How to run: > > configure --with-build-config=bootstrap-lto > > make autoprof

RE: [AUTOFDO][AARCH64] Add support for profilebootstrap

2025-05-28 Thread Eugene Rozenfeld
The patch looks good to me. Thanks, Eugene From: Kugan Vivekanandarajah Sent: Sunday, May 25, 2025 9:48 PM To: Andrew Pinski Cc: Richard Sandiford ; Andi Kleen ; gcc-patches@gcc.gnu.org; Eugene Rozenfeld Subject: [EXTERNAL] Re: [AUTOFDO][AARCH64] Add support for profilebootstrap > On

Re: [AUTOFDO][AARCH64] Add support for profilebootstrap

2025-05-27 Thread Kugan Vivekanandarajah
> On 26 May 2025, at 2:47 pm, Kugan Vivekanandarajah > wrote: > > External email: Use caution opening links or attachments > > > > On 26 May 2025, at 2:25 pm, Andrew Pinski wrote: > > > > External email: Use caution opening links or attachments > > > > > > On Tue, May 20, 2025 at 3:09 AM

Re: [AUTOFDO][AARCH64] Add support for profilebootstrap

2025-05-25 Thread Kugan Vivekanandarajah
> On 26 May 2025, at 2:25 pm, Andrew Pinski wrote: > > External email: Use caution opening links or attachments > > > On Tue, May 20, 2025 at 3:09 AM Kugan Vivekanandarajah > wrote: >> >> Thanks Richard for the review. >> >>> On 20 May 2025, at 2:47 am, Richard Sandiford >>> wrote: >>> >>> Ex

Re: [AUTOFDO][AARCH64] Add support for profilebootstrap

2025-05-25 Thread Andrew Pinski
On Tue, May 20, 2025 at 3:09 AM Kugan Vivekanandarajah wrote: > > Thanks Richard for the review. > > > On 20 May 2025, at 2:47 am, Richard Sandiford > > wrote: > > > > External email: Use caution opening links or attachments > > > > > > Kugan Vivekanandarajah writes: > >> diff --git a/Makefile.

Re: [AUTOFDO][AARCH64] Add support for profilebootstrap

2025-05-22 Thread Richard Sandiford
Kugan Vivekanandarajah writes: > Add support for autoprofiledbootstrap in aarch64. > This is similar to what is done for i386. Added > gcc/config/aarch64/gcc-auto-profile for aarch64 profile > creation. > > How to run: > configure --with-build-config=bootstrap-lto > make autoprofiledbootstrap > >

Re: [AUTOFDO][AARCH64] Add support for profilebootstrap

2025-05-20 Thread Kugan Vivekanandarajah
Thanks Richard for the review. > On 20 May 2025, at 2:47 am, Richard Sandiford > wrote: > > External email: Use caution opening links or attachments > > > Kugan Vivekanandarajah writes: >> diff --git a/Makefile.in b/Makefile.in >> index b1ed67d3d4f..b5e3e520791 100644 >> --- a/Makefile.in >> ++

Re: [AUTOFDO][AARCH64] Add support for profilebootstrap

2025-05-19 Thread Richard Sandiford
Kugan Vivekanandarajah writes: > diff --git a/Makefile.in b/Makefile.in > index b1ed67d3d4f..b5e3e520791 100644 > --- a/Makefile.in > +++ b/Makefile.in > @@ -4271,7 +4271,7 @@ all-stageautoprofile-bfd: configure-stageautoprofile-bfd > $(HOST_EXPORTS) \ > $(POSTSTAGE1_HOST_EXPORTS) \ >

Re: [AUTOFDO][AARCH64] Add support for profilebootstrap

2025-05-19 Thread Kugan Vivekanandarajah
> On 16 May 2025, at 12:10 am, Andi Kleen wrote: > > External email: Use caution opening links or attachments > > > On Wed, May 14, 2025 at 02:46:15AM +, Kugan Vivekanandarajah wrote: >> Adding Eugene and Andi to CC as Sam suggested. >> >>> On 13 May 2025, at 12:57 am, Richard Sandiford >>

Re: [AUTOFDO][AARCH64] Add support for profilebootstrap

2025-05-15 Thread Andi Kleen
On Wed, May 14, 2025 at 02:46:15AM +, Kugan Vivekanandarajah wrote: > Adding Eugene and Andi to CC as Sam suggested. > > > On 13 May 2025, at 12:57 am, Richard Sandiford > wrote: > > > > External email: Use caution opening links or attachments > > > > > > Kugan Vivekanandarajah writes: > >>

Re: [AUTOFDO][AARCH64] Add support for profilebootstrap

2025-05-14 Thread Richard Sandiford
Kugan Vivekanandarajah writes: > Adding Eugene and Andi to CC as Sam suggested. > >> On 13 May 2025, at 12:57 am, Richard Sandiford >> wrote: >> >> External email: Use caution opening links or attachments >> >> >> Kugan Vivekanandarajah writes: >>> diff --git a/configure.ac b/configure.ac >>> i

Re: [AUTOFDO][AARCH64] Add support for profilebootstrap

2025-05-13 Thread Kugan Vivekanandarajah
Adding Eugene and Andi to CC as Sam suggested. > On 13 May 2025, at 12:57 am, Richard Sandiford > wrote: > > External email: Use caution opening links or attachments > > > Kugan Vivekanandarajah writes: >> diff --git a/configure.ac b/configure.ac >> index 730db3c1402..701284e38f2 100644 >> ---

Re: [AUTOFDO][AARCH64] Add support for profilebootstrap

2025-05-12 Thread Richard Sandiford
Kugan Vivekanandarajah writes: > diff --git a/configure.ac b/configure.ac > index 730db3c1402..701284e38f2 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -621,6 +621,14 @@ case "${target}" in > ;; > esac > > +autofdo_target="i386" > +case "${target}" in > + aarch64-*-*) > +auto

Re: [AUTOFDO][AARCH64] Add support for profilebootstrap

2025-05-10 Thread Sam James
Kugan Vivekanandarajah writes: > Add support for autoprofiledbootstrap in aarch64. > This is similar to what is done for i386. Added > gcc/config/aarch64/gcc-auto-profile for aarch64 profile > creation. > > How to run: > configure --with-build-config=bootstrap-lto > make autoprofiledbootstrap > >

[AUTOFDO][AARCH64] Add support for profilebootstrap

2025-05-08 Thread Kugan Vivekanandarajah
Add support for autoprofiledbootstrap in aarch64. This is similar to what is done for i386. Added gcc/config/aarch64/gcc-auto-profile for aarch64 profile creation. How to run: configure --with-build-config=bootstrap-lto make autoprofiledbootstrap Regression tested on aarch64-linux-gnu with no ne