Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp572756rwe; Thu, 1 Sep 2022 04:37:26 -0700 (PDT) X-Google-Smtp-Source: AA6agR52PQdb0z2yvb58Lt9zys2ykACc6FMZe4RPjuQ9i0/VNQ5bwImlqamTg/o7BH5CP9bZHB+R X-Received: by 2002:aa7:c84f:0:b0:446:2bfb:5a63 with SMTP id g15-20020aa7c84f000000b004462bfb5a63mr28613946edt.172.1662032246333; Thu, 01 Sep 2022 04:37:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662032246; cv=none; d=google.com; s=arc-20160816; b=k3pRzNpEmR3Bb7U8goNu2Z5X9F9oS+6jGw+82Ki9p6PFV7NvhoFm03yOSuFW7roLkL VvBofSBFrAVv5gN+QoNb2j9VXOkxmEw0rLb1wsKz8bAFpZhEBkKONY7/KSbue46BQ654 7NttrWGioO50syHglmJieodL4D9ROdV5bJqE6BBJUb3XUx/zWH9KRstfBh4CsAy92bYN PpuVXqei9qFJgaMYeDJdrk1BB7cnqacUWTjxhGzWalFDOXkSxAmmMpDqKZ4auaCM+j0W ZDOHrgsRLcVdkHWdLo36xWXloBK4raC/9z/4+3AbO/VmseQEmtoZ5tySCrWdJxC/rUTd J8rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=3IVf0wGpujcL2ZE6BHQPIU82aIlnTwJmgBkcAEGlATE=; b=I5VK+r3y7gOZ9Zweet3dhUbX1kFAVWQ5KRxHfoBaytwimSuyxtcdZZplnIDr1GNKG8 reZTU69fX16cxVyV/cdyflZVTmyLvQs9KmG9z8zcFG1zW0xwDPMFySXoS32/gN3k1/9p 8xrGmhWVfQcZlmfNu5VOPnM436FsM1d0U4krw+jH5NRnvd1e1NOBaH7hFN4MikufuSkc y6kgsXWdbl7rsT2g4tzIUTgYyciEJXTqclQYCos/5YwSy0GMQ25m0nlsRVaKPReB13aV EoPnoSfqeL3ch4phE0ijyZ6Tb411QPTU0XHGwlEuMbb/VNOmYgcduKDsdUeDOwVUbKoA /Y9Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sh38-20020a1709076ea600b0073d61fd57ddsi12951591ejc.542.2022.09.01.04.36.59; Thu, 01 Sep 2022 04:37:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233785AbiIAKtQ (ORCPT + 99 others); Thu, 1 Sep 2022 06:49:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229495AbiIAKtL (ORCPT ); Thu, 1 Sep 2022 06:49:11 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4C9B26122 for ; Thu, 1 Sep 2022 03:49:10 -0700 (PDT) Received: from dggpemm500023.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MJHm06m4gznTxK; Thu, 1 Sep 2022 18:46:40 +0800 (CST) Received: from dggpemm500016.china.huawei.com (7.185.36.25) by dggpemm500023.china.huawei.com (7.185.36.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 1 Sep 2022 18:49:08 +0800 Received: from huawei.com (10.67.175.41) by dggpemm500016.china.huawei.com (7.185.36.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 1 Sep 2022 18:49:08 +0800 From: Yipeng Zou To: , , , , , , CC: , , Subject: [PATCH 0/2] riscv: tracing: Improve hardirq tracing message Date: Thu, 1 Sep 2022 18:45:13 +0800 Message-ID: <20220901104515.135162-1-zouyipeng@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.175.41] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemm500016.china.huawei.com (7.185.36.25) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently, hardirq tracing log in riscv showing the last {enabled,disabled} at __trace_hardirqs_{on,off} all the time. We can use trace_hardirqs_on_caller to display the caller we really want to see. Yipeng Zou (2): tracing: hold caller_addr to hardirq_{enable,disable}_ip riscv: tracing: Improve hardirq tracing message arch/riscv/kernel/trace_irq.c | 4 ++-- include/linux/irqflags.h | 2 ++ kernel/trace/trace_preemptirq.c | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) -- 2.17.1