This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: AutoFDO profile toolchain is open-sourced
- From: Dehao Chen <dehao at google dot com>
- To: Andi Kleen <andi at firstfloor dot org>
- Cc: Ilya Palachev <i dot palachev at samsung dot com>, Diego Novillo <dnovillo at google dot com>, GCC Development <gcc at gcc dot gnu dot org>, David Li <davidxl at google dot com>, Jan Hubicka <hubicka at ucw dot cz>, Sebastian Pop <sebpop at gmail dot com>, Vyacheslav Barinov <v dot barinov at samsung dot com>
- Date: Wed, 22 Apr 2015 11:17:12 -0700
- Subject: Re: AutoFDO profile toolchain is open-sourced
- Authentication-results: sourceware.org; auth=none
- References: <5536278E dot 3090706 at samsung dot com> <CAD_=9DQEqCqzyBKT8nZ1_uEt5gU589hSpLiOHUqLXKctJTaVHA at mail dot gmail dot com> <553653CA dot 9070009 at samsung dot com> <87wq15mud5 dot fsf at tassilo dot jf dot intel dot com> <CAO2gOZW2Qmp-xj7Cx-7pDm9wg8BO7JEXvi9z_2_-3ms0bRmLeg at mail dot gmail dot com> <20150421172436 dot GD2366 at two dot firstfloor dot org> <CAO2gOZUWVr_W4REyq-PT+O9-0yoWc9Je0eMTs1euSZp6kdR==Q at mail dot gmail dot com> <20150421173630 dot GE2366 at two dot firstfloor dot org> <CAO2gOZUDdDAUFczkjTCFbkyXPuS5NVTrAyA+Vk1Lmpy_A8hrbg at mail dot gmail dot com> <20150422031547 dot GF2366 at two dot firstfloor dot org> <20150422034704 dot GG2366 at two dot firstfloor dot org>
Thanks, I'll forward the patches to quipper team.
On Tue, Apr 21, 2015 at 8:47 PM, Andi Kleen <andi@firstfloor.org> wrote:
> On Wed, Apr 22, 2015 at 05:15:47AM +0200, Andi Kleen wrote:
>> On Tue, Apr 21, 2015 at 01:52:18PM -0700, Dehao Chen wrote:
>> > Andi,
>> >
>> > Thanks for the patches. Turns out that the first 3 patches are already
>> > in, the correct upstream quipper repository is:
>> >
>> > https://chromium.googlesource.com/chromiumos/platform2/+/master/chromiumos-wide-profiling/
>> >
>> > The last 3 patches seem to be local hacks. Do you want any of them in?
>> >
>> > I just did a batch sync with quipper head. Please let me know if this
>> > solves the perf problem.
>>
>> Still outdated:
>>
>> F0421 20:13:16.221422 22297 perf_reader.cc:1614] Check failed: attr_size <= sizeof(perf_event_attr) (104 vs. 96)
>
> It converts with the attached patches, but there's still some problem
> parsing the data:
>
> % ./create_gcov -binary loop -gcov_version 1 -gcov loop.gcda -gcov_version 0x500e
> % gcc50 -O2 -fprofile-use loop.c
> loop.c:1:0: warning: '/home/andi/src/autofdo/loop.gcda' is version ',
> expected version '500e'
> %
You need to use -fauto-profile=loop.gcda instead of "-fprofile-use",
which is only for instrumentation based FDO.
Dehao
>
> -Andi
>