Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1258802rdb; Fri, 16 Feb 2024 09:49:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXH9rD5+yywt3kcgcGZcv1FwsTRiN6vlZ9aZlYqUGoHUBzXMk+mMXtKT66xrQ6l4dcaB0lRJVAHhVby48Ixdtnah3GPza+5YrTJQSfWQA== X-Google-Smtp-Source: AGHT+IEOvVfhlTgOZqF7JTFcwk3J8LiyYx41xE5+N1aw7IqX1PA5xxgOcxYDM36PcnkyALW1klfz X-Received: by 2002:a17:906:6896:b0:a3d:88be:943e with SMTP id n22-20020a170906689600b00a3d88be943emr4181750ejr.63.1708105740656; Fri, 16 Feb 2024 09:49:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708105740; cv=pass; d=google.com; s=arc-20160816; b=j2tgvVoSoX3GQ0dH3/bVbW0wcSQ81gCfdIwEGpiZizAjqQWlkeq1msI8jBzz36uMyy ci1P+ITBwWLy5WwD/9eW7FrxiTel6/z+KnvWEXFTB2Lxqny6vFFQnQKMxIdCixqDv+Ks CwF3Zne5fTWzs/T8swUENfcj7xxsO9uNh1I/TJv1N0GeRRaYVQBZaMwnbIpACC9A89bE DGDyPXUZbzBKvgCCAL+4fhOefPXd0Ke2QCwr0TP4+M5FxANwAi4eXR8w1hCjqyx3I1C8 SiaaSBlO2Ey3ZWA20/QT/wNAc+x7lcVU7ZfVRijzta3VyC1LoEjhp0RIawKLZlX4jFFP TuTg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0ilIfurYweC/EW3h4dJytzJW7ar3XRvkr72RA4sgRkA=; fh=EyWe0P73fPyeDH747e0yQkqJr8jU9wEoh208ROYzUDg=; b=jGyjC8UVGnCmsmZkW1napljTm2AIfQE4L50cWxd7ZMH9Uh8GQNZCGkbcRidLoj7u3t YxVf8tJVs5nTQUl2FuhxCrGRkt6QrDjcckQqdIeIQ9cOmQEN30GK70SS2WKvFHzVB+V2 Nj2I2JAh90NxvdHYo+N0ZNf6pSU27Nt/GhY30cA+7mVjbZV6aDM2d1/UaAL1WbA7fn4d Kr7tX3I1TVF+341SE3RRhMyso4fEt208UeSp6qclIH4d+wdWWiRDc7TUGu7T0uQ70Zyk MvDYL4B3c+QiS1kixZQLz9ngYTDZ3YeaMXvLZI8JhWVqbM2SWpl9FP4glLeriuv/dGvb 7SbA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oSSKlAF3; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-69104-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69104-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id g13-20020a1709063b0d00b00a3d36ca5841si131700ejf.202.2024.02.16.09.49.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 09:49:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69104-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oSSKlAF3; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-69104-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69104-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 668EC1F21422 for ; Fri, 16 Feb 2024 17:49:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CA8D0132C15; Fri, 16 Feb 2024 17:48:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="oSSKlAF3" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 03758131722 for ; Fri, 16 Feb 2024 17:48:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708105732; cv=none; b=iAY3NrIa2tw6Vb2sbJ4+YgGNFqmAjK0e37M/ho4576Zn9LqfGNapkVtrzKJwR3Z4eVUPIxzlICKBy8JYyZ8/VvU0kYtBrqwvXly1sXIy579/kF5SNEh0xack7kk4aolbyfrruZKb+UmIk+0ze+sgXZZD4Ow0Aiq7XjjxaIemnDE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708105732; c=relaxed/simple; bh=wTRb9lJ0nVs4kr0sv4yA4lFLI2PF0QM9GnJww5OBJ9Y=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=luMrhzxoQJ7/VeeUHdqdx4IhZ8OBfIfhnrV1+xwMF2HU8ljZODuyxHhIOPVDhcFLxmFTfZzd9qsbZRP9ywIohLqydZaAnb4MjXL+OpfUkf9PhGVSHo0SgWWU4B7sfdFcB+kfefIEe3OZ8qHXL+UeK7k+FLfQoaIQnzr5pEgiWgY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=oSSKlAF3; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A38CC433C7; Fri, 16 Feb 2024 17:48:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708105731; bh=wTRb9lJ0nVs4kr0sv4yA4lFLI2PF0QM9GnJww5OBJ9Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oSSKlAF3eXLA8VlBrRn9Clb5GmJmIBYwtt1LziBZ8emY4Da0LSr4Pl7Cu1kdAkLji vvRP8MxDQdrKnsZs/A3dpE3ogO5vObIZwHdJBpQPHbCNXgBWC79CVJmQcCn7Ippixm JaorLxNqiCKhcqRhQVzPX7TyLJ3iEdor9LD11RZtmXmrL2ygslb7TpM7M8EDWuqy7b gpzbWyxoj5sh1i6G0mXD5fqWBv5iUHusYj+30Y1lifuEX4isW5GBNybcYUPSBDBSbB nsU+Rh3RuJSc+PsVES4zGgsDK43PVZrm3cs2zSWzIABA9pzgSs1KLVvDeoJbxJPMjR jaxaFuZ4TMldA== Date: Fri, 16 Feb 2024 14:48:48 -0300 From: Arnaldo Carvalho de Melo To: Namhyung Kim Cc: Adrian Hunter , Ian Rogers , Jiri Olsa , Linux Kernel Mailing List Subject: Re: [PATCH 1/1] perf augmented_raw_syscalls.bpf: Move 'struct timespec64' to vmlinux.h Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Mon, Feb 05, 2024 at 03:16:25PM -0800, Namhyung Kim wrote: > On Fri, Feb 2, 2024 at 6:01 PM Namhyung Kim wrote: > > On Fri, Feb 2, 2024 at 11:35 AM 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 */ > > > }; > > Acked-by: Namhyung Kim > Hmm.. but it makes it fail to build with GEN_VMLINUX_H=1. > 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 = 0, > ^ > linux/tools/perf/util/bpf_skel/.tmp/../vmlinux.h:46833:2: note: > previous definition is here > BPF_REG_0 = 0, > ^ Right, the following oneliner fixes it (the minimalistic pre-built vmlinux.h we carry when not using GEN_VMLINUX_H=1 already has it), I'll squash it, do some container test builds and resend. - Arnaldo 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 d3b672593c540259..0acbd74e8c760956 100644 --- a/tools/perf/util/bpf_skel/augmented_raw_syscalls.bpf.c +++ b/tools/perf/util/bpf_skel/augmented_raw_syscalls.bpf.c @@ -7,7 +7,6 @@ */ #include "vmlinux.h" -#include #include #include