Received: by 10.223.164.202 with SMTP id h10csp49647wrb; Sat, 25 Nov 2017 18:02:48 -0800 (PST) X-Google-Smtp-Source: AGs4zMZj/ChOMUnJta0GtffXpvV9LUnEzlB/vGGi4wvtw5VRi/lCgSR06sA+NaIeVOhANFcvpGQa X-Received: by 10.159.207.134 with SMTP id z6mr34503621plo.144.1511661768029; Sat, 25 Nov 2017 18:02:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511661767; cv=none; d=google.com; s=arc-20160816; b=Wb7yfGE2wrJn2K93ywc1EKPYgCMHxYzvnSe+7j+YDU6Mvhvew/PPZcjuTncNtL1ZmB qk03eed7+MhAKt2lx++LLzSaA/s8gU0lBTkX10GSBgxCgsysemg9qujUfrzy96Dzu+6j M0NSDFknmfKth355Tyawo+9qNYo0S3dlszIRANKtsew2C0Cf/q3ujQYUojW5fgulDpda A/qnqxyGzMc3/VwbGgCYJ9kqKTM1NcAGWL1adEtfm9tUQzRzHOnhYb5R9Htj+BikA8f8 cPMgFuxuAtKJgElyHCfTOvunF8aw9eM8qFHepCgBuW0MqeKBXIMPaKINglPC6zFx4PcZ uo+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:dkim-signature:dkim-signature:arc-authentication-results; bh=fzfdNOmx8SM6/AP9ZNd2tqhiIs42xaN3MDrr8cmpZNM=; b=WaPJ0Cc7nxIqoZudlY8XeyMXDEtb7fVE5MCNVCbct3kkPcXWX0CaRRzUU9qM0FCwnZ 8yadnPRnpdgSOxWZCceZ6iMjOlpXRoChLzMSJj2dBywBA+8WFKSRhYJEoaNhJejocDhh ounYbID1kSc+/fhjBkX4ITmyp3cygQnhM7Pm/OLjHcbQK4b44cUp9PQ+3vEioVPq7pct EfGLSFaFQnJbBSGcXoNidg13/HZ6aG5fZBFXLjfNzAB7Ujd+bhZNxPle+4yqfeTZcRGB g3JRhTP9jbA+q43AkK8eCjFG3QsKkWpzsA1ER+3vRlCqGxoJOvQeWNSoO92x73DPxGTj 6Y4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=MopMJG29; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=QRp/W38F; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t2si17231347plm.515.2017.11.25.18.02.28; Sat, 25 Nov 2017 18:02:47 -0800 (PST) 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=@fb.com header.s=facebook header.b=MopMJG29; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=QRp/W38F; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751908AbdKZCBU (ORCPT + 80 others); Sat, 25 Nov 2017 21:01:20 -0500 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:42842 "EHLO mx0b-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751832AbdKZCBS (ORCPT ); Sat, 25 Nov 2017 21:01:18 -0500 Received: from pps.filterd (m0109332.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id vAQ1wiks010779; Sat, 25 Nov 2017 18:00:33 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=subject : to : references : cc : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=facebook; bh=fzfdNOmx8SM6/AP9ZNd2tqhiIs42xaN3MDrr8cmpZNM=; b=MopMJG29jjLDx+0zqsCo+kNeR67gqX0hgIoixlimrizolzMAHCPjRFfqZ/FjbIOWgniS NvKvq42PkDEI96kSi4nN5M/MvJcdnZ6LJ2scnKgrBCVAerIPRQ9u3HWQcMWz5BETs5Tb 06KUEhB5PqRh+L/kTHx2j3XXWfw4wk5+cjc= Received: from mail.thefacebook.com ([199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 2ef74sh6ra-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 25 Nov 2017 18:00:33 -0800 Received: from PRN-CHUB02.TheFacebook.com (2620:10d:c081:35::11) by PRN-CHUB11.TheFacebook.com (2620:10d:c081:35::20) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sat, 25 Nov 2017 18:00:32 -0800 Received: from NAM01-BY2-obe.outbound.protection.outlook.com (192.168.54.28) by o365-in.thefacebook.com (192.168.16.12) with Microsoft SMTP Server (TLS) id 14.3.361.1; Sat, 25 Nov 2017 18:00:31 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector1-fb-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=fzfdNOmx8SM6/AP9ZNd2tqhiIs42xaN3MDrr8cmpZNM=; b=QRp/W38FxhavavTz6GqCA45fVLDQKNDMC5kgD+lg8HuZugOvJplpXHNbvkjSkqStIp9YPsY2Ojt8KxQp06Z0muXd/4GFtm13ne9I4ohq7ZQ3kmAvgLXekG+EseSpbg4b6U0SuuXWCVT8YcEfAAETtF+hifepFPrbevrYga7fdNc= Received: from [IPv6:2620:10d:c081:1131::1131] (2620:10d:c090:180::1:e3d4) by CO1PR15MB0965.namprd15.prod.outlook.com (2a01:111:e400:7b64::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.260.4; Sun, 26 Nov 2017 02:00:00 +0000 Subject: Re: [PATCH 1/6] perf: Add new type PERF_TYPE_PROBE To: Peter Zijlstra References: <20171115172339.1791161-1-songliubraving@fb.com> <20171115172339.1791161-3-songliubraving@fb.com> <20171123100214.qm3s4h5b6i4r2iaa@hirez.programming.kicks-ass.net> <20171124082827.nvgr3bfu3bidfdjx@hirez.programming.kicks-ass.net> CC: Song Liu , , , , , , , From: Alexei Starovoitov Message-ID: <11e688f0-c1bc-8925-225a-5b8e795336c7@fb.com> Date: Sat, 25 Nov 2017 17:59:54 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20171124082827.nvgr3bfu3bidfdjx@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [2620:10d:c090:180::1:e3d4] X-ClientProxiedBy: BN6PR10CA0033.namprd10.prod.outlook.com (2603:10b6:404:109::19) To CO1PR15MB0965.namprd15.prod.outlook.com (2a01:111:e400:7b64::23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3c4bbe02-7c9a-477c-1fa8-08d534716916 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603258);SRVR:CO1PR15MB0965; X-Microsoft-Exchange-Diagnostics: 1;CO1PR15MB0965;3:/QW3de3Gxt4/WwruJczQGoEwjme3s+SBcPUzPvWiLwkUi1j1ecl+JX+GR4IA/rfHZnXpw2og7+hqRMtJH/EFVms7sclQ1O0W5UVuAsGsH6gFsoeDOJ/tewaowAioclQpvUxAmcJSb4r0otjUHDGE83MsEwDRrDwZ3OnjwxmCQ7C+s7MxvCb3vWqfUqaxbd/VlqdZtmEzqDE7B8J+JvOQM4DZqwEDzruOaNRGoVNzndUiE7fM5Fm2L1te0+0SG7Lo;25:RGhcgdzmBnfIrNmGkminT3LVOIhxpZMEUoN1TcAc1I4DHQ+SEl/08XSxLqrzZhrnia9Vp+8Y/nOTA04dd8WZ48Q0QfzxAVvJUo5rWmdSIl6ODcrjv1/Un4tdv6dQvdxFXx9pocC8Ccqv376qQj0mB6KmeVc6JoKhkNSSqKwzHvfj/jLHoc4vCDabGGcXcqTAHNXytO+KBCF48RDOZEOMh5q2esmQ5VXa18uBhstwlmKhRT5QHOJgbPrQ/DTF38PLKATZd/oW56rNBHAZMI8Iyj2Cg60b7uzHjqkN3aq6XeIaMs3XWmyn4pVVNyOY1x+iVMmCqiezrBf0LR16JERbnA==;31:tySb5WoLGhjVHzNCOjtnnKHqvwKrVnPS0xILexSthTBFjwxosK2swHvl2zfmxXzebIbpS8DyxOXpwrRSaPbkr08EE4BvONQXE3oPSj97QP4gChjoDLZvs5r//+e4hLiAyNMzvpCE3MPStLTaQ6dmlkgKZe7ID+uH2aBCp8dXOkAvNGsCLH4sRCemixc9WRy5FYN1fsuszqnkFhP5eIru9wMNiG0FvfExy33QjW6YR+4= X-MS-TrafficTypeDiagnostic: CO1PR15MB0965: X-Microsoft-Exchange-Diagnostics: 1;CO1PR15MB0965;20:f22tnIMrm25xFRCXH02ZvpGkDTms9POQk3dVI7po/kPO3NOCiMoccPQaswKXan8M93DFkjkXDXwdOb1GncflkDiNoVC10Pcz2L6wCe617VOp9s8AnZohkUk1SD3uev6JTXdb6rU0YKpoUW8Ith5W4nX10iI9Acdi4/4ayPAMmuFdipTPDbT7sbkmmPhnyd7Kwth+dTc4L4Yn3QMGHZ4U6yKlX6TChGqKkLiUFOb7eU3ZBpGRfQP7mjK/xFZaC8Xi5y7UwLWMHptRkPON9/xi3uky8hiEsHDgu+DnsAx8oxmbHe+d8T0abBARfuo1Pb1vlZpnViX+QmkHxAg+qg3MHKd2qisQK6g/MQyo9JBF1mXbHJn3eyqy8Die5zkY5zmWaRy8VgFOJ+mz9e9OeHNk7PmeWMcYYtNzRCtXe0IrgE9xefaD4lJVtka+pn7Lg392oC9rf4ZJa2q0LEcSEVBG89N2TNDj7iL55O87+pMcaGKaln5iVFOgUypQbRqQE1+P;4:Fhk8WW19GGrA03rLrg6wx40KEGLf5fwYjX4hxUKaLW6J2998Fl8G4a4skcWwojNbITlzTWVyNRUmlQk4QHb/TkaJsk3VSzSZ8qJUJqFCDfLnMJYTZvxDMffv3mw/5La6L4j9VfxSYa4R19MY9ixw61+ZCA1vnNxCd14WYO6BwxMSQEHuN3YN2zPzvQ7xwq2k5A6AAT8I3zaUz9o2t/l2t19LG7C8+Lx1Jv5HbFgxbHLpCzbTAQBj+I7awwm7DbuScqkosTwvxC+0PvwkJQ5O2A== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(11241501159)(6040450)(2401047)(5005006)(8121501046)(10201501046)(3002001)(3231022)(93006095)(93001095)(6041248)(20161123555025)(20161123560025)(20161123558100)(20161123562025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:CO1PR15MB0965;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:CO1PR15MB0965; X-Forefront-PRVS: 0503FF9A3E X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(346002)(366004)(376002)(189002)(199003)(24454002)(2906002)(230700001)(68736007)(5660300001)(50466002)(25786009)(6116002)(36756003)(65826007)(81156014)(86362001)(81166006)(7736002)(64126003)(6246003)(8676002)(305945005)(53936002)(83506002)(6486002)(229853002)(23746002)(478600001)(4326008)(67846002)(65956001)(6666003)(65806001)(50986999)(76176999)(54356999)(93886005)(2950100002)(106356001)(189998001)(52396003)(52116002)(6916009)(47776003)(53546010)(58126008)(316002)(101416001)(8936002)(1706002)(33646002)(31696002)(31686004)(105586002)(97736004)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:CO1PR15MB0965;H:[IPv6:2620:10d:c081:1131::1131];FPR:;SPF:None;PTR:InfoNoRecords;MX:3;A:1;LANG:en; Received-SPF: None (protection.outlook.com: fb.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;CO1PR15MB0965;23:NAmKGxSjUn1MLQ6QYmC3TS2Arrr0ZbS0jt8AD?= =?Windows-1252?Q?asf926TnPFCFHOc1CjdSpMe6EYbKs0+lT1mqJY1BIXWecY9TTlY/fuli?= =?Windows-1252?Q?w36Gi/OzA9llmhgmbNXpvsSkYmDfmrdTmZQ+81MqyNFDBbKmTNSO/TqO?= =?Windows-1252?Q?vn2WutSZUzMAVmM7a3eHIdyNqgu5IeuYjpeXR+WIlj09iVH28bMxye3A?= =?Windows-1252?Q?OEpW1sGaxZZPrvdZjVpCqwEV6Unt9Xy4xj+6AzwXBrbjiKQW8QA5qneG?= =?Windows-1252?Q?9AwL6M2EfLmwGXj3PzD1TENJLDMiPo1Mc+STIG4WW7F6Xfmg93EUYHGE?= =?Windows-1252?Q?hGM2YBrUbMsW0BQqyGo+X4GTmbOighCKJa0AYnhgYVy2W5hdtV+o6UE4?= =?Windows-1252?Q?PKK5mV/nAbt/Y88fO+ZQjBVRjnxZ2vOgYQpTpNqVMt94QzaEPyeb2/Lv?= =?Windows-1252?Q?va1lx4veQGyUMA7M+8UCAlpM1V2EybYrwJ6BUfzIvd4mmxXU08IvS1RB?= =?Windows-1252?Q?3TwJkzrbN2hynkpdDq2rmcVoBDgXLGLvoVlJ2zWIpKw4lBHodYQEIs21?= =?Windows-1252?Q?Z8GeEg82zmksZQPDoVuKoyatqFr4e3kGpHjV710MmnxI4jp74NcxdW6b?= =?Windows-1252?Q?kWzDr3LzlbFin1epWyNEsQoIbmghd2L+VQLrqDw9y2e6uXf0dhbxoNie?= =?Windows-1252?Q?fUb+Zgvq5Xqoz/xOrjl492SwUrQxUEruWHoX38MHduovULGmOTXN6cy7?= =?Windows-1252?Q?YaoxC3QBPlBkLrjNXmZQPLYqV0UVmXGNzGjGFDAh2fT5zxmWwJHkssN0?= =?Windows-1252?Q?e5FZbWYeoo9OYLi2+tBVzsaXMO+Ndy/eTdjjV559ZbIzVR+/1Dbw5C/s?= =?Windows-1252?Q?+Pty0RPu3crHYHs68Td5zqAKINP03z6XK/wj0B+20oGDb2co+BOlH1L0?= =?Windows-1252?Q?nN1Qqt4hA+jr1Zv4pZubjYx8ETBcV0QikMDS1BL8QLRwFjnWiTP7CimX?= =?Windows-1252?Q?VPhs7zROglJ1Ty1+jhVzvOSoxDVAM82xoLOjd0xsEOKFIDsAhcx2fGDP?= =?Windows-1252?Q?AetYHyRZhT0xvacwrajw8qyia/eGphJq8UyHQt5NP2Dc+JK0CFk6gSMw?= =?Windows-1252?Q?7pNlZa5+njhnEtHoYFGad1luenoBqOYq9abS50QB1djY1Wh+nnsaS6Ba?= =?Windows-1252?Q?7ul7fdcPj1Tf7KLMcMAlrfhF2nXwikepqabzOloJjNrDLsb7IM227oOO?= =?Windows-1252?Q?EdjA57hl+Ab15Er9DRk8s86fqh2G+sB88klMRe5CncoiQj+5qqMmGhJW?= =?Windows-1252?Q?/TE9Z/CbCO4tMK9zDgexdMcIXQHkxo1nprgR+2/OotXHq2G+nyPF4NyK?= =?Windows-1252?Q?JhWlwD+rvxWj29KjuLqCZF8JPjwZ/QhLg8DwcQsszSzLMQ0NN8cbwHxh?= =?Windows-1252?Q?UgQiUnFmjr5FUEazvLC?= X-Microsoft-Exchange-Diagnostics: 1;CO1PR15MB0965;6:ewPn9No03dEkkNaAlDALLUV0RMv51esPdmqWipIMOmNrmQnsEl9uPCmlWhTnfz/wnypPpGkJIENm7QfteE2F6hKsMDkQoIK8+J5SFLSU2KzNe+72+mjFO1q2djEVXbuTt6ekCWE1+wDXAbl+fUMJu8jkzYhu3IMAiZK0SQbQWrny0lYzLe+XwMrneaLqEIL4lbw1hfjUUDxNyRuhPIRoNB6UHUKkLQi1LqD2iQZ4JjBLwAIMnJwbkIQLMdq0nEcpCv2vpWMdA0p2m6iSkMdVB0bspX7VdvtggNeeByHs0mjYNYPgEigvoyVp44mFz7gwK8yGGMlyBk35qfQGFP2oPRzsmAuPQJlTtXQt3JDBtvg=;5:Oe1gIXms1RxW1xPQZ6UkBqy4qoKhnvcwsWkG1jgcavRgYDJkiTsp66PWRGFQpFDgC0DiVahpPmGwMRft+WXd73YGTvYi1kG9c/pmyNwEgYKn4+DM262XzJHwSTuHI5g1R2sx1Cz0H7UVao6fiSogiDCC1njDdctFLyau9aA+/LE=;24:gqf5VOXtK+tISK0If9TfjKSmyZlufjq9LfJhfAJLDD06h1I0n2rK6Df1/q1hHXEQQTVgVFtfzPlFxJlBObfwSdI4+ldte57JTDNzZnoFBiw=;7:hajvXNkab7FKg79gAkFxEWyvbTEiS2+NAwheaprtRdT2lA1y2THdfjaIVYJ9h/oxFXm8Fcr4Hv/oh379/ISToTJt4QDjSSSiHXNpe41Mz89lL+LKhaMXD2USN1OmGf90xZdLusl/FBi1VJ7PbVcYEqayJtO9aJgbT2WJpoxYFL6/DfxXC/KgG7hmcIGTIa/WFYqs725QbTflaL3ydscwgcUR4jrWMbf9LAmjotNgD6kykGYkmt+maIUl35XRyX3F SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CO1PR15MB0965;20:pxI376soaxplOBeUCAc9HU05CeRoCVAwUNwMRvNnia4B7nBoqd8+yQOqzmXUvjKWbORwv2hAcuonbDZbmJrvNbdc6jJIk6D9GWF4hB/U7VUMv9b/XDweMm+0FOWmmHBjEgrtZjBLVc4ZD1TLvaVY3aK5TqKNynP4IbBgM7Wlm+o= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Nov 2017 02:00:00.8829 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3c4bbe02-7c9a-477c-1fa8-08d534716916 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR15MB0965 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-11-26_01:,, signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/24/17 12:28 AM, Peter Zijlstra wrote: > On Thu, Nov 23, 2017 at 10:31:29PM -0800, Alexei Starovoitov wrote: >> unfortunately 32-bit is more screwed than it seems: >> >> $ cat align.c >> #include >> >> struct S { >> unsigned long long a; >> } s; >> >> struct U { >> unsigned long long a; >> } u; >> >> int main() >> { >> printf("%d, %d\n", sizeof(unsigned long long), >> __alignof__(unsigned long long)); >> printf("%d, %d\n", sizeof(s), __alignof__(s)); >> printf("%d, %d\n", sizeof(u), __alignof__(u)); >> } >> $ gcc -m32 align.c >> $ ./a.out >> 8, 8 >> 8, 4 >> 8, 4 > > *blink* how is that even correct? I understood the spec to say the > alignment of composite types should be the max alignment of any of its > member types (otherwise it cannot guarantee the alignment of its > members). > >> so we have to use __aligned_u64 in uapi. > > Ideally yes, but effectively it most often doesn't matter. > >> Otherwise, yes, we could have used config1 and config2 to pass pointers >> to the kernel, but since they're defined as __u64 already we cannot >> change them and have to do this ugly dance around 'config' field. > > I don't understand the reasoning why you cannot use them. Even if they > are not naturally aligned on x86_32, why would it matter? > > x86_32 needs two loads in any case, but there is no concurrency, so > split loads is not a problem. Add to that that 'intptr_t' on ILP32 > is in fact only a single u32 and thus the other u32 will always be 0. > > So yes, alignment is screwy, but I really don't see who cares and why it > would matter in practise. If we were poking into 'struct perf_event_attr __user *uptr' directly like get|put_user(.., &uptr->config) then 32-bit user space with 4-byte aligned u64s would cause 64-bit kernel to trap on archs like sparc. But in this case you're right. We can use config[12] as-is, since these u64 fields are passing the value one way only (into the kernel) and we do full perf_copy_attr() first and all further accesses are from copied structure and u64_to_user_ptr(event->attr.config) will be fine. Do you mind we do union { __u64 file_path; __u64 func_name; __u64 config; }; and similar with config1 ? Or prefer that we use 'config/config1' to store string+offset there? I think config/config1 is cleaner than config1/config2 From 1584935409026721630@xxx Fri Nov 24 08:29:52 +0000 2017 X-GM-THRID: 1584155725693670341 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread