Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1392548ybk; Sat, 16 May 2020 09:51:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZGbN4L+95rS0FRg8JFeDnYl4vYP2f3+AemhBb7OSUunKT5P5WbJNNjewG1AOKyP1BKzKi X-Received: by 2002:a50:98a2:: with SMTP id j31mr7121604edb.79.1589647917665; Sat, 16 May 2020 09:51:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589647917; cv=none; d=google.com; s=arc-20160816; b=URiIqLdZHDDjhR2ozzRCyZhVRLHg8wv8FWLFnRBrsJMZ1S+VhiyjTH5SkCAZ2/41WV OeOUuHvYfrSdLTGMH5QE28DctQ/xeZ80uE1PIRURoyDeSDC89YQHX1TXI4NWe0nVdNNA pY+bb4k0GhdJBelRydnlSRJAprtptlZmWhipBc9krySsgbZX7FSws8wi7y1e++nB9zyk y4/QCRCnixTWVDtaxBq9Ttu4Ad8tZfsQcDpLDyS5uODUoHDFJzGI7gMEvY1SRS529/wH 7EfnrjcgUNHUCvNrrFrQ4Ndl4n5pgqBWzJRWFkyHwUahbfwKlixlwa2mB/Wa5VA81gRe wD2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=27vU4ld4hW7yyM1NYFKR33va5wB7Q0CEcPGmC8FA414=; b=qSC70xqjFRyHDwPCYgXNsD0BVVdW7YGhq62mggPry9m0AKAhnv+8OZOldjgpzBGC2s Pa/IZhFqNKqRSYx9yQhm89ndLcC8umlqr9dm2rRcssaNZeOLNX+OEv+PQQbG4m52XxBi HsQrX1LJTDOKO3AxB+zq+2eNDWS7DvwJEjf1bSDUNvuciJgzzuVeKVsJUL7S6Au8RUy3 lduO+z36hpU+genXr7w26vCc8E7BR+sRpYIrRwqmKgt3dJ7m/N+xT7hx5XcACwjynSEJ PiyrgEBwcglLpIraRyxcZ10MIw4svrJMTUbGK6QHJlT3A3ammhaZ1H2RWKo4WH7oiBUg +PXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=N8uZE+WX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p20si3543165ejf.49.2020.05.16.09.51.31; Sat, 16 May 2020 09:51:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=N8uZE+WX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726248AbgEPQKH (ORCPT + 99 others); Sat, 16 May 2020 12:10:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726206AbgEPQKH (ORCPT ); Sat, 16 May 2020 12:10:07 -0400 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AC85C061A0C for ; Sat, 16 May 2020 09:10:07 -0700 (PDT) Received: by mail-pl1-x643.google.com with SMTP id s20so2217430plp.6 for ; Sat, 16 May 2020 09:10:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=27vU4ld4hW7yyM1NYFKR33va5wB7Q0CEcPGmC8FA414=; b=N8uZE+WX87GWeminnJLGxp2z3xuE4PIY2jZgW1O5lOWNHfKJyUgtL2o0agDtDhsjo4 JuVk8d0K2sgBGcc4vOx43Mc4LeyXyfZcWpi7PuQRuLV1Pc3Eh528kJGHD/mWkSvhox/y nf62lgl2lPJe4LscsaXaSe7RnNQkJHMQQXd9Pns0ecLvohsag0gE7Ml1pAQRvm3z+vcV Lu84HtQdoVGTMmVxLbTr/wZXghEGfHgH3upR6ymOx3znogeJpYVGiwnShhjyvZvWKFVA BXfabFTgLEGdLGCWTTn5LBiTWa5toj+VFhffm8677Ye7EWlrbk6pllwn55IhzoguMuWd xoyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=27vU4ld4hW7yyM1NYFKR33va5wB7Q0CEcPGmC8FA414=; b=MVcXB77uW2g3zkB5lvymzdU+7CeVan4y2HcS+zfEvbOfUuJFglCZ9Vw7tOl8tUhsm4 zEzmgwjDTROZbcPXoLpQWUWcyyWMcTA2oocZfqK5ecTvyMEhiPZpnvugGKIjz65djN96 Tdt5rd4Bce0u7lH0NIX2uX7F+jY7koky2GuAIfEGEjStWNGCzThm53j6HGOcvbQ+dDbb XR0CVsQ70wy2a5Ku8TvVi4qQUbcozQd3G6LigMir070bZOCVGC1IFn2G3bPAW3neb8t4 d4e/A4PJ5Zuqj8dHI/xDQu6S6GFCqwtMTu+ZKyPlNTwsWFjQlVRX7x7WN6aU/uLJOCKj 52dw== X-Gm-Message-State: AOAM531GbAIcDO4u56BQ2mBZrhXdbMPSK2XrO3iUm3LAIBSRniE3D1u5 cApxVhIqOAYLks6sfIXULB+K0aBHxRA= X-Received: by 2002:a17:90a:ead6:: with SMTP id ev22mr9602466pjb.94.1589645406752; Sat, 16 May 2020 09:10:06 -0700 (PDT) Received: from vultr.guest ([149.248.10.52]) by smtp.gmail.com with ESMTPSA id a2sm4103558pgh.57.2020.05.16.09.10.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 May 2020 09:10:05 -0700 (PDT) From: Changbin Du To: Steven Rostedt Cc: Ingo Molnar , linux-kernel@vger.kernel.org, Changbin Du Subject: [PATCH] function_graph: apply tracing option 'irq-info' Date: Sun, 17 May 2020 00:09:53 +0800 Message-Id: <20200516160953.155630-1-changbin.du@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The tracing option 'irq-info' is only used by function tracer by far. This patch makes it also against function graph tracer. Then the two tracers have consistent behavior of this option. Signed-off-by: Changbin Du --- kernel/trace/trace_functions_graph.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/trace/trace_functions_graph.c b/kernel/trace/trace_functions_graph.c index 4a9c49c08ec9..86e410907649 100644 --- a/kernel/trace/trace_functions_graph.c +++ b/kernel/trace/trace_functions_graph.c @@ -541,7 +541,7 @@ print_graph_irq(struct trace_iterator *iter, unsigned long addr, } /* Latency format */ - if (tr->trace_flags & TRACE_ITER_LATENCY_FMT) + if (tr->trace_flags & (TRACE_ITER_LATENCY_FMT | TRACE_ITER_IRQ_INFO)) print_graph_lat_fmt(s, ent); } @@ -753,7 +753,7 @@ print_graph_prologue(struct trace_iterator *iter, struct trace_seq *s, } /* Latency format */ - if (tr->trace_flags & TRACE_ITER_LATENCY_FMT) + if (tr->trace_flags & (TRACE_ITER_LATENCY_FMT | TRACE_ITER_IRQ_INFO)) print_graph_lat_fmt(s, ent); return; @@ -1135,7 +1135,7 @@ static void print_lat_header(struct seq_file *s, u32 flags) static void __print_graph_headers_flags(struct trace_array *tr, struct seq_file *s, u32 flags) { - int lat = tr->trace_flags & TRACE_ITER_LATENCY_FMT; + int lat = tr->trace_flags & (TRACE_ITER_LATENCY_FMT | TRACE_ITER_IRQ_INFO); if (lat) print_lat_header(s, flags); -- 2.25.1