Message ID | 20190625194215.14927-8-krzesimir@kinvolk.io |
---|---|
State | Changes Requested |
Delegated to: | BPF Maintainers |
Headers | show
Return-Path: <bpf-owner@vger.kernel.org> X-Original-To: incoming-bpf@patchwork.ozlabs.org Delivered-To: patchwork-incoming-bpf@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=bpf-owner@vger.kernel.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=kinvolk.io Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=kinvolk.io header.i=@kinvolk.io header.b="ItHyKFJ4"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 45YGmP5Mdbz9s3C for <incoming-bpf@patchwork.ozlabs.org>; Wed, 26 Jun 2019 05:43:17 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729968AbfFYTnR (ORCPT <rfc822;incoming-bpf@patchwork.ozlabs.org>); Tue, 25 Jun 2019 15:43:17 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:52501 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729252AbfFYTmy (ORCPT <rfc822; bpf@vger.kernel.org>); Tue, 25 Jun 2019 15:42:54 -0400 Received: by mail-wm1-f68.google.com with SMTP id s3so64569wms.2 for <bpf@vger.kernel.org>; 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=rPBCxEGSiZ8Hcn+XB23cqa8Sl6KJWPm3swcIMSWk6hE/RrLDaIdCFErJlYuS4MiNP9 BuI8O3DmP1y5hGW8due+uVz5Nj4ZDsXJavVLIKl1AVwNRIw9PZU/sac2xyUwE0WhSh3S XHeLGed2kBTTXO6wgKafbqQG/fMpjoayOw5yPOLxsHNMFMqMvCQCgwjoJdhcJywZmcZE +4fAEwU1bnghsu065h4uyWzMD4EFgXqN09EmhRcwmV0J1LzLaI1j4iT9gJ8NckPpEn8D RjtkXgFi8oXMbacB6CYuGeyHjwRqFRtbhyo1i9i+t6S2FNJCf1c6mh/g1yPgY6AvBgHC vjTw== X-Gm-Message-State: APjAAAW6ZYD2DTKM4pPfisiSHIZQPvduqt5XUHVlX3jVcU/8oVUXRmCT LRs1Boh01ur8Br8QTlKqoumIAg== X-Google-Smtp-Source: APXvYqzIMxgXlOTdo4m8VF3Ksi0pmsLJDIqlKPFVSelHYIH0PbCG3pg3PScZRGP+zhtfti6ZKyzEKQ== 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 <krzesimir@kinvolk.io> To: netdev@vger.kernel.org Cc: Alban Crequy <alban@kinvolk.io>, =?utf-8?q?Iago_L=C3=B3pez_Galeiras?= <iago@kinvolk.io>, Alexei Starovoitov <ast@kernel.org>, Daniel Borkmann <daniel@iogearbox.net>, Martin KaFai Lau <kafai@fb.com>, Song Liu <songliubraving@fb.com>, Yonghong Song <yhs@fb.com>, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, Krzesimir Nowak <krzesimir@kinvolk.io> 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: bpf-owner@vger.kernel.org Precedence: bulk List-ID: <bpf.vger.kernel.org> X-Mailing-List: bpf@vger.kernel.org |
Series |
Test the 32bit narrow reads
|
expand
|
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__ */
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 <krzesimir@kinvolk.io> --- tools/include/uapi/linux/bpf_perf_event.h | 1 + 1 file changed, 1 insertion(+)