From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E722BC433DF for ; Tue, 7 Jul 2020 15:44:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C7E6820738 for ; Tue, 7 Jul 2020 15:44:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="d+0+9nyg" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728718AbgGGPoR (ORCPT ); Tue, 7 Jul 2020 11:44:17 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:23652 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726911AbgGGPoR (ORCPT ); Tue, 7 Jul 2020 11:44:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594136656; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/wbCc8tE8PD7GcmBP8ojS1OSq6nWEEZktf/F0MVDpwU=; b=d+0+9nygjW6qTYNbnaBpNWCfJfSs59HXy9dpfqyGjYG5RpGiE+QtPXAqloZ8kFSi/hqf6X 1+xMgfyF3uJYIkyY9r6LAzdxfisocn6f1B+S+zmVNQEBhCnSuAM1zTVX4dM81ffI3S8VR6 U+POnNDRCpwy8y9dFMsKcaQX321TgdM= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-68-TPzP1GrXOcyhh8CweiGd6w-1; Tue, 07 Jul 2020 11:44:14 -0400 X-MC-Unique: TPzP1GrXOcyhh8CweiGd6w-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E383091164; Tue, 7 Jul 2020 15:44:11 +0000 (UTC) Received: from krava (unknown [10.40.195.209]) by smtp.corp.redhat.com (Postfix) with SMTP id 8987DB3A7E; Tue, 7 Jul 2020 15:44:08 +0000 (UTC) Date: Tue, 7 Jul 2020 17:44:07 +0200 From: Jiri Olsa To: Andrii Nakryiko Cc: Jiri Olsa , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Networking , bpf , Song Liu , Yonghong Song , Martin KaFai Lau , David Miller , John Fastabend , Wenbo Zhang , KP Singh , Brendan Gregg , Florent Revest , Al Viro Subject: Re: [PATCH v5 bpf-next 8/9] tools headers: Adopt verbatim copy of btf_ids.h from kernel sources Message-ID: <20200707154407.GH3424581@krava> References: <20200703095111.3268961-1-jolsa@kernel.org> <20200703095111.3268961-9-jolsa@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Sender: bpf-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org On Mon, Jul 06, 2020 at 05:56:09PM -0700, Andrii Nakryiko wrote: > On Fri, Jul 3, 2020 at 2:53 AM Jiri Olsa wrote: > > > > It will be needed by bpf selftest for resolve_btfids tool. > > > > Also adding __PASTE macro as btf_ids.h dependency, which is > > defined in: > > > > include/linux/compiler_types.h > > > > but because tools/include do not have this header, I'm putting > > the macro into linux/compiler.h header. > > > > Acked-by: Andrii Nakryiko > > Signed-off-by: Jiri Olsa > > --- > > tools/include/linux/btf_ids.h | 87 ++++++++++++++++++++++++++++++++++ > > tools/include/linux/compiler.h | 4 ++ > > 2 files changed, 91 insertions(+) > > create mode 100644 tools/include/linux/btf_ids.h > > > > diff --git a/tools/include/linux/btf_ids.h b/tools/include/linux/btf_ids.h > > new file mode 100644 > > index 000000000000..d317150bc9e3 > > --- /dev/null > > +++ b/tools/include/linux/btf_ids.h > > @@ -0,0 +1,87 @@ > > +/* SPDX-License-Identifier: GPL-2.0 */ > > + > > +#ifndef _LINUX_BTF_IDS_H > > +#define _LINUX_BTF_IDS_H > > + > > +#include /* for __PASTE */ > > + > > +/* > > + * Following macros help to define lists of BTF IDs placed > > + * in .BTF_ids section. They are initially filled with zeros > > One more inconsistency with .BTF_ids vs .BTF.ids (probably same in the > original header, which I missed). ok > > > + * (during compilation) and resolved later during the > > + * linking phase by btfid tool. > > typo: resolve_btfids tool will fix thanks, jirka > > > + * > > + * Any change in list layout must be reflected in btfid > > + * tool logic. > > + */ > > + > > [...] >