Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3662622rdb; Wed, 13 Sep 2023 21:07:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEm5xokWxTn1thlfqS+3CEiLpVFyQDk2B8tgr9Ir/iO4dc3ZZtWaVSEFmurs4K9ooKcW1I5 X-Received: by 2002:a17:90a:3c8e:b0:268:52a6:103d with SMTP id g14-20020a17090a3c8e00b0026852a6103dmr4128947pjc.9.1694664422870; Wed, 13 Sep 2023 21:07:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694664422; cv=none; d=google.com; s=arc-20160816; b=eiIQI+CevEj0QJrrx3aewrcBNqU23zcSb5L7DRDi1Kz5/XVf3VAKNkI3bCU7doXGUk 91r/FDigrvBTi8q5GjjPBnxUjlhhYVDaQkV0NtXWpYTX2KCtbxOxgDCbIeUhoCuvEioG e1FSGI+WBR2uscApSep2ihzsouB9A30/c18mk14KDLnxslfOBnqah5OtUwHEyGRTRTxl k0BApRstCCeZlNBf9Ss/Cdq7sSThmFz9paJSkLWqrdJUuE9Z5g9DGB/6v77DaWecXLLC nlA2dSYXGcTPixBcSH39wf/oTAg7nc+IATtD+c+6R1pVre9iBBFXSzgxSfZu4ydEzv+D BPrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:mime-version:message-id:date :dkim-signature; bh=qPAgyrXwVifCgs8YcSIJJHY71Xaauw3uUQtmqIC6VZw=; fh=wFt3SK5r4Dyu3waQQyjeYrIDLBqp4YSd8G3Xg85WGxk=; b=w9tE/cu1T3uz+96yyXchDNm3rb4H0ObeUfmVBXUOSWS7T/bh2AMMZKdXhhNgDyaZVM LgdJzhb0g5uUYCCzWIERkF6MYmHcEVnSxsdD9ef5QPE2VVH6SqdfSuPnIhQ/teOT+i9V lTCZVIPE15A31LJS8wwO+I9v4b6wVagMnnkqF3ZjcwGNP8WJkLnKQo9mB3KoEEgHGlpd YtwTdYvCDbF0qeqMxpFs/X6gspWMEI8YOW6ibeGx+D4YaLUQoQuN/bbEwlqYT9Dkz0/h SlXUxge8Ghc2kreBx4PRgzUrlXEeuCmNrSNHZbUb6YtmamXejWPRuf+9CJTCRj7lFwsn R9UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="VC/aUfJS"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id ca5-20020a17090af30500b0026f512692fdsi2896771pjb.91.2023.09.13.21.07.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 21:07:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="VC/aUfJS"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 23F868318079; Wed, 13 Sep 2023 11:50:08 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229990AbjIMSuH (ORCPT + 99 others); Wed, 13 Sep 2023 14:50:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230311AbjIMSuF (ORCPT ); Wed, 13 Sep 2023 14:50:05 -0400 Received: from mail-yw1-x1149.google.com (mail-yw1-x1149.google.com [IPv6:2607:f8b0:4864:20::1149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D9F610DF for ; Wed, 13 Sep 2023 11:50:01 -0700 (PDT) Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-58fc448ee4fso1538797b3.2 for ; Wed, 13 Sep 2023 11:50:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1694631000; x=1695235800; darn=vger.kernel.org; h=to:from:subject:mime-version:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=qPAgyrXwVifCgs8YcSIJJHY71Xaauw3uUQtmqIC6VZw=; b=VC/aUfJSLUD322l8VLNpCyQBoOLkyS/EaUegtC7OA5mGf6zxDGSl/T+jsdBFcXH5UP 8MueJJnfn/JizBtldwcYxCKzV2JGRQ3vR4q3cUP7TYTQ2YB9DTxLOEX29i8iwOdFc8Gt Z57uzqrcRP+Qey81gBp33dFPP2+N0xBZXL1Xe/SpsZp4mOxTEBuBT1OjCQ/26CWnZqp+ CYg/wGPkzRobbYm9q8ayw6vEG+fA+lcn2T99xuOk08YP8YQBMcSYZfuV1vd9SKMgG1EX Ro9YEA+ym66bCKTL4eu80Jvro0rzpbCZByWqWYdyvcVKfrbr57DPCtQyU/ZQn2qebi2J RJ/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694631000; x=1695235800; h=to:from:subject:mime-version:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=qPAgyrXwVifCgs8YcSIJJHY71Xaauw3uUQtmqIC6VZw=; b=l/xb9u/E3rgYfl+2aWSx+v7fRf88XeI31b40DAQdrL3OkaI0RW5vxnTKGxga23EfFR PB8SKtpIaFO0yMY7DjlM3/y08dTeH58j1JGgPmQxEfqjuBunxLVkG5BQWAQneupLTtlC T6Z0OvWAKXCO5dpv/LOluvPDgr3lL1oC6gM0KpWZI0QCDS7RUav+t/DdZx2mW9ykJiJ6 0TgWmWn4fX7452NaPDaM8S0byqK3wsxkxXQY8MUMWe3E0hN92G4ckYzQGAohZTDMMhTn /dRDSNfmhhpaKs1p6IpsckSX26Vs3EKmh2uyG6Sl+qtbrj0d1yT8eGlobaP1vaj1RWYh 5yoQ== X-Gm-Message-State: AOJu0YyWS9zz/bKt/uEBf/1qgjlctV2vqF6LZ1AIigOmCU3bx4WEov9w UbMYLT2yv9AusZDPxRyqJn7TKiewFSJk X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:f3b:42d0:4853:6022]) (user=irogers job=sendgmr) by 2002:a25:6c03:0:b0:d80:2916:c3eb with SMTP id h3-20020a256c03000000b00d802916c3ebmr72569ybc.12.1694631000618; Wed, 13 Sep 2023 11:50:00 -0700 (PDT) Date: Wed, 13 Sep 2023 11:49:57 -0700 Message-Id: <20230913184957.230076-1-irogers@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.42.0.283.g2d96d420d3-goog Subject: [PATCH v1] perf trace: Avoid compile error wrt redefining bool From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , Leo Yan , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 13 Sep 2023 11:50:08 -0700 (PDT) X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Make part of an existing TODO conditional to avoid the following build error: ``` tools/perf/util/bpf_skel/augmented_raw_syscalls.bpf.c:26:14: error: cannot combine with previous 'char' declaration specifier 26 | typedef char bool; | ^ include/stdbool.h:20:14: note: expanded from macro 'bool' 20 | #define bool _Bool | ^ tools/perf/util/bpf_skel/augmented_raw_syscalls.bpf.c:26:1: error: typedef requires a name [-Werror,-Wmissing-declarations] 26 | typedef char bool; | ^~~~~~~~~~~~~~~~~ 2 errors generated. ``` Signed-off-by: Ian Rogers --- tools/perf/util/bpf_skel/augmented_raw_syscalls.bpf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/perf/util/bpf_skel/augmented_raw_syscalls.bpf.c b/tools/perf/util/bpf_skel/augmented_raw_syscalls.bpf.c index 90ce22f9c1a9..939ec769bf4a 100644 --- a/tools/perf/util/bpf_skel/augmented_raw_syscalls.bpf.c +++ b/tools/perf/util/bpf_skel/augmented_raw_syscalls.bpf.c @@ -23,7 +23,9 @@ #define MAX_CPUS 4096 // FIXME: These should come from system headers +#ifndef bool typedef char bool; +#endif typedef int pid_t; typedef long long int __s64; typedef __s64 time64_t; -- 2.42.0.283.g2d96d420d3-goog