From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2108.outbound.protection.outlook.com [40.107.237.108]) by sourceware.org (Postfix) with ESMTPS id 9C8FB3858022 for ; Tue, 25 May 2021 01:39:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9C8FB3858022 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ide/EgszqSzXefb4A4Yzgj4CwiNep12vEFJMshlkfp+3+iuPFY/KtmkAzzXbGKJAt1N7iL8O0J+sHZz3PrAUhCbW00eg2bW8rotytV7PCissn1/sBrAwCgj8i/Ei7+ZHROIA3Mb15udobSFuIkvaBIpydQu5AeJcVuWzASyDJauuyO/pmXDNmpnaOwnfC2z32mpYRUOmgZ7LnkWu7CGEXwV8kcCuG1WKPUu2iCTogqifkbaspMCXdH8uXpkkgc5nRvJcvGgpjD3TxIMGtyBv/TdA0hZUYI3SgiMpUMZcCCZNj32nUyZr5t02SKyjpgnGJlKnel7mXq+ytibvO86+dA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=b6EfFjrMXAp7yqhwe9tNNEqhVFpBpDBNnHE0b2PaAVM=; b=l/6uy+WsH4s0F2pF2MMBxm59VQRvxKM0l896GnJq7tDBIRaYtnIxpiihHkGntgznckMt6+0GDbGuxou5TGS7kwRalZZqH0y6tZb3HZuWVrtLYNK1uqL0jSiuaBdogmCCICsui8TmFn3Tt6MEV1zppmXn5HUkKPwPPYCNarxQ8zopn9XUzPdfaZXe8bJAovjswZva7CrklpT69jLv+Z03qhtMeMu5JQnXElj6iKhY0ydpSTimmR505ItWG7rYMHlNws5FLzEcuYmNmsjksRV8kOD4k5LwFVu90a/KJtwYKK69gpomN7TPbXt9k4AQEQV75HFSwE6d6mNOq3LVaOhfIA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none Received: from MWHPR21MB0798.namprd21.prod.outlook.com (2603:10b6:300:128::18) by MW4PR21MB1937.namprd21.prod.outlook.com (2603:10b6:303:70::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.2; Tue, 25 May 2021 01:39:57 +0000 Received: from MWHPR21MB0798.namprd21.prod.outlook.com ([fe80::1d02:9a92:e9:c946]) by MWHPR21MB0798.namprd21.prod.outlook.com ([fe80::1d02:9a92:e9:c946%14]) with mapi id 15.20.4195.006; Tue, 25 May 2021 01:39:57 +0000 From: Eugene Rozenfeld To: Wei Mi CC: Andi Kleen , Hongtao Yu , Xinliang David Li , Jan Hubicka , "gcc@gcc.gnu.org" , Wenlei He Subject: RE: [EXTERNAL] Re: State of AutoFDO in GCC Thread-Topic: [EXTERNAL] Re: State of AutoFDO in GCC Thread-Index: AQHXOsu5yff2ykdMyE6mPDeCIIGFBarK/raAgBJ5I4CAEWTx0IAA/viAgAO7iWA= Date: Tue, 25 May 2021 01:39:57 +0000 Message-ID: References: <20210423192834.GA1949@kam.mff.cuni.cz> <20210425190754.GA88857@kam.mff.cuni.cz> <87a6plulkz.fsf@linux.intel.com> <20210426180011.GA1401198@tassilo.jf.intel.com> <20210429054025.GB4032392@tassilo.jf.intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=c7806949-7587-4f8a-9758-2c5eaff366f5; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=Internal; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2021-05-25T01:36:54Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; x-originating-ip: [2601:600:9700:56f0:5075:557c:152c:8592] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 2432fd1b-c1eb-4ea0-488e-08d91f1e012e x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 6po6T6+SlDZVbmOUZkNVfrT11K2bG4NRHfBX+6sTIYNrMCONggovD4eK1tnzjFDPzDWlYdC3uD8dfgaKsEWO5Gha0X10gv6fDFTEt/eKKgsYyu5x2E9Jr57UaVMBGd9dWM/8M/dSEZl9ziCvyKaMlN50zj45aQQ/Ot/aqM7DXlOh4z67ojqRg7kilsoP0G86MqFMLbO68M6O6+SeVjJ9XYNJQIx04ugnqnE2UwuFJNDsHTYMUBuUKZPZOIHzBGmTO464fE6njo1IjjAaT9xAF0J7USKwLuWYUO7ECM1QmqrZdZ8eEOdWflbyHdRmFX0bU+F5AYl/AZzVtkNYDn1dbwErc20mTLJJcsnLjwY6LXpUdCD1M36RxwD6RTL8WlE9HOkcPXtedtYjQUjDLMtOFBspjknEF+2AOx8/eJEItT9FLK19zMheTfoTybp/cGkIgDiSX/VRc3gd0dorP2Zhd0hYm535PgFB3rHsId3VX8sRkd2hhv5O1kcbepOf0mdcG5etlp66YrbglcR7yb94lBy+yJe8lDCKAQGFFhbUCg6IV8xM7AOmvms/DIcwUU2YM5TUkUjM4bKLrW5uhWc8gyiXk3tCdQqEKDbp9n7N/tv2bkJhLBw/gF70Cv7q02rsBWCQryZtp019xCcn/aKW6kwiD/BzUfJBIWb8gehCb4+jQGptcDjTVZxcFtm/WLX6IyUmps1R+uFrLXhuwWYRGGC2AX4TS/u9edD5RcZZawc= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR21MB0798.namprd21.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(76116006)(33656002)(83380400001)(8936002)(82960400001)(82950400001)(55016002)(9686003)(6916009)(2906002)(8676002)(71200400001)(7696005)(4326008)(186003)(6506007)(53546011)(52536014)(478600001)(966005)(66446008)(122000001)(66556008)(66476007)(38100700002)(8990500004)(86362001)(64756008)(10290500003)(54906003)(316002)(5660300002)(66946007); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 2 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?omFCpirDKwuBdi2V7DFCzVvfGNtmwfWNb6dGNhbZFM5E5W0Q3b1xgSUPr+?= =?iso-8859-1?Q?JzT2LbHeW9aCys7h2Jlg35FKzeL5PYjz/Q758yCW1M4g4RRQAQNH90I7zM?= =?iso-8859-1?Q?+5ZnGeuAUEegafb1h2D95F/JcgQtZn1odGYSEioorE6MuBv3KNfquOneJa?= =?iso-8859-1?Q?W5+BKR8Y3eLib0SQ6DPMxuzKXkDG9qscZ8MpSRgfiXyZ19KQHL3/HsQZEq?= =?iso-8859-1?Q?hGNTeBL4M1mE9+5CoNxefNBP2xxLpuFztDHeT/0OtaHRvJQnU8xcnhbK04?= =?iso-8859-1?Q?Fix9cH1lzV0oZGESn953UPd9a3ebiI0UjYCcZ+m4yjH+tH1RdYp1VE5QKW?= =?iso-8859-1?Q?BeCPb7Jgfp2Gt84bM6yQj9aN5F2WzSSzDSw18t41RlUIjY2V+OYIMicio2?= =?iso-8859-1?Q?x56oryfdb4VugrLfgwkMccb1WhJuQTtCWwW8hZJrqZSXuv+l9wR1S73VPy?= =?iso-8859-1?Q?SkafDYqPuu/jbtoPwbcbLOo0Sqmugj/0i9ZOyVOE9Mz7iAbFlheFw3XsWS?= =?iso-8859-1?Q?s9hso2TTFGsR1RWk5ssoN0Q2MgZCB1pu5aeKWGtOo+fjIrM04WRtkXYgSo?= =?iso-8859-1?Q?kcb+W2Vte1CGEGR5MJN9dUAavO+pLK/WqRZhvHpgYZakXQ2F+xWnEf/7To?= =?iso-8859-1?Q?RsFJWLdLuD+nZnfk78FtnIh8tvsTcqG3Qig9MwFz55bz67abCZFYmX8laP?= =?iso-8859-1?Q?dS/UzWdwgV9dpq/G9ce2lbFyv6nByk4gjiV1qet1v5W8RZVgDqpLvIR608?= =?iso-8859-1?Q?9F4m9umFy6fO/Swjg4RnUKBvlu2PmZNdu+8BCkANYL8OypWRonhIwUb6PT?= =?iso-8859-1?Q?AahoPu6Hkd1eh1AZq6DdVCtAP3VLPtCQmTucdHXSMrPz5AZ2YN8ZFZZrql?= =?iso-8859-1?Q?eWahJ/IDj4e3Nf92ZyasPfEX2YqGhQuUbLtz6iGjiQstdnheeUzZEI4qyU?= =?iso-8859-1?Q?MLmluTR5pbQ1ZgPWmDqtBkRPKxSx/JMbiHgEmLyYAbVm5R6DcGYcN6hO5n?= =?iso-8859-1?Q?XNoCLLFYaL3gXe?= x-ms-exchange-antispam-messagedata-1: w4vwO5ONQjRg/tyC9XiOOwcIFdhIf7Ky32Q8YOgbpS8lDsxkha5+WCf7U4eXKmeH2HLShE/H842Wu+6imO06bzXfTKmtu/A9eYIZ7Cls+zxhju22HMZx6mkolIzeW0wXZJpFF8nz6bo9wslO5n54wpLbC10u0fLU4TazdscYTFUs2qAZEr4IjY1pMD4hvrQ4tnfkbmc1EZwQ0lrI1WEEWpxatDAs7ie5KafpC81z2I+rhSrLZgt2yhV2G9NhaShVrQ4uGk39NCh36DsjRuRbG63IU7WDWClE731KCcaiNAh+eqDz/CJLHYg2gaZQ0UBq5JO1JBjwSaC2naqHslli7FhrnXc4HrEKfFAOAEV/QB9N6CMNj1jxzQi0XFBWGzwC6dFElxSYcQSbboDzjf2Wln8v x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MWHPR21MB0798.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2432fd1b-c1eb-4ea0-488e-08d91f1e012e X-MS-Exchange-CrossTenant-originalarrivaltime: 25 May 2021 01:39:57.8106 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: pyLV6bUzRsHLkfqXVSoe1IsuYE2QK8TJCnUReRY7NtwIr7zC/xt5G5PjFHoeDhDDwcA1W5l49sSxXgA1tlBT8Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR21MB1937 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, BODY_8BITS, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_LOTSOFHASH, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 May 2021 01:40:04 -0000 Thank you Wei. Looks like something is still missing. This time perf_data.p= b.h is not found. I'm getting the error below (on Ubuntu 18.04 with cmake 3= .12.1): eugene@eugene-Virtual-Machine:~/autofdo1/build$ ninja [1/241] Building CXX object CMakeFiles/dump_gcov_lib.dir/profile.cc.o FAILED: CMakeFiles/dump_gcov_lib.dir/profile.cc.o=20 /usr/bin/c++ -I../ -I../third_party/glog/src -I../third_party/abseil -I..= /third_party/perf_data_converter/src -I../third_party/perf_data_converter/s= rc/quipper -I../util -I. -Ithird_party/glog -std=3Dgnu++1z -MD -MT CMakeFil= es/dump_gcov_lib.dir/profile.cc.o -MF CMakeFiles/dump_gcov_lib.dir/profile.= cc.o.d -o CMakeFiles/dump_gcov_lib.dir/profile.cc.o -c ../profile.cc In file included from ../third_party/perf_data_converter/src/quipper/perf_p= arser.h:18:0, from ../sample_reader.h:18, from ../profile.h:15, from ../profile.cc:5: ../third_party/perf_data_converter/src/quipper/base/macros.h:8:0: warning: = "DISALLOW_COPY_AND_ASSIGN" redefined #define DISALLOW_COPY_AND_ASSIGN(TypeName) \ =20 In file included from ../profile.h:14:0, from ../profile.cc:5: ../base/macros.h:114:0: note: this is the location of the previous definiti= on #define DISALLOW_COPY_AND_ASSIGN(TypeName) \ =20 In file included from ../third_party/perf_data_converter/src/quipper/perf_p= arser.h:18:0, from ../sample_reader.h:18, from ../profile.h:15, from ../profile.cc:5: ../third_party/perf_data_converter/src/quipper/base/macros.h:12:0: warning:= "arraysize" redefined #define arraysize(x) (sizeof(x) / sizeof(*x)) =20 In file included from ../profile.h:14:0, from ../profile.cc:5: ../base/macros.h:162:0: note: this is the location of the previous definiti= on #define arraysize(array) (sizeof(ArraySizeHelper(array))) =20 In file included from ../third_party/perf_data_converter/src/quipper/perf_p= arser.h:21:0, from ../sample_reader.h:18, from ../profile.h:15, from ../profile.cc:5: ../third_party/perf_data_converter/src/quipper/compat/proto.h:14:10: fatal = error: perf_data.pb.h: No such file or directory #include "perf_data.pb.h" ^~~~~~~~~~~~~~~~ compilation terminated. [6/241] Building CXX object CMakeFiles/dump_gcov_lib.dir/symbol_map.cc.o ninja: build stopped: subcommand failed. Thanks, Eugene From: Wei Mi =20 Sent: Saturday, May 22, 2021 9:37 AM To: Eugene Rozenfeld Cc: Andi Kleen ; Hongtao Yu ; Xinliang Davi= d Li ; Jan Hubicka ; gcc@gcc.gnu.org; W= enlei He Subject: Re: [EXTERNAL] Re: State of AutoFDO in GCC It is a proto library build dependency issue which didn't expose on my plat= form. I fix it at=A0https://nam06.safelinks.protection.outlook.com/?url=3Dh= ttps%3A%2F%2Fgithub.com%2Fgoogle%2Fautofdo%2Fcommit%2F98269aee9674cc885cc5e= b1bd917eb2d12731710&data=3D04%7C01%7CEugene.Rozenfeld%40microsoft.com%7C414= e79d9b075428ceffc08d91d3fd7ff%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C= 637572982342270322%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2lu= MzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=3DTxMivTXj9w0W5OFLunWcOpqf9= wefrrUd0m3RqV8JLaA%3D&reserved=3D0. Please try again. Thanks, Wei. On Fri, May 21, 2021 at 6:28 PM Eugene Rozenfeld wrote: I tried following the instructions in "2.2 Build autofdo tool for gcc" in h= ttps://nam06.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fgithub.c= om%2Fgoogle%2Fautofdo%23readme&data=3D04%7C01%7CEugene.Rozenfeld%40microsof= t.com%7C414e79d9b075428ceffc08d91d3fd7ff%7C72f988bf86f141af91ab2d7cd011db47= %7C1%7C0%7C637572982342280318%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiL= CJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=3DKBPIcf5k1v230t= bLke9%2FdSt25nbPrHhpBvPb8PiebPY%3D&reserved=3D0and got build failures: =A0 eugene@eugene-Virtual-Machine:~/autofdo1/build$ ninja [1/228] Building CXX object CMakeFiles/create_gcov_lib.dir/profile.cc.o FAILED: CMakeFiles/create_gcov_lib.dir/profile.cc.o=20 /usr/bin/c++=A0 -I../ -I../third_party/glog/src -I../third_party/abseil -I.= ./third_party/perf_data_converter/src -I../third_party/perf_data_converter/= src/quipper -I../util -I. -Ithird_party/glog -std=3Dgnu++1z -MD -MT CMakeFi= les/create_gcov_lib.dir/profile.cc.o -MF CMakeFiles/create_gcov_lib.dir/pro= file.cc.o.d -o CMakeFiles/create_gcov_lib.dir/profile.cc.o -c ../profile.cc In file included from ../third_party/perf_data_converter/src/quipper/perf_p= arser.h:18:0, =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 from ../sample_reader.h:18= , =A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0from ../profile.h:15, =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 from ../profile.cc:5: ../third_party/perf_data_converter/src/quipper/base/macros.h:8:0: warning: = "DISALLOW_COPY_AND_ASSIGN" redefined #define DISALLOW_COPY_AND_ASSIGN(TypeName) \ In file included from ../profile.h:14:0, =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 from ../profile.cc:5: ../base/macros.h:114:0: note: this is the location of the previous definiti= on #define DISALLOW_COPY_AND_ASSIGN(TypeName) \ In file included from ../third_party/perf_data_converter/src/quipper/perf_p= arser.h:18:0, =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 from ../sample_reader.h:18= , =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 from ../profile.h:15, =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 from ../profile.cc:5: ../third_party/perf_data_converter/src/quipper/base/macros.h:12:0: warning:= "arraysize" redefined #define arraysize(x) (sizeof(x) / sizeof(*x)) In file included from ../profile.h:14:0, =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 from ../profile.cc:5: ../base/macros.h:162:0: note: this is the location of the previous definiti= on #define arraysize(array) (sizeof(ArraySizeHelper(array))) In file included from ../third_party/perf_data_converter/src/quipper/perf_p= arser.h:21:0, =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 from ../sample_reader.h:18= , =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 from ../profile.h:15, =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 from ../profile.cc:5: ../third_party/perf_data_converter/src/quipper/compat/proto.h:16:10: fatal = error: perf_stat.pb.h: No such file or directory #include "perf_stat.pb.h" =A0=A0=A0=A0=A0=A0=A0=A0=A0 ^~~~~~~~~~~~~~~~ compilation terminated. =A0 What is supposed to generate perf_stat.pb.h? =A0 Thanks, =A0 Eugene =A0 From: Wei Mi =20 Sent: Monday, May 10, 2021 4:47 PM To: Andi Kleen Cc: Hongtao Yu ; Xinliang David Li ; Jan Hubicka ; mailto:gcc@gcc.gnu.org; Eugene= Rozenfeld ; Wenlei He Subject: [EXTERNAL] Re: State of AutoFDO in GCC =A0 https://nam06.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fgithub.= com%2Fgoogle%2Fautofdo&data=3D04%7C01%7CEugene.Rozenfeld%40microsoft.com%7C= 414e79d9b075428ceffc08d91d3fd7ff%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0= %7C637572982342290320%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV= 2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=3DUWJlvkaOdGT5p8ZLmeZYkZ= 6lPhSmdmzc0tEnBULcNsY%3D&reserved=3D0 has been updated. Now create_gcov/dum= p_gcov are added back and can be built separately. Please look at "2.2 Build autofdo tool for gcc" in https://nam06.safelinks.= protection.outlook.com/?url=3Dhttps%3A%2F%2Fgithub.com%2Fgoogle%2Fautofdo%2= 3readme&data=3D04%7C01%7CEugene.Rozenfeld%40microsoft.com%7C414e79d9b075428= ceffc08d91d3fd7ff%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637572982342= 290320%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6= Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=3D3fXLah0%2B0YHbo%2BHlbcgUFwlFQD9YwCUZA= pmZHoasiW0%3D&reserved=3D0 On Wed, Apr 28, 2021 at 10:40 PM Andi Kleen wro= te: > > On Mon, Apr 26, 2021 at 06:40:56PM +0000, Hongtao Yu wrote: > > =A0 =A0Andi, thanks for pointing out the perf script issues. Can you pl= ease > > =A0 =A0elaborate a bit on the exact issue you have seen? We've been usi= ng > > =A0 =A0specific output of perf script such as mmap, LBR and callstack e= vents > > =A0 =A0filtered by process id. It works fine so far but may certainly h= it issues > > =A0 =A0in the future with extended uses. > > Okay I took a look at the latest autofdo now. It seems to be basically > a LLVM project now that depends on LLVM to even build with all kinds > of dependency hell on some old LLVM version and other packages. > > I guess gcc will really need a replacement that doesn't pull in > all of LLVM if it wants to continue supporting autofdo. > > I'm myself unable to build now. > > I'm using the old version I had a git fork of and that > was before all of this. I added a patch to make it work > with the latest perf by ignoring increased perf_attr > and unknown perf events. > > Honza please use > > https://nam06.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fgithu= b.com%2Fandikleen%2Fautofdo&data=3D04%7C01%7CEugene.Rozenfeld%40microsoft.c= om%7C414e79d9b075428ceffc08d91d3fd7ff%7C72f988bf86f141af91ab2d7cd011db47%7C= 1%7C0%7C637572982342300314%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQ= IjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=3DaNe2qZeEjsE2%2Fm7= ZbaIFPFAcnF3wtQEkOJr0fG5tHWo%3D&reserved=3D0 -b perf-future > > for testing. > > -Andi >