Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4984308ybl; Tue, 14 Jan 2020 01:22:32 -0800 (PST) X-Google-Smtp-Source: APXvYqzFoX8Cb7rcTxdWG81BXCnXAHkoBoLU+fZRx2QaUgmga+yDVrRy99GYnYLBjjH9qCCg6El1 X-Received: by 2002:aca:3141:: with SMTP id x62mr15287755oix.108.1578993752818; Tue, 14 Jan 2020 01:22:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578993752; cv=none; d=google.com; s=arc-20160816; b=PqNNiPFZnLt2iFPlvKqlrry1sjObwrf1POdzbj0UEa7YufHpv+3t4cb11J6+3RZCiR Q405xZ8DTnL9GWTPfq/fzarAr8IIk6o+WNeJ5EYIZxWPPjUBGrLeMDOeQl6AjwejVezd kEv7Y0IiE2dEUibaU5oTxHu/f/ffPY6h8yzDrB+O6hkkjg33CzAo2SjPguAmktrE1DsW d7rtH3echDUijEXHbpVaKt4PdeSCZfDrACORa0IVs4mEmbNbcQ5kqf2KN2cQsu4SVUS4 7BMZz7K7/gOLFnvu2EXLsEILw96nQapXfGvonH9XLInpUYHvxOiQF/PijFmg6oKkDD2d MYWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Ge7w32pQgh+SNGf6lewv/M470pD/5nBsvltY5Qdh+3I=; b=lyVztb5c1J6ibX529aEPaSCxrl9A+5vLIa8EUHtX3nWv46njUOO2rkK6orErD8k8Yl OF0NIH89kwykrpaCnZQIavtmWdw9DQ5uXBdeJ9LwXJC1M6iNuXoYMSEPO0lLx/hHtKue bEFzKc/CV/wjzb8ZgkK99U5P2nA9lhuW6Oe5YuEuiVwWZLCk3GOxACB4UqqQJGREWHpW UZ+RDzUR0S/0x/kLSqsIFVYYuUO1QBY9+E/Z6Zvvnd47a5rHhX1YDPpj/JSt2IFFCyN+ 0TpOCL20wRykOr9xnlO8PlN4CxJO5zXTMBSTaptJj4Qwo6o/b8OWtqYhWwxHop2bGbjC P37w== ARC-Authentication-Results: i=1; mx.google.com; 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 z1si8539027otq.21.2020.01.14.01.22.20; Tue, 14 Jan 2020 01:22:32 -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; 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 S1728799AbgANJUZ (ORCPT + 99 others); Tue, 14 Jan 2020 04:20:25 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:8715 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725820AbgANJUZ (ORCPT ); Tue, 14 Jan 2020 04:20:25 -0500 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id D0652962A9F513952354; Tue, 14 Jan 2020 17:20:22 +0800 (CST) Received: from [127.0.0.1] (10.133.217.236) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.439.0; Tue, 14 Jan 2020 17:20:15 +0800 Subject: Re: [PATCH] x86/ftrace: use ftrace_write to simplify code To: Peter Zijlstra , CC: , , , , , References: <20200114015217.9246-1-cj.chengjian@huawei.com> <20200114081636.GH2827@hirez.programming.kicks-ass.net> From: "chengjian (D)" Message-ID: <8435b848-f638-978c-bbd5-459657c4b34e@huawei.com> Date: Tue, 14 Jan 2020 17:20:13 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: <20200114081636.GH2827@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset="gbk"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.133.217.236] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/1/14 16:16, Peter Zijlstra wrote: > On Tue, Jan 14, 2020 at 01:52:17AM +0000, Cheng Jian wrote: >> ftrace_write() can be used in ftrace_modify_code_direct(), >> that make the code more brief. >> >> Signed-off-by: Cheng Jian > None of the code you're patching still exists. Please see tip/master. > > . I find these patches in TIP. My patch may not be necessary. https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=768ae4406a5cab7e8702550f2446dbeb377b798d Thank you, Peter. -- Cheng Jian