Received: by 10.223.176.46 with SMTP id f43csp1272875wra; Fri, 26 Jan 2018 15:11:16 -0800 (PST) X-Google-Smtp-Source: AH8x225HzHXs0cT0tq5/4HSSl5R9rI1hXyOaCWLWmYt0EDas83J9mCQTphk+kpSMXwN+ZufV+kRB X-Received: by 2002:a17:902:4222:: with SMTP id g31-v6mr15368470pld.203.1517008276373; Fri, 26 Jan 2018 15:11:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517008276; cv=none; d=google.com; s=arc-20160816; b=rb0K8Vz07TaxEHr94cZIBhMKSN0F+IKFr+hYQPd/sqb1VQt6uAZa8IlgyAs400ZFbn ya1krGX8cjn4emC/FmKpNk6kA6RxiZhJoS/dWKXh7+ZXd1gBGioIp9YVSfnmLALziGmD wm6o3ezgY5dP0t68NDARiL4FblPCPQylf71yWISG1gYTCNYnPTJ5tYJfWMWGsgKix6Q+ KDEUMWUvmHX4D4vgyypxxFMhbkyo4J0C6FIaV2mWmP9LT2dWow+vdUg3Bhp7dsBV1K5g jCgVinpL+N33KnNIl2Jpu31/xg1ruiNvJxmTwYBB1/csO+dnx6rjvy7qGWhlHnaGep6A E/4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=3HVPCkBJB5tNjLEe+cXrDQfsUVDbp0M7OczaHUnqJlw=; b=olqbHqBRy8c9Hb3Q9uIC1xLOlQCGBI1noLkVAbkS+56hHyyT+I6/Faxcz/ZoXFLrc7 p1POk1+34p+OqQiwmwen2RAqSiwA4koPpOqflV5aKOSdHXTSYZVX5ojBlbQfxO1UPT94 xfywvSBTtyTPgcgUdDXtHI6vLYErmGiAhhGe/SHo9VfrZMbPoPTAEQh16Pb6w3d3Xx97 qBcZCkVrNlGKTddQFyE9UOpCYWQAdk+9nwXLli4/8Z00qZpZMYc9Zmf93vvQ1XTQ3yp+ JeSOUx297GSt3DnwFT7ZFhdmmtBp67OylJuKwp6sXH/vEai0DAH94In94HS5zQyxS0/Q kcZQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 64si3592098pgc.62.2018.01.26.15.11.00; Fri, 26 Jan 2018 15:11:16 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752356AbeAZXKf (ORCPT + 99 others); Fri, 26 Jan 2018 18:10:35 -0500 Received: from www62.your-server.de ([213.133.104.62]:45037 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751592AbeAZXKd (ORCPT ); Fri, 26 Jan 2018 18:10:33 -0500 Received: from [62.202.221.5] (helo=linux.home) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-SHA:256) (Exim 4.85_2) (envelope-from ) id 1efD8b-00022C-O6; Sat, 27 Jan 2018 00:10:25 +0100 Subject: Re: [PATCH net-next v1] samples/bpf: Partially fixes the bpf.o build To: =?UTF-8?Q?Micka=c3=abl_Sala=c3=bcn?= , Alexei Starovoitov Cc: linux-kernel@vger.kernel.org, Alexei Starovoitov , "David S . Miller" , netdev@vger.kernel.org References: <20180126003930.10573-1-mic@digikod.net> <20180126021636.ghu7p7ds7yvkqato@ast-mbp> <0a92b999-c65a-0b5d-8e44-872af7003d4a@digikod.net> From: Daniel Borkmann Message-ID: <6fa3c10f-7709-065f-f1c0-a63a7791d0cc@iogearbox.net> Date: Sat, 27 Jan 2018 00:10:25 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <0a92b999-c65a-0b5d-8e44-872af7003d4a@digikod.net> Content-Type: text/plain; charset=iso-8859-15 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.99.2/24253/Thu Jan 25 02:22:43 2018) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/26/2018 09:30 AM, Micka?l Sala?n wrote: > On 26/01/2018 03:16, Alexei Starovoitov wrote: >> On Fri, Jan 26, 2018 at 01:39:30AM +0100, Micka?l Sala?n wrote: >>> Do not build lib/bpf/bpf.o with this Makefile but use the one from the >>> library directory. This avoid making a buggy bpf.o file (e.g. missing >>> symbols). >> >> could you provide an example? >> What symbols will be missing? >> I don't think there is an issue with existing Makefile. > > You can run this commands: > make -C samples/bpf; nm tools/lib/bpf/bpf.o > a; make -C tools/lib/bpf; > nm tools/lib/bpf/bpf.o > b; diff -u a b > > Symbols like bzero and sys_bpf are missing with the samples/bpf > Makefile, which makes the bpf.o shrink from 25K to 7K. I've applied it to bpf-next, thanks Micka?l!