Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2331133pxu; Mon, 7 Dec 2020 04:01:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJyyW8ro5UvQbkevRuVcy80iyoPQydD1+8wjwIi9la+bv2db35jbLWAyE1ctSTZe1OmNl5aY X-Received: by 2002:a17:906:9388:: with SMTP id l8mr4952558ejx.22.1607342480748; Mon, 07 Dec 2020 04:01:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607342480; cv=none; d=google.com; s=arc-20160816; b=mtIjKOe9XpCLKUrw2E4wBkKzbQNXPM0fcGuRO/HTY4Mcgv9TyxrCWLiEDk7bhW0aQh W3ciWJAGk/t4Yra3BRooeSjhu8+fASuamnXBCprSSOzBQMshADdaH25IfIXFGnkYC4aq aMvGehs0IENbkwZ7FJyzXdgMTvIY7tYi/IHs+vaXsRk/JUxtMRIy6v+4TufjsOX0Gj9t +keP8IrsR6YYus1/wF1cfO9neJDcQuHJS9tHjZkKoXJLnHL4ViqUvETPmZ5hjtsreWtC r87SybJERmB716kaMF3P8JnIHj6N6I4M4s4URiZuGUh5n+Ha3ez0a/w8NiMqDNVspz0T kkaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type:content-language :thread-index:content-transfer-encoding:mime-version:message-id:date :subject:in-reply-to:cc:to:from:dkim-signature:dkim-filter; bh=EKU59/ZcPOnYuRcIpLZfbTLpvw0FVbLbHIp7DsjPRyQ=; b=HonK4PipBeZXOjPkhMvDQ/mHzYkmYE9F7NbGuOuxHMNUhqsq6PwChqIb+Y4e/CQ17R FhhWnW5GiNAiz3/IGbgsTepiONT7YLzXWJmJZXtB4gptxM+Uhjuyb1p51K61ZPc9k6Ji yIpmbqwxSDKh6Ha+fN3im/rDYJO4SlZDvLvY++SToO4yME1EvmfRbAwZUcJFBm/Gj9av GkYw6Vlrd7XY0ghJ+gsP/uygGoYKNSECuD6XW9B2hQFyMsoJWl1ChNaGJgHJJixk3NZ6 eMNz40ms5t/L/rkAGk2aszGeBEdbbTi3evvDv/QJeSSkHQ+LO31pHzP2iexnzIL5QGCK 5YLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=sVq8f6bv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k5si6612745edl.83.2020.12.07.04.00.57; Mon, 07 Dec 2020 04:01:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=sVq8f6bv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727018AbgLGL64 (ORCPT + 99 others); Mon, 7 Dec 2020 06:58:56 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:26344 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726883AbgLGL6z (ORCPT ); Mon, 7 Dec 2020 06:58:55 -0500 Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20201207115812epoutp017b4a8c9ff345dd538d06fac47597f8d5~ObUxsOQ5G2710427104epoutp01S for ; Mon, 7 Dec 2020 11:58:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20201207115812epoutp017b4a8c9ff345dd538d06fac47597f8d5~ObUxsOQ5G2710427104epoutp01S DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1607342292; bh=EKU59/ZcPOnYuRcIpLZfbTLpvw0FVbLbHIp7DsjPRyQ=; h=From:To:Cc:In-Reply-To:Subject:Date:References:From; b=sVq8f6bv1N2ip0dQh/vkIpWLvMf4WjZ0QI8rBF+fkRh5SBVDOEImF0q3Q74uadNLd wkDRWpin2NIgWcDXX+INvgDqtPPL6bfhsg3psCnhq1S2EO2oKo/OnZdf7Wr8OBIJo+ AuUC753ST12XvguzlaZT+S1PyEsMIP3n3/yFkF24= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20201207115811epcas2p2d64d4a7a03174285471ff34f1cd767c4~ObUxQFyuj0385403854epcas2p2D; Mon, 7 Dec 2020 11:58:11 +0000 (GMT) Received: from epsmges2p1.samsung.com (unknown [182.195.40.186]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4CqMJf2nFyzMqYkZ; Mon, 7 Dec 2020 11:58:10 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p1.samsung.com (Symantec Messaging Gateway) with SMTP id 63.E8.10621.2D81ECF5; Mon, 7 Dec 2020 20:58:10 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p2.samsung.com (KnoxPortal) with ESMTPA id 20201207115809epcas2p27357338e523393e51399eadb7a2c2351~ObUvj8Re_0385403854epcas2p2-; Mon, 7 Dec 2020 11:58:09 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20201207115809epsmtrp2d89c368dfb86d1163f5f949b4549b4d0~ObUvjDlKj0558405584epsmtrp2F; Mon, 7 Dec 2020 11:58:09 +0000 (GMT) X-AuditID: b6c32a45-34dff7000001297d-b1-5fce18d28ef5 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 09.65.13470.1D81ECF5; Mon, 7 Dec 2020 20:58:09 +0900 (KST) Received: from KORCO039056 (unknown [10.229.8.156]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20201207115809epsmtip2ce556400882a23e1d17aa05ca33b63b7~ObUvSuX2d1852518525epsmtip2G; Mon, 7 Dec 2020 11:58:09 +0000 (GMT) From: "Chanho Park" To: "'Will Deacon'" , "'Chanho Park'" Cc: , , , , , "'Mike Leach'" , "'Leo Yan'" , "'John Garry'" , "'Peter Zijlstra'" , "'Ingo Molnar'" , "'Arnaldo Carvalho de Melo'" , "'Mark Rutland'" , "'Jiri Olsa'" , "'Namhyung Kim'" , "'Khem Raj'" In-Reply-To: <20201207105359.GA4198@willie-the-truck> Subject: RE: [PATCH] perf arm pmu: fix build error on MUSL libc Date: Mon, 7 Dec 2020 20:58:09 +0900 Message-ID: <001101d6cc90$3b491310$b1db3930$@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQL9yUid8Wz8jDy8suCkHfvhsfGAdwJrg0gYATsEmCungEns0A== Content-Language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA02Te0xTVxzHc+5tbwvaeikoJx2P5uILlkLLbDmoDKeM3IWZ1WySzCzWDi6U rLRNC0QXjcCE8HDGBny0IoMozCFCeLQ85W3YSwcsQ8LDLAJD2QpEtkXcqmu5NeO/zz3f3zff 3/fce/m46FdCzM/QZzEmvUZHEb4cx2C4UjoGH6hlg1YBKnnUTqDOThw19+Zz0b37LgyV2ccI 1Dw7zkU/d1YQqObhKIbs3X0YWnl8hYfG+qowlF9r56Dl5WoCDX/pFgof2gCyTk0BdG5accCP rq+sB3SHbYZHnxtycumWWxF0c10xQU+PdxN0y82z9NTLWZxe7vmFoFebQ1S+x3T7tYwmlTFJ GH2KITVDnx5HJX2oPqRWKGVyqTwWxVASv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: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20201207105410epcas2p3f9210689886172422d27870f25a79df3 References: <20201206144527.1670483-1-chanho61.park@samsung.com> <20201207105359.GA4198@willie-the-truck> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Will, > Looks like other files just include this unconditionally, but have a > comment explaining why. See util/branch.h and util/event.h. Maybe we > should do the same for util/pmu.h, which is already included here? I found below files which perf includes . Instead of doing same for all, we'd better put this only for tools/include/uapi/linux/perf_event.h. --- a/tools/include/uapi/linux/perf_event.h +++ b/tools/include/uapi/linux/perf_event.h @@ -17,6 +17,9 @@ #include #include +#if !defined(__GLIBC__) +#include +#endif #include /* tools/perf/arch/arm/util/pmu.c:#include tools/perf/arch/x86/util/pmu.c:#include tools/perf/arch/x86/util/tsc.c:#include tools/perf/lib/include/internal/evsel.h:#include tools/perf/lib/include/perf/event.h:#include tools/perf/lib/tests/test-evlist.c:#include tools/perf/lib/tests/test-evsel.c:#include tools/perf/tests/hists_common.c:#include tools/perf/util/auxtrace.c:#include tools/perf/util/auxtrace.h:#include tools/perf/util/branch.h:#include tools/perf/util/event.c:#include tools/perf/util/evsel.c:#include tools/perf/util/evsel.h:#include tools/perf/util/header.h:#include tools/perf/util/mem-events.h:#include tools/perf/util/namespaces.h:#include tools/perf/util/record.h:#include tools/perf/util/session.h:#include tools/perf/util/pmu.h:#include tools/perf/util/synthetic-events.c:#include tools/perf/util/parse-events.h:#include tools/perf/util/perf_event_attr_fprintf.c:#include Best Regards, Chanho Park