Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6215217ybc; Wed, 27 Nov 2019 17:28:18 -0800 (PST) X-Google-Smtp-Source: APXvYqx/X2q/bgT5F2noV+5p+c/FV7FoJTHhWyR4RphzI9UGw9Yd3H2HhRois88gtm+71HYSj9q1 X-Received: by 2002:a17:906:dda:: with SMTP id p26mr50633359eji.77.1574904497965; Wed, 27 Nov 2019 17:28:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574904497; cv=none; d=google.com; s=arc-20160816; b=XEoJEo0C/aUBSLo+XCdiUe3vjm74O/KL1YHKyX+SK+HHrH8aCJjvFnQ0xkiw1r5BqD X5tMrvtyqCCsWoyhD9yO729/RdCLlsbfI7BMITW+jCd0RmSvkdHSvi4MRPqbbUlqpd2v h2GypFyEZ5AAkECRleQgDaZseCEAnh+Q70v5hKCsZYsOIEJoFPQMWh6gjYmix0gBoEJ0 me52vVgY65EgHUtlcB2ScsZA2cNSVd3R7ZwIIM7pNF7RUiTA89au5Q5TvvHN6zuUtj9e HHnWBWpt39i0O3jEmVQhrZYE6m2Zw5i7lavaekNSugUP+4F2W4mFohDCrm9n/dF/e30b gpiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date:from:dkim-signature; bh=v8LU2xOwjieQDa2R6tGnD5twL2ibcfNQBKehMMo1pOM=; b=S5kLs9EZXdR0SUQUNoX5d2i0x1bnhmmq1YT5I59uI4Jf6vAxkMhRat1Nz3LkQDTTkO psFnfI7ekDWMFUwUZp9d9jXhZ6Kl4hH/tE44SIU/L2lUU0kXP4jpO5dRAtKPlgsl6G6S huLfk2PxDB0KgSoCg1PA1gSI4v9lkwxOqCoEK9ZYJk0zogpPzqFlu7xsUGLG8v6WH/Ca zjrAT1Iu48vay5pTQ2yE9sFU4t2HHIjt/POcJz7fhEkWVaLp/MWrLFig54wkWYY4TXBo t0Fz+zVwOjGMcxoS4Tes+SeBMv0Qmo5z5aHqKJiJkHpfgoKhxGp9DKQyZx2KVO97WemX 0BaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="p836t4C/"; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bx7si4592178edb.403.2019.11.27.17.27.53; Wed, 27 Nov 2019 17:28:17 -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=fail header.i=@gmail.com header.s=20161025 header.b="p836t4C/"; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727406AbfK1B05 (ORCPT + 99 others); Wed, 27 Nov 2019 20:26:57 -0500 Received: from mail-qk1-f195.google.com ([209.85.222.195]:34908 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727088AbfK1B04 (ORCPT ); Wed, 27 Nov 2019 20:26:56 -0500 Received: by mail-qk1-f195.google.com with SMTP id v23so13529564qkg.2; Wed, 27 Nov 2019 17:26:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:cc:message-id; bh=v8LU2xOwjieQDa2R6tGnD5twL2ibcfNQBKehMMo1pOM=; b=p836t4C/Mb+9Qvhxsav8CCyUyHlm3wBMtfPfrn7bYMeeIejCGlv2YUMbpMA0MK1L/+ VXLxbYJ1NRwLdz4WkoVp/VfhBcqoiVEyHiO7HWdo6shS9Tl5xZzi0OMXtAc3vfX8T99h M5iouGVNciEqs7b5tcU+peOjlNwiRSnt8kZXmpIwK0Ur818WjukKiDKLjldfYPg+FV72 xwAZ6ZIEcbcyos8SKyHW7pFoJFtzmgL1p8HGIUpHLHd2dqkmRjrT1TmtSvbIT80C2myy ArzTiwQSWj70wXmczp2vX7IPGgt7mx746sp/kEm5s0K2x9XVmeuEHXoYAcAEChc6dcfN PmIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:cc:message-id; bh=v8LU2xOwjieQDa2R6tGnD5twL2ibcfNQBKehMMo1pOM=; b=SjPM2F7Q+zOq9wFKOTsQwHw6zlo9qWtMowfHTpHokZzg7FB3qbQfAIqVb//vi0hyfp i9+WWPFndCBxGyNPNUFdJ2sVh0qVAa2DF0vnYtRtnvRJ7UdYpoPOTRjRm1sTnDtZNRe/ 3icA/6Xdz17fB5QUfPZemWwMutbzL8U7yRkLg0Yf9pXmFqFXg8i8VEyAEtOBz2aloyuR gdXA1O5TjFsu2SOMOA+xJ/2kgF1P1yxMU8LGVaAkxXx6r4z0L/6kM9yrbN5NKxcFRWJW 9CxpXTwNiqhvCiCIdQn4OpDqptDokcpnRVSNN1B/Nci54iDOFFmDpOfwzwMm2aDl7azw v4rA== X-Gm-Message-State: APjAAAX7kGd00KlJt6D+7hwSiuM0HiASiGUWslCHKonFJw5J2fL3WddM 87g5D0zkwez6hZRK5qsabLk= X-Received: by 2002:a37:b12:: with SMTP id 18mr7235035qkl.387.1574904413916; Wed, 27 Nov 2019 17:26:53 -0800 (PST) Received: from [192.168.86.249] ([179.97.35.50]) by smtp.gmail.com with ESMTPSA id o33sm9020218qta.27.2019.11.27.17.26.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Nov 2019 17:26:53 -0800 (PST) From: Arnaldo Carvalho de Melo X-Google-Original-From: Arnaldo Carvalho de Melo Date: Wed, 27 Nov 2019 22:27:31 -0300 User-Agent: K-9 Mail for Android In-Reply-To: References: <87imn6y4n9.fsf@toke.dk> <20191126183451.GC29071@kernel.org> <87d0dexyij.fsf@toke.dk> <20191126190450.GD29071@kernel.org> <20191126221018.GA22719@kernel.org> <20191126221733.GB22719@kernel.org> <20191126231030.GE3145429@mini-arch.hsd1.ca.comcast.net> <20191126155228.0e6ed54c@cakuba.netronome.com> <20191127013901.GE29071@kernel.org> <2993CDB0-8D4D-4A0C-9DB2-8FDD1A0538AB@kernel.org> <58CA150B-D006-48DF-A279-077BA2FFD6EC@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH] libbpf: Fix up generation of bpf_helper_defs.h To: Alexei Starovoitov , Arnaldo Carvalho de Melo CC: Jakub Kicinski , Stanislav Fomichev , Andrii Nakryiko , =?ISO-8859-1?Q?Toke_H=F8iland-J=F8rgensen?= , Andrii Nakryiko , Adrian Hunter , Alexei Starovoitov , Daniel Borkmann , Jiri Olsa , Martin KaFai Lau , Namhyung Kim , bpf , Networking , linux-perf-users@vger.kernel.org, Linux Kernel Mailing List , Quentin Monnet Message-ID: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On November 27, 2019 10:20:17 PM GMT-03:00, Alexei Starovoitov wrote: >On Wed, Nov 27, 2019 at 5:17 PM Arnaldo Carvalho de Melo > wrote: >> >> On November 27, 2019 9:59:15 PM GMT-03:00, Alexei Starovoitov > wrote: >> >On Wed, Nov 27, 2019 at 4:50 PM Arnaldo Carvalho de Melo >> > wrote: >> >> >> >> Take it as one, I think it's what should have been in the cset it >is >> >fixing, that way no breakage would have happened=2E >> > >> >Ok=2E I trimmed commit log and applied here: >> >>https://git=2Ekernel=2Eorg/pub/scm/linux/kernel/git/bpf/bpf=2Egit/commit= /?id=3D1fd450f99272791df8ea8e1b0f5657678e118e90 >> > >> >What about your other fix and my suggestion there? >> >(__u64) cast instead of PRI ? >> >We do this already in two places: >> >libbpf=2Ec: shdr_idx, (__u64)sym->st_value); >> >libbpf=2Ec: (__u64)sym=2Est_value, >GELF_ST_TYPE(sym=2Est_info), >> >> >> I'm using the smartphone now, but I thought you first suggested using >a cast to long, if you mean using %llu + cast to __u64, then should be >was ugly as using PRI, IOW, should work on both 64 bit and 32 bit=2E :-) > >Yes=2E I suggested (long) first, but then found two cases in libbpf that >solve this with (__u64), >so better to stick to that for consistency=2E If it's already being used elsewhere in lubbpf, it was tested already with= the build containers and since nobody complained, go with it :-) - Arnaldo