Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6861179rwr; Tue, 9 May 2023 23:51:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5UesFU3IEFu/QE20VdLItFRVVCbO5xZ13vZM5q3xOZD9XY4ej7Pc9AJNwjHD3/vSnQ3d+T X-Received: by 2002:a17:902:c40a:b0:1ab:28ec:bf10 with SMTP id k10-20020a170902c40a00b001ab28ecbf10mr23494362plk.51.1683701464990; Tue, 09 May 2023 23:51:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683701464; cv=none; d=google.com; s=arc-20160816; b=rPjHSKYEJzGZqPD8644FMtTO/NkcExRUy7rroas+Zk+HoqlMc7XGSkNGYMJsHnbyuX BDgtuT8t4x1zdxWBoygRtdZ+i2hETiJv7FEZBsMEbhBY8NeK9aoLgsXwvAY1DSYsLyx3 daM7B4NUpBAEKgNmkhR5xEU6MBTLFyPkM230J6eFyEbfPcWEi7shzQdcO0kavhP+QMtE r6GHwuGbD8DXfXbtzQVLGGtvN/iswx3vo57sa583Er87SnGhvlV+fMMd/SN/NhBO045v OTAhmzai+vB/0WpVfNY0h4Bc1fsy+S9HcnjrvTLlx0qxyXyU9TWSxLkH0iNCI9B/dOmy UImA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=6b89a6M9Wv2hZeJ12waUIVeqvD080SDpjftSwI6u384=; b=kir1ukSPJs1tK5qY/OrLFpWmLOUfgqIwRRhvTk2hBavK91K2cU0dV+m1RTSQKRzocr VDW5cOtMfDLdZiqEaRJq7rqs3gps2x5k0kJYkE51bfb8d4puvLL3whE7EDZzFcnuZHys 3fCJcpTIkL3lnANpqzuKhOAyhcCsAnC40pTma957eKVBOK/uV7IUCk6SAZkrV5nZDR2t N59ffWEa4N9g2XlnZekW0BLkadNf8qd7yTy9zUAllcz0eeIeFuTBAIfNJNZns0Ve4XpZ 3W+XtfKwMDmYis/Y0D4xKi3uilXekpd8I3Lfu0LacKba+WpC1lzM5Fm50LJETYJUBkzA xEhw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j1-20020a17090276c100b001a6db2bef14si3155988plt.157.2023.05.09.23.50.50; Tue, 09 May 2023 23:51:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236079AbjEJGr7 (ORCPT + 99 others); Wed, 10 May 2023 02:47:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229737AbjEJGr6 (ORCPT ); Wed, 10 May 2023 02:47:58 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3AEA270B; Tue, 9 May 2023 23:47:56 -0700 (PDT) Received: from kwepemm600003.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4QGQTn0WDLzpSyv; Wed, 10 May 2023 14:43:41 +0800 (CST) Received: from [10.67.111.205] (10.67.111.205) by kwepemm600003.china.huawei.com (7.193.23.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Wed, 10 May 2023 14:47:51 +0800 Subject: Re: [PATCH] perf bpf skels: vmlinux.h uses bpf.h and perf_event.h in the source directory To: Arnaldo Carvalho de Melo CC: , , , , , , , , , References: <20230509063649.239942-1-yangjihong1@huawei.com> From: Yang Jihong Message-ID: <427c2d97-64bb-ab0d-77d6-547bd73947d5@huawei.com> Date: Wed, 10 May 2023 14:47:51 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.111.205] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemm600003.china.huawei.com (7.193.23.202) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On 2023/5/10 2:21, Arnaldo Carvalho de Melo wrote: > Em Tue, May 09, 2023 at 06:36:49AM +0000, Yang Jihong escreveu: >> Currently, vmlinux.h uses the bpf.h and perf_event.h header files in the >> system path. If the header files in compilation environment are old, >> compilation may fail. For example: >> >> /home/yangjihong/linux/tools/perf/util/bpf_skel/.tmp/../vmlinux.h:151:27: error: field has incomplete type 'union perf_sample_weight' >> union perf_sample_weight weight; > > > Can this be solved in the Makefile directives for building BPF targets? > OK, will send v2 patch, use Makefile to specify path of header file that is preferentially used. Pls check whether the solution is OK. Thanks, Yang