Received: by 10.223.164.202 with SMTP id h10csp2058319wrb; Mon, 27 Nov 2017 11:13:31 -0800 (PST) X-Google-Smtp-Source: AGs4zMbhZaQDibxds0NzzVjuVlP7FkI+MdMLx1VcLgPGJtc/YXLb2Aji8Spt5io+MACOoB6/PaSi X-Received: by 10.84.197.35 with SMTP id m32mr5039422pld.255.1511810011075; Mon, 27 Nov 2017 11:13:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511810011; cv=none; d=google.com; s=arc-20160816; b=0uo8kngppJsjvN+zsgEGOZ7Cb5PsLSyM8iU7ORrmR3tgueBb0iOqiBMh6F6Z3+4A86 UhXYhpa/v+1xS3QB6eE50DfYypdvcdSs/jwtObZn/nhssyRO1wA8tzqKehRiXdI8zAPd ZcPpdDyyRdYcNXdcAYdqWdBbQr9h5K8GTRCr3Fboi3LUYp0jvlXIUr6m2oiHOlW3VaEn LzhL4lI/pKRL8bqtKacNK3YzgmsLFTihDMId+mXrN/4AYgQxtF1/KFy9iT9CqXSwfXIy dA6qSSMz+amEcoYKYlrFNokxwbtw9hrTq7vHUU3oOO6y4kS/2muHdSdAWH8W+Y3WYGx1 d2EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-signature :arc-authentication-results; bh=fmdrGrZm2ICvFiKCZ8mREE2cYQxnmgBYWPXb9SfO7As=; b=Xm0I8kcQtZocwbizoN8BpGArccklmxdGGCz/Px5BKIfQOH7l/DXr5C7hQQdveOPrJz r2n3gn0Io9iSolqtaFtZHTXGuva3jEQC3X+TMNHxkKpOetrVI25Wcl5DygeLyUMzVhuR QL2e7+Hr34PtO8JxvGEB7sEcmCQtOTz6sNfSUWofiB0R/4CWnCirjh0nx+EWUHPSY84c P4iQ5MhhWSLy90A6foymUYbI5uKfiluuCgGKOa+fy6NWjADarBLJBkO3wtMnGgVLSVri ViZ/N9qC7zijpgt4c1FXepmSVxRAY7OMJcF7wP/iyXlPVZolRhC455PWD73jpPhzJZtM 8U4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=ZYUHeliP; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=Mg7Rwste; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e6si6737861pgq.177.2017.11.27.11.13.19; Mon, 27 Nov 2017 11:13:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=ZYUHeliP; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=Mg7Rwste; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752974AbdK0TMi (ORCPT + 78 others); Mon, 27 Nov 2017 14:12:38 -0500 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:39508 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751475AbdK0TMg (ORCPT ); Mon, 27 Nov 2017 14:12:36 -0500 Received: from pps.filterd (m0001303.ppops.net [127.0.0.1]) by m0001303.ppops.net (8.16.0.21/8.16.0.21) with SMTP id vARJ7dAO029490; Mon, 27 Nov 2017 11:12:05 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=facebook; bh=fmdrGrZm2ICvFiKCZ8mREE2cYQxnmgBYWPXb9SfO7As=; b=ZYUHeliPYIvMl6GXlxV/o/ltLSa0XYwn2oRP9U/nYHRQpAqRbYpT4Dza8tLWGvxCIFuz 62tgkH60aMx9mJ8TFau4ZcxwzG0ES7ZcW+nI/ROBOZ52egbQrBC4iZqeMcN/mtbRUXQN 884QXEn8/npcK97iPLSPHEV82W+gkJllqSY= Received: from mail.thefacebook.com ([199.201.64.23]) by m0001303.ppops.net with ESMTP id 2efu43bn8y-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 27 Nov 2017 11:12:04 -0800 Received: from NAM02-CY1-obe.outbound.protection.outlook.com (192.168.54.28) by o365-in.thefacebook.com (192.168.16.18) with Microsoft SMTP Server (TLS) id 14.3.361.1; Mon, 27 Nov 2017 11:12:02 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector1-fb-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=fmdrGrZm2ICvFiKCZ8mREE2cYQxnmgBYWPXb9SfO7As=; b=Mg7RwsteyGBXS3y5cEAWVv46A3bkz6RP4Uh650OKVDx4CiIKnh6j4smMVuZwnMjGYwXAbHhj++b8IZa5vmuNBnzhEegVCIsB7HZ1s3WGFhiibVtPbLsNLqg2qHU8GCa5FGgrvZylYJNMH0LuCAp3wosX7Gg41RwrypYMu+oLvaU= Received: from dhcp-172-24-229-77.DHCP.thefacebook.com (2620:10d:c090:200::7:6a6a) by DM5PR15MB1836.namprd15.prod.outlook.com (10.174.247.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.260.4; Mon, 27 Nov 2017 19:11:59 +0000 Subject: Re: perf test LLVM & clang 6 failing To: Arnaldo Carvalho de Melo , Daniel Borkmann CC: Josh Poimboeuf , Wang Nan , Alexei Starovoitov , Adrian Hunter , David Ahern , Jiri Olsa , Ingo Molnar , Namhyung Kim , Linux Kernel Mailing List References: <20171124144717.GO8789@kernel.org> <7cd16670-37c9-21f5-21c8-d50385ebc951@iogearbox.net> <20171127170435.GA3298@kernel.org> From: Yonghong Song Message-ID: <7f618077-3a04-04b6-f6df-cf91d3ff4424@fb.com> Date: Mon, 27 Nov 2017 11:11:56 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171127170435.GA3298@kernel.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [2620:10d:c090:200::7:6a6a] X-ClientProxiedBy: CY4PR2201CA0023.namprd22.prod.outlook.com (10.171.208.161) To DM5PR15MB1836.namprd15.prod.outlook.com (10.174.247.13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7fb216da-1b9a-4921-bf45-08d535cabcb6 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603199);SRVR:DM5PR15MB1836; X-Microsoft-Exchange-Diagnostics: 1;DM5PR15MB1836;3:IcPRG1pGVyz0Y9HFCIG4OgQEhLOtRHB1mfqo+VPmpnTzCH3TAr3/6Qz5p3uAQ8XQUgkkzz2SanaWbGxCkRyhzHi/LWTMptOVkeQIT7ofij5B5fWKSohnzDJkmtdyfV/AOi4gGGfPMGXA0Tn8di5p8ZZhQakl2/xUk2Jx2mL+rG/IEPhWlQGUchfu4anSrVn1L6LG6+qKrXPjIblurOPFt5+ccrfLr9Xh7NNw/m0SsGMYd1Fm422zjaW9ixSUn+Vd;25:oIFowMr7QsosMdE7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RHHrAUXsYG6xU2B1dMt3B2u1y6i0MrIsX/aNpTCDFnGcve13H6Yw32kHRjKW6b8AbpXLJmpBuYdAbyjz3/wx;4:FnoDpOZB9NEh3x7t1yAbfNJR/Lf+tzrvviwrSFGArF2hGW4U+9WX5lwqqT6rcU522g2clU2BRaOigA3oi1pCt4OXuI4LC+gNSoH97wqhY6Owh1bq76JzRlX5TUhGp6xBEQIwjkbzt7g82po7I8+4DrU14E8Kx5o62x+rHjuwan++a7tXsY0boCrk6k+sJdLdhriGpavCWIDh4DFx3v+164IO7sDPsIKfIy662HYXgROn9odnGdUm1Xcx3q35DkA48WkGDzkxIMdSoHldus5q/w== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(11241501159)(6040450)(2401047)(8121501046)(5005006)(10201501046)(3002001)(3231022)(93006095)(93001095)(6041248)(20161123564025)(20161123558100)(20161123560025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(6072148)(201708071742011);SRVR:DM5PR15MB1836;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:DM5PR15MB1836; X-Forefront-PRVS: 0504F29D72 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(376002)(366004)(346002)(199003)(69234005)(189002)(24454002)(47776003)(6246003)(39060400002)(81156014)(53936002)(6116002)(33646002)(65826007)(2950100002)(5660300001)(86362001)(68736007)(7416002)(25786009)(83506002)(53546010)(65956001)(8676002)(65806001)(23676004)(52116002)(97736004)(2486003)(52396003)(2906002)(6512007)(52146003)(230700001)(50986999)(64126003)(36756003)(54356999)(6486002)(76176999)(6506006)(316002)(101416001)(6666003)(58126008)(50466002)(229853002)(31686004)(7736002)(106356001)(4326008)(105586002)(8936002)(54906003)(189998001)(67846002)(81166006)(31696002)(305945005)(478600001)(110136005)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR15MB1836;H:dhcp-172-24-229-77.DHCP.thefacebook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Received-SPF: None (protection.outlook.com: fb.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTVQUjE1TUIxODM2OzIzOlJyNXBwTmt0ZFZELzlYcFp6VWRCMEF5Uk83?= =?utf-8?B?VEdjbUM5WkVyWDROc2lzaVlHTFdiT2pUSjFtSnlPckhzVnpnTWQ4NXZ5S0FO?= =?utf-8?B?RzlaTHdsSVNXQ1JjcGZTNzlJc29zNzI5YWgvWHNuNFZoVmd5NjV6RGNuRnk0?= =?utf-8?B?UG9BbzFLcW5ISm9sNjlQN2o5ejlNSlFlQXJpYjM4OEsyYllTMUtiMElGQXdh?= =?utf-8?B?WmdvRzUrOStDWXd1ZHd6UUwxbUlLVHQ1UGJPUUVHYjh1SFRCaThYbzRBaEpX?= =?utf-8?B?dVRPWjhibGRraEQzWG56L2FxdzdpcG5wS0lrUm51U0pYZkxrRUR6RG9GMEsr?= =?utf-8?B?em94NjRacFpaWk0rckRPeE1VWmJid0c1bDJSMEZrUHQxWUYrelFFOWRtVnhF?= =?utf-8?B?Z1lHMlpMcnlQUXNPa254cS9zeWE2U2MrVHd5WWRUL21wRmdmM0hJNW5NSXhB?= =?utf-8?B?UkhHemx2Vm1LcFBXK3FqdldBdGF0TDVpT0NpYmJQOFo3QThLdDdrbFY1RmIr?= =?utf-8?B?VjlkZVc3NlQySHBIaXAzek5BdHBhd3Ruc2RJNUpaS0hJd1JsTGF1SWR6RXRH?= =?utf-8?B?MElOblpJNnZpeEQ2dGdWbVRvZ2JxRkE1NkxKaGJySDFIdHIwQkNkT3U3SVF6?= =?utf-8?B?ZGJHSWFETDZ4Z0lyTjVCU3hkaE1yWHZGTVMySFZVZjY5NlpWaWJRc3JNRnh4?= =?utf-8?B?S2VnTThNc1A0T0lCYzBxMlArV2VtalJFeStUV2VzNjlKQ2tpeW1FdVlMNkUr?= =?ut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0QM=;7:1PaCLrPp+YvR8BiGNE/XnnHhu6shl/PQp1MewU0aRyBA8Sk6hooD8DIzJvkJrV7PQC+JsUfCqynrXR3fLAXACFy4xOpTN7b8FwzWOVs7qwODG9Q79P2Sl6kUOXTywNmN6T9yNU3bH4VriMKcXoPCXijPpbUc/HZ5m5cQp8pBOHJ4LKAFA50ggw91yKjxT894AKfuqIZHmOrxPDo01IJ6PiPAYvK1NaJ/I5XKmnaA1KTBJZYTT0ApdydVuI2jCWT0 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DM5PR15MB1836;20:y1R6fSKwtlYW6flwIcu8FcRvkMl9Q8iJvaeg34Ze5yjCaPeCq7pBICxf437Dsyp6TUkvGOn7PfYHW5L6sq2rq7pJDjxMQmYrz8+yJj5mDs24SYqLJhErV6F4JBO5QAGPBXvQpMM1UXwdmPDvJ59QEvSxcz7NH7Q/N/Ki2JVzkR4= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Nov 2017 19:11:59.4802 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7fb216da-1b9a-4921-bf45-08d535cabcb6 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR15MB1836 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-11-27_09:,, signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/27/17 9:04 AM, Arnaldo Carvalho de Melo wrote: > Em Fri, Nov 24, 2017 at 04:16:52PM +0100, Daniel Borkmann escreveu: >> [ +Yonghong ] > > + Josh > >> On 11/24/2017 03:47 PM, Arnaldo Carvalho de Melo wrote: >>> FYI, just noticed, recently updated clang to version 6, from its >>> upstream git repo. >> >> Do you recall what was your LLVM version prior to this where it was >> working fine? (Wild guess from below would be the BPF inline asm >> support that was added recently to LLVM (2865ab6996) vs asm() used >> in headers included in the stdin header causing trouble due to arch >> mixup?) > > So, if I go to the cset just before: > > commit f5caf621ee357279e759c0911daf6d55c7d36f03 > Author: Josh Poimboeuf > Date: Wed Sep 20 16:24:33 2017 -0500 > > x86/asm: Fix inline asm call constraints for Clang > --- > > 'perf test LLVM' works again: > > [root@jouet ~]# perf test LLVM > 37: LLVM search and compile : > 37.1: Basic BPF llvm compile : Ok > 37.2: kbuild searching : Ok > 37.3: Compile source for BPF prologue generation : Ok > 37.4: Compile source for BPF relocation : Ok > [root@jouet ~]# > > I.e. 'perf test LLVM' built from what is in my acme/perf/urgent branch, > targetted to v4.15, uses kernel headers and if I go to just before > f5caf621ee, it works again, both with clang from fedora26 (4.0.1) and > with 6.0, built from sources. This patch introduced a module level inline assembly. ... --- a/arch/x86/include/asm/asm.h +++ b/arch/x86/include/asm/asm.h @@ -132,4 +132,15 @@ /* For C file, we already have NOKPROBE_SYMBOL macro */ #endif +#ifndef __ASSEMBLY__ +/* + * This output constraint should be used for any inline asm which has a "call" + * instruction. Otherwise the asm may be inserted before the frame pointer + * gets set up by the containing function. If you forget to do this, objtool + * may print a "call without frame pointer save/setup" warning. + */ +register unsigned int __asm_call_sp asm("esp"); +#define ASM_CALL_CONSTRAINT "+r" (__asm_call_sp) +#endif ... This will cause "clang ... -target bpf ..." failure since 4.0 does not have bpf inline asm support and 6.0 does not recognize the register 'esp'. > > 'perf test BPF' breaks for another reason, needs another investigation, > maybe you guys can spot something changed recently in that area: > > libbpf: failed to create map (name: 'flip_table'): Invalid argument > libbpf: failed to load object '[basic_bpf_test]' Not sure whether this is the root cause or not, but the below section name SEC("func=SyS_epoll_wait") is not a good one. If it is used to represent the program name in the kernel, the kernel will reject it with invalid argument since it contains "=". > > Complete logs up to this error are below, I'll go read Yonghong message > to see if I can get the 'perf test LLVM' case fixed. > > - Arnaldo > > [root@jouet ~]# perf test BPF > 39: BPF filter : > 39.1: Basic BPF filtering : FAILED! > 39.2: BPF pinning : Skip > 39.3: BPF prologue generation : Skip > 39.4: BPF relocation checker : Skip > [root@jouet ~]# perf test -v BPF > 39: BPF filter : > 39.1: Basic BPF filtering : > --- start --- > test child forked, pid 3541 > Kernel build dir is set to /lib/modules/4.14.0+/build > set env: KBUILD_DIR=/lib/modules/4.14.0+/build > unset env: KBUILD_OPTS > include option is set to -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/7/include -I/home/acme/git/linux/arch/x86/include -I./arch/x86/include/generated -I/home/acme/git/linux/include -I./include -I/home/acme/git/linux/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/home/acme/git/linux/include/uapi -I./include/generated/uapi -include /home/acme/git/linux/include/linux/kconfig.h > set env: NR_CPUS=4 > set env: LINUX_VERSION_CODE=0x40e00 > set env: CLANG_EXEC=/usr/lib64/ccache/clang > set env: CLANG_OPTIONS=-xc > set env: KERNEL_INC_OPTIONS= -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/7/include -I/home/acme/git/linux/arch/x86/include -I./arch/x86/include/generated -I/home/acme/git/linux/include -I./include -I/home/acme/git/linux/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/home/acme/git/linux/include/uapi -I./include/generated/uapi -include /home/acme/git/linux/include/linux/kconfig.h > set env: WORKING_DIR=/lib/modules/4.14.0+/build > set env: CLANG_SOURCE=- > llvm compiling command template: echo '/* > * bpf-script-example.c > * Test basic LLVM building > */ > #ifndef LINUX_VERSION_CODE > # error Need LINUX_VERSION_CODE > # error Example: for 4.2 kernel, put 'clang-opt="-DLINUX_VERSION_CODE=0x40200" into llvm section of ~/.perfconfig' > #endif > #define BPF_ANY 0 > #define BPF_MAP_TYPE_ARRAY 2 > #define BPF_FUNC_map_lookup_elem 1 > #define BPF_FUNC_map_update_elem 2 > > static void *(*bpf_map_lookup_elem)(void *map, void *key) = > (void *) BPF_FUNC_map_lookup_elem; > static void *(*bpf_map_update_elem)(void *map, void *key, void *value, int flags) = > (void *) BPF_FUNC_map_update_elem; > > struct bpf_map_def { > unsigned int type; > unsigned int key_size; > unsigned int value_size; > unsigned int max_entries; > }; > > #define SEC(NAME) __attribute__((section(NAME), used)) > struct bpf_map_def SEC("maps") flip_table = { > .type = BPF_MAP_TYPE_ARRAY, > .key_size = sizeof(int), > .value_size = sizeof(int), > .max_entries = 1, > }; > > SEC("func=SyS_epoll_wait") > int bpf_func__SyS_epoll_wait(void *ctx) > { > int ind =0; > int *flag = bpf_map_lookup_elem(&flip_table, &ind); > int new_flag; > if (!flag) > return 0; > /* flip flag and store back */ > new_flag = !*flag; > bpf_map_update_elem(&flip_table, &ind, &new_flag, BPF_ANY); > return new_flag; > } > char _license[] SEC("license") = "GPL"; > int _version SEC("version") = LINUX_VERSION_CODE; > ' | $CLANG_EXEC -D__KERNEL__ -D__NR_CPUS__=$NR_CPUS -DLINUX_VERSION_CODE=$LINUX_VERSION_CODE $CLANG_OPTIONS $KERNEL_INC_OPTIONS -Wno-unused-value -Wno-pointer-sign -working-directory $WORKING_DIR -c "$CLANG_SOURCE" -target bpf -O2 -o - > libbpf: loading object '[basic_bpf_test]' from buffer > libbpf: section .strtab, size 120, link 0, flags 0, type=3 > libbpf: section .text, size 0, link 0, flags 6, type=1 > libbpf: section func=SyS_epoll_wait, size 200, link 0, flags 6, type=1 > libbpf: found program func=SyS_epoll_wait > libbpf: section .relfunc=SyS_epoll_wait, size 32, link 8, flags 0, type=9 > libbpf: section maps, size 16, link 0, flags 3, type=1 > libbpf: section license, size 4, link 0, flags 3, type=1 > libbpf: license of [basic_bpf_test] is GPL > libbpf: section version, size 4, link 0, flags 3, type=1 > libbpf: kernel version of [basic_bpf_test] is 40e00 > libbpf: section .symtab, size 168, link 1, flags 0, type=2 > libbpf: maps in [basic_bpf_test]: 1 maps in 16 bytes > libbpf: map 0 is "flip_table" > libbpf: collecting relocating info for: 'func=SyS_epoll_wait' > libbpf: relocation: insn_idx=4 > libbpf: relocation: find map 0 (flip_table) for insn 4 > libbpf: relocation: insn_idx=18 > libbpf: relocation: find map 0 (flip_table) for insn 18 > bpf: config program 'func=SyS_epoll_wait' > symbol:SyS_epoll_wait file:(null) line:0 offset:0 return:0 lazy:(null) > bpf: config 'func=SyS_epoll_wait' is ok > Looking at the vmlinux_path (8 entries long) > Using /lib/modules/4.14.0+/build/vmlinux for symbols > Open Debuginfo file: /lib/modules/4.14.0+/build/vmlinux > Try to find probe point from debuginfo. > Matched function: SyS_epoll_wait [2e5a9be] > found inline addr: 0xffffffff812af256 > Probe point found: compat_SyS_epoll_pwait+150 > found inline addr: 0xffffffff812af037 > Probe point found: SyS_epoll_pwait+135 > found inline addr: 0xffffffff812aeed0 > Probe point found: SyS_epoll_wait+0 > Found 3 probe_trace_events. > Opening /sys/kernel/debug/tracing//kprobe_events write=1 > Writing event: p:perf_bpf_probe/func _text+2814550 > Writing event: p:perf_bpf_probe/func_1 _text+2814007 > Writing event: p:perf_bpf_probe/func_2 _text+2813648 > libbpf: failed to create map (name: 'flip_table'): Invalid argument > libbpf: failed to load object '[basic_bpf_test]' > bpf: load objects failed > Failed to add events selected by BPF > From 1585239735785738475@xxx Mon Nov 27 17:07:01 +0000 2017 X-GM-THRID: 1584959210990306928 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread