Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp4044797ybd; Tue, 25 Jun 2019 13:03:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqwKQvLE1hFF/+oUKGv1PmV+EK/UYRDYyHA0GPEnSnCpXWjeAAWz/2s+bBinRQ37FC3kM+rg X-Received: by 2002:a63:c34c:: with SMTP id e12mr5080627pgd.195.1561493017615; Tue, 25 Jun 2019 13:03:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561493017; cv=none; d=google.com; s=arc-20160816; b=hFbwNjFhwt14/gd3QC6yIV2VsS3D1DHKPL+V8anXKeaFeINjeXOO8V5Qwc0m1QhiAF 3x2imd92ureQwJYIsaY6x0Ji6yVBfeCSJfB5x8HTL450xOMvwgwoK4jbJ3IylbRp6eDr 8UYZAstGpF0O3evJcDNdW8joSbky5t1jMu7cCalmGKVQg4QQvVifBBIehgo2jvFW8XOs vVBLXPRt4dy+B8iYsVWuGWVRX3cr1D9RgWIkKaMvEUDWMUknuBrKMtuP3cg83VXE9TNC LHA3Pgnp9pEqHSs/FDzuFuwT2VY4zXAk4XqKzB3IO3EPyRJ4C+wlWmPszX4KcW39OX7C PYcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=85UmCqjB/2q4FemAi0uqOHeKcTywLVBMQcPg1IVAqAM=; b=PsmFZkFWdvnIoRssTvciLBTBsqX1Qq5G73V0XS92m/FEEJxziedU5b+MgiLscsACV8 6OFy0Vn79RJ7kXJTx9P/wKryggufzajLjSM+7ePAtQJUWMzuLZ52H75YtausN6LZ5pfh VKQcpF9NC3XBBdB4Sg/Ll825MTYKavquhzMXJFGHx4D12TQckTIpiJTnzmlZUycw2Bnv xznZO39aEDjEXUWn1ntbb2U/R7kNh78rLB194zvEslGgyk2XvOE9WFXv5FFoOwxwo7S2 YOwdyLWYvKV9iOz0nFegc/wi8xfSXTxKXquE9MEORfICi/nmRVXA0K7zwiAPuSGkkzvv f81A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kinvolk.io header.s=google header.b=ItHyKFJ4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f8si4959853pfn.43.2019.06.25.13.03.22; Tue, 25 Jun 2019 13:03:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kinvolk.io header.s=google header.b=ItHyKFJ4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730067AbfFYTnU (ORCPT + 99 others); Tue, 25 Jun 2019 15:43:20 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:37814 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729255AbfFYTmx (ORCPT ); Tue, 25 Jun 2019 15:42:53 -0400 Received: by mail-wm1-f66.google.com with SMTP id f17so63682wme.2 for ; Tue, 25 Jun 2019 12:42:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kinvolk.io; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=85UmCqjB/2q4FemAi0uqOHeKcTywLVBMQcPg1IVAqAM=; b=ItHyKFJ4XKYckCqhHyWodBeiPoSVP0SJx+jL3mIeXqtPEFRqoYIQTpI9yaJjhvDtfN BQl3rcGcAlTg36sUZLiD3au1iPVGbO7p9kY/FIwWRVv9Dfq9i2rWLxoGu1Do0wyYHoYK iUQFdMcGCoqYvRLgIqdjeSvfS4xwLoaBpenmM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=85UmCqjB/2q4FemAi0uqOHeKcTywLVBMQcPg1IVAqAM=; b=jcjWjN4KVSeN2ZtxsYyniNFWVNmwQmXa+9tuJNenIayCs+iUUqmu0gHxPq38Joa1k9 z4rx+o1w/APSIqNFog4C3Di3J7td0YYOr1huSqOgBEySEHqx3ncO8aNM2Tb/Tq6N3IcA dULPCdE+Tzyyj8JApV1G4erUHsCKDgRiA19Djj89rbNRdFiSYfuaNqwLsmTjfAqFK9df CStH7PjF2RdQuGiG02Gdb+6aOoLxYqb/aBHpeKON3WBVQdmNVdkuBBXnM0VLdWD1Lf0A E154pNqPWlLuDY5PH7ydcRHCkgRa5muHXHbF2lTh1JAGZOc7UDX2053PmQzFef+BmddP /P1A== X-Gm-Message-State: APjAAAUStrX4LvEdQmEBv6E47LS5YpqF4hbnKvptNP6y+RiJ7kxMfS3A 7nW7Vly4jaPf01Tp8+jDOqSHEw== X-Received: by 2002:a05:600c:2388:: with SMTP id m8mr85591wma.23.1561491771995; Tue, 25 Jun 2019 12:42:51 -0700 (PDT) Received: from localhost.localdomain (ip5f5aedb6.dynamic.kabel-deutschland.de. [95.90.237.182]) by smtp.gmail.com with ESMTPSA id q193sm84991wme.8.2019.06.25.12.42.51 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 25 Jun 2019 12:42:51 -0700 (PDT) From: Krzesimir Nowak To: netdev@vger.kernel.org Cc: Alban Crequy , =?UTF-8?q?Iago=20L=C3=B3pez=20Galeiras?= , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , linux-kernel@vger.kernel.org, bpf@vger.kernel.org, Krzesimir Nowak Subject: [bpf-next v2 07/10] tools headers: sync struct bpf_perf_event_data Date: Tue, 25 Jun 2019 21:42:12 +0200 Message-Id: <20190625194215.14927-8-krzesimir@kinvolk.io> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190625194215.14927-1-krzesimir@kinvolk.io> References: <20190625194215.14927-1-krzesimir@kinvolk.io> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org struct bpf_perf_event_data in kernel headers has the addr field, which is missing in the tools version of the struct. This will be important for the bpf prog test run implementation for perf events as it will expect data to be an instance of struct bpf_perf_event_data, so the size of the data needs to match sizeof(bpf_perf_event_data). Signed-off-by: Krzesimir Nowak --- tools/include/uapi/linux/bpf_perf_event.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/include/uapi/linux/bpf_perf_event.h b/tools/include/uapi/linux/bpf_perf_event.h index 8f95303f9d80..eb1b9d21250c 100644 --- a/tools/include/uapi/linux/bpf_perf_event.h +++ b/tools/include/uapi/linux/bpf_perf_event.h @@ -13,6 +13,7 @@ struct bpf_perf_event_data { bpf_user_pt_regs_t regs; __u64 sample_period; + __u64 addr; }; #endif /* _UAPI__LINUX_BPF_PERF_EVENT_H__ */ -- 2.20.1