Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2703452rdb; Mon, 5 Feb 2024 15:16:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IHnDkTs2dT1/ICdj5DzpJ95SkhIerj9UrvTExDMF4Nf010i8GXGH0Mv8Zu6fU8bvogYHd3M X-Received: by 2002:a17:90b:3615:b0:295:c87f:6f51 with SMTP id ml21-20020a17090b361500b00295c87f6f51mr950747pjb.26.1707175006016; Mon, 05 Feb 2024 15:16:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707175006; cv=pass; d=google.com; s=arc-20160816; b=TBBBZdb7IfAbgxpyhTP3Sjz2sHaZyIVKdeb8M2Uq7SlKazUW+NZuO+iAdyaMUetHMy iby00AzhTwZiAYy+ax3zFTxVyBzSJAQXdoxQNJpydyj0Ro5YqTiv/gFoDHbSXSyDsRb/ KqKtT+JI2wSOeVrnilKFvmqTvcqpAo9RBeRF2Sy7lKb34XzzTIhIJ5rbSH800789ovT1 Xq6sVqyHoeiJky1KWZlaY48pJwD8OBkvV+etAyD2ObHgI5SZK28a7eR5tst+Kz6MGSAw tci0wc5BxlD1viLAb2FSjEUht0HyxG5grjDeB6w9wMCm/UIjnvGsKfR8VOINwqaTZgbE KtfA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence; bh=tfrCIsKTIDPuf1kBbgefVyKBKKRwJ43oiLoQQpXfJFE=; fh=gUTTohyahOZWqVawpIuz9K6goWPp8BEoB3rwARwmO+E=; b=R5XsocymRGWQ2u6j1Ws8/iOH5C7hZMvq/oux7vDVeRFHrncyeZvozK/Cx1j316Q1wN 2DDFXL++PkMPOk5A066chVi111AISFwEOUSiuNrPgbc++sObkOjhlWJMhgFzZ3YiNGIR RTkD7hFSTTyU+Pa2vsh0ckc+TQcy2UiJ9ne9pKsRgcYAnzJVEuUL+WMX47m87wfBS40S y4LoWzMrbNA/3+ni0+fA0CEIumLRVkNmrXxxFQVSII+rEDwPhYvoOYpPE+O4drPlZnRd iW/wJUL12MslKOBbrRUnQ00Q2n5i1FKM6Bv1X5P/Fx0lleqRodvNRnMfU5VOgimKSDZL x7TA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-54076-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54076-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCVhSA6Rt+gxz4H8Yc4fS+7lz9HeTBBkp7ofOTr3oQPABRFtIvA4khvaUVE6G85GEBwJKkuTS2TTPSD89apsDrQqGOk35oJYY0rYUA/DBA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id lk12-20020a17090b33cc00b00295aa8431a4si31399pjb.24.2024.02.05.15.16.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 15:16:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54076-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-54076-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54076-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A0DB928F734 for ; Mon, 5 Feb 2024 23:16:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0A4274F217; Mon, 5 Feb 2024 23:16:42 +0000 (UTC) Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E69BD4F218 for ; Mon, 5 Feb 2024 23:16:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707175001; cv=none; b=hgLiRH2Lp/+LcKwfvMCXwiYohvPaX2l/cEMYtVX2W5sFD76xXM3eWx5MNOkzNht43tSJqxn/aFHoNueyebixhlrVS9wdr7g+f2o9v/8DK/2b/elx1o2rd33V2gtMPOL9ue9UDSgLrnoJt4gFyielGZvWIlrxrQp/9WFmyWsc7Z4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707175001; c=relaxed/simple; bh=jP85jDq0cvSnI7nRh3hM2aCRJietCWqaBA3nArkBg9E=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=CEl3v5Un/NXdtW+o5Xs/wU4dEDtPWyoZjhzYOcdPLTv1ssaRefwbuZvwOYZHsPtwduJK+U4zHVfY2QT0FwtkJTU1PCyKUBv6KceVWFmp4SStxG/6Wp2cReHT+Nmxj0cWiL2JToZFdqa/itbGK2MGB+7BTYKrkk7La6nxNlnbOwA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.210.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-6de2f8d6fb9so3736840b3a.1 for ; Mon, 05 Feb 2024 15:16:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707174999; x=1707779799; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tfrCIsKTIDPuf1kBbgefVyKBKKRwJ43oiLoQQpXfJFE=; b=MHyC1J3MaYNxKVu1kET8bpdscJAb/UvwC8A/k/rOQLyZLF3fJoWKfcLgl79NVaSLC4 ak2F4T1JeS++K9dN/x/xkZhxySRbXHsU9LrNw/rAqOyUztMiw4WsFpcRcY3cbHKuEaZ5 zHbE2opzFAnGDC8IRn9kWvUUAoAuXz4nvqYFDiL6pXv8z07z+a+7Ts1Hpqh+Uj34L5BE fjefLyGyxkrImfG/6/Ke5/VJAhRpoE8LzeA8SVaOPbLJQY0YIbhSt2FDQv2t3kYj8Zjh BRaSZaIOw3vRURrb6yrGrr719joA+hUoXIigOH6LOavtbkfHWwJRVuQv8Ex8JlNX6JQI 9oVA== X-Gm-Message-State: AOJu0YxNg3mRDCZSZ4wsn8sizAInl8blLbsvLQFVBrRHEMTbirTC/S8j aUoHaph1Y86UKQj7BS9KbBQ47ebEveJV6ds4yqn6SqM+eLmxPpBR4zl3DSch7Dch0jbnVKN3bq4 vlXlMWBICtAZRqtT8ee8mJTW/edQ= X-Received: by 2002:a05:6a00:4595:b0:6df:eb95:2c78 with SMTP id it21-20020a056a00459500b006dfeb952c78mr1032057pfb.10.1707174999043; Mon, 05 Feb 2024 15:16:39 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: In-Reply-To: From: Namhyung Kim Date: Mon, 5 Feb 2024 15:16:25 -0800 Message-ID: Subject: Re: [PATCH 1/1] perf augmented_raw_syscalls.bpf: Move 'struct timespec64' to vmlinux.h To: Arnaldo Carvalho de Melo Cc: Adrian Hunter , Ian Rogers , Jiri Olsa , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Feb 2, 2024 at 6:01=E2=80=AFPM Namhyung Kim w= rote: > > On Fri, Feb 2, 2024 at 11:35=E2=80=AFAM Arnaldo Carvalho de Melo > wrote: > > > > If we instead decide to generate vmlinux.h from BTF info, it will be > > there: > > > > $ pahole timespec64 > > struct timespec64 { > > time64_t tv_sec; /* 0 8= */ > > long int tv_nsec; /* 8 8= */ > > > > /* size: 16, cachelines: 1, members: 2 */ > > /* last cacheline: 16 bytes */ > > }; > > > > $ > > > > pahole manages to find it from /sys/kernel/btf/vmlinux, that is > > generated from the kernel types. > > > > Cc: Adrian Hunter > > Cc: Ian Rogers > > Cc: Jiri Olsa > > Cc: Namhyung Kim > > Link: https://lore.kernel.org/lkml/ > > Signed-off-by: Arnaldo Carvalho de Melo > > Acked-by: Namhyung Kim Hmm.. but it makes it fail to build with GEN_VMLINUX_H=3D1. Thanks, Namhyung CLANG linux/tools/perf/util/bpf_skel/.tmp/augmented_raw_syscalls.bpf.o In file included from util/bpf_skel/augmented_raw_syscalls.bpf.c:10: linux/tools/include/uapi/linux/bpf.h:55:2: error: redefinition of enumerator 'BPF_REG_0' BPF_REG_0 =3D 0, ^ linux/tools/perf/util/bpf_skel/.tmp/../vmlinux.h:46833:2: note: previous definition is here BPF_REG_0 =3D 0, ^