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=-0.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 F0E2FC31E49 for ; Thu, 13 Jun 2019 15:29:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C5DED20B7C for ; Thu, 13 Jun 2019 15:29:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729479AbfFMP3f (ORCPT ); Thu, 13 Jun 2019 11:29:35 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:18164 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728878AbfFMLX3 (ORCPT ); Thu, 13 Jun 2019 07:23:29 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id A7DBEF7C1BDB2B979504; Thu, 13 Jun 2019 19:23:24 +0800 (CST) Received: from [127.0.0.1] (10.184.12.158) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.439.0; Thu, 13 Jun 2019 19:23:16 +0800 Subject: Re: [PATCH v1 1/5] KVM: arm/arm64: Remove kvm_mmio_emulate tracepoint To: James Morse CC: , , , , , , , , , , , , , , , , , , "Wanghaibin (D)" References: <1560330526-15468-1-git-send-email-yuzenghui@huawei.com> <1560330526-15468-2-git-send-email-yuzenghui@huawei.com> From: Zenghui Yu Message-ID: <5885c607-1314-ff53-38f1-9f48b1c16de4@huawei.com> Date: Thu, 13 Jun 2019 19:20:19 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:64.0) Gecko/20100101 Thunderbird/64.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.184.12.158] X-CFilter-Loop: Reflected Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Hi James, On 2019/6/12 20:48, James Morse wrote: > Hi, > > On 12/06/2019 10:08, Zenghui Yu wrote: >> In current KVM/ARM code, no one will invoke trace_kvm_mmio_emulate(). >> Remove this TRACE_EVENT definition. > > Oooer. We can't just go removing these things, they are visible to user-space. > > I recall an article on this: https://lwn.net/Articles/737530/ > "Another attempt to address the tracepoint ABI problem" > > I agree this is orphaned, it was added by commit 45e96ea6b369 ("KVM: ARM: Handle I/O > aborts"), but there never was a caller. > > The problem with removing it is /sys/kernel/debug/tracing/events/kvm/kvm_mmio_emulate > disappears. Any program relying on that being present (but useless) is now broken. Thanks for the reminder. It turned out that I knew little about the tracepoint ABI :( . I'm OK to just drop this patch in next version. Thanks, zenghui .