Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1358644lqm; Thu, 2 May 2024 12:11:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV38d3g0kg2Aou8osA6T0N2hhO77xuZ9NGvaElpM1SZVLfj6GSe/leGD2WKOcU/pb2z//ys1SmVBYH9qR3muD9birI8QTcA16+tc7h4YA== X-Google-Smtp-Source: AGHT+IGhv3f3d8MpzI9Zv7DvW6x83D8UTATz5I8Iop8lenQe7Ml/4aham+ktM8QfWOGnp8Y0Z4XB X-Received: by 2002:a05:6a21:18e:b0:1af:8004:4be1 with SMTP id le14-20020a056a21018e00b001af80044be1mr815957pzb.33.1714677099553; Thu, 02 May 2024 12:11:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714677099; cv=pass; d=google.com; s=arc-20160816; b=1Ay114OGoVVPAV7BR2TLP7ys4EiGVPC6U7uBMoylnjsZeb4VV7Nm9tXXcMvE6hZLsA 9LsPYxRNL/FV6miBK+GLAggXdy/DnMST0toEWtdvwylvnezJInLJYkD2OEr0Bw9WkpMe vKzvkRCr0nnVejjlx2aLdoTigU5yOxVDB/lCIHqhdZgsEv73BozOs3IE9a3QPNjQiO8H F0VsJQbDrDK6MJaB/Ice7lIpGCTKfjt6gAoS4KHniAAcCQRfMBY1S4JxojkUvl/rAR4I EVXUmpxn/VH1nJ8TMvoFDffzkF/4oFvk3y/eAX7B/0mxgH5aGsGhe/E/8V6vSV+b6TqZ PIcA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=L5hyjZHIx2L+s7/4+3/CMrum7ZZijq702q6JZmstVRk=; fh=cjIy99e4LsDUtFCCexLukPIYKTZw8yKC405Bv8M+28s=; b=t63Yx0tl6kbrhF6XFkfVSoeVfs+BQUW39QJbMZKQ8rnkeT0qMtv285fdGGzIG/zMGK hflT4SgsZ1nfN0RRlE0p7wVEXsajxFHCWuleUfGLBqAW0is5EtP4MU9GKQ5tEOvNMaeE +XV1iijTNiP3RUbsG4nEDWzLQ1xYbgJmn/ILFRkrozMCrLXUwfOm/GAHwwjs2MqUXpdW PSeIHDSNp4wUPu1+nz1SbjV0encw61Q+CpDTt3m3XQv3JWtkgL/ZvLNmliiDVxLAkZz7 UPFrUUG660HM/Z7iB6zIPoRS0GK7sVAehlvasgJSBSPy3+b0qOWrIot9IrYFo2Bgd1Ee Dczw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=g7INwTzP; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-166855-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166855-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e24-20020a633718000000b005f0568ad21asi1555080pga.691.2024.05.02.12.11.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 12:11:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166855-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; dkim=pass header.i=@intel.com header.s=Intel header.b=g7INwTzP; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-166855-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166855-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 0CFCE284972 for ; Thu, 2 May 2024 19:11:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7756F179203; Thu, 2 May 2024 19:11:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="g7INwTzP" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) (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 4147659B56; Thu, 2 May 2024 19:11:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714677092; cv=none; b=rMme2Ju635T0IUjoSiylfg2B57LGgXXPaum0wQ12WVdAnh06hjtFGJ7s+YuPi1cvpK5/uwYPzbVWrxKAn6LDkGK+tbPrzeS6a+hrSC6m5/sZ6AoFQiEmpUqjc3O8GGz7HhiOfZnarVSDBBPRasHQEVFMqJpUL5GH2xJMyubywYs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714677092; c=relaxed/simple; bh=2qrWzJQe18l9LseF6v6TDvXLVsNFZ07hmBA1OvCRqf4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=esl//mfy1TzmM7/A1UvwIc/4gMoZFvxJK6iboqOWtmrMGbp7xHqqgglFf9+iP3HCZTTMEdS/YB1bv2rT+D3mYE0WBR3Rx6o7rObQV6wtpXVDQy60xfI7zhrrJQLBDSGyW+X1YPiw6IQdk3UXFczoXmyzoU64lVk2NX0nZx7u8mc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=g7INwTzP; arc=none smtp.client-ip=192.198.163.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714677091; x=1746213091; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=2qrWzJQe18l9LseF6v6TDvXLVsNFZ07hmBA1OvCRqf4=; b=g7INwTzPMac9Fac2BPgYA5bRhz+EnPwUn50slIl7PBesnwKqeuWlcAIm G1IkiWonubugKffePXy2St8gUx8TPfGK38/QWf3n0vw99zwvbHFs7/E7k VNh5eeYw78RlXbJTS5amqCgL1imGFUE8PABYgjYDwOUTnzTpWXKUztudj 4uMRiQQSr6DutvfWmqmrm3GJeViA7Ru4JN/isV7qRg0PymtGhGdoBiR0R tOFmnxJhvwB28MN2gPQdTjCCfE8tDnLfUSIRiNxrc8vROjo/73XRE/TtS thtqqjph/ZzR0MpBYszcPgMFyDeMa0BOPtUlttnjih+xBSERJKvTtATM8 w==; X-CSE-ConnectionGUID: xfV+QQSyTyGMuf7fh8HYxw== X-CSE-MsgGUID: rAD04/T0R6KCKucKimTGGw== X-IronPort-AV: E=McAfee;i="6600,9927,11062"; a="10628804" X-IronPort-AV: E=Sophos;i="6.07,247,1708416000"; d="scan'208";a="10628804" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 May 2024 12:11:30 -0700 X-CSE-ConnectionGUID: wW8kAQMeRISNLh+M+iXxwQ== X-CSE-MsgGUID: RrCNsgiZSFOWQexB0cKfqw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,247,1708416000"; d="scan'208";a="27275345" Received: from ahunter6-mobl1.ger.corp.intel.com (HELO [10.0.2.15]) ([10.252.49.136]) by orviesa009-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 May 2024 12:11:25 -0700 Message-ID: <8c29642d-9e1e-46a8-83b5-03019e151807@intel.com> Date: Thu, 2 May 2024 22:11:19 +0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 02/10] x86/insn: Fix PUSH instruction in x86 instruction decoder opcode map To: Arnaldo Carvalho de Melo Cc: linux-kernel@vger.kernel.org, "Chang S. Bae" , Masami Hiramatsu , Nikolay Borisov , Borislav Petkov , Ingo Molnar , "H. Peter Anvin" , Dave Hansen , Thomas Gleixner , x86@kernel.org, Jiri Olsa , Namhyung Kim , Ian Rogers , linux-perf-users@vger.kernel.org References: <20240502105853.5338-1-adrian.hunter@intel.com> <20240502105853.5338-3-adrian.hunter@intel.com> Content-Language: en-US From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2/05/24 16:41, Arnaldo Carvalho de Melo wrote: > On Thu, May 02, 2024 at 01:58:45PM +0300, Adrian Hunter wrote: >> The x86 instruction decoder is used not only for decoding kernel >> instructions. It is also used by perf uprobes (user space probes) and by >> perf tools Intel Processor Trace decoding. Consequently, it needs to >> support instructions executed by user space also. > > I wonder if we should do it this way, i.e. updating both tools/ and > kernel source code in the same patch. > > I think the best is to update the kernel bits, then, after that is > merged, do the tooling part. For objtool purposes, it might be better to do both at the same time. > > To avoid possible, yet unlikely, clashes in linux-next, for instance. Always gonna find out about clashes at some point.