From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3BE86C35671 for ; Mon, 24 Feb 2020 13:51:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 178522080D for ; Mon, 24 Feb 2020 13:51:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727498AbgBXNvQ (ORCPT ); Mon, 24 Feb 2020 08:51:16 -0500 Received: from mga07.intel.com ([134.134.136.100]:42224 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727090AbgBXNvQ (ORCPT ); Mon, 24 Feb 2020 08:51:16 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Feb 2020 05:51:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,480,1574150400"; d="scan'208";a="409878400" Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.167]) ([10.237.72.167]) by orsmga005.jf.intel.com with ESMTP; 24 Feb 2020 05:51:12 -0800 Subject: Re: [PATCH V2 00/13] perf/x86: Add perf text poke events From: Adrian Hunter To: Peter Zijlstra Cc: Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , x86@kernel.org, Mark Rutland , Alexander Shishkin , Mathieu Poirier , Leo Yan , Arnaldo Carvalho de Melo , Jiri Olsa , linux-kernel@vger.kernel.org References: <20200212124949.3589-1-adrian.hunter@intel.com> Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: <80d0902f-0b38-6f03-f4a4-f6d2693d7e25@intel.com> Date: Mon, 24 Feb 2020 15:50:13 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200212124949.3589-1-adrian.hunter@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/02/20 2:49 pm, Adrian Hunter wrote: > Hi > > Here are patches to add a text poke event to record changes to kernel text > (i.e. self-modifying code) in order to support tracers like Intel PT > decoding through jump labels, kprobes and ftrace trampolines. > > The first 8 patches make the kernel changes and the subsequent patches are > tools changes. > > The next 4 patches add support for updating perf tools' data cache > with the changed bytes. > > The last patch is an Intel PT specific tools change. > > > Changes in V2: > > perf: Add perf text poke event > > Separate out x86 changes > The text poke event now has old len and new len > Revised commit message > > perf/x86: Add support for perf text poke event for text_poke_bp_batch() callers > > New patch containing x86 changes from original first patch Any comments?