Received: by 10.223.164.202 with SMTP id h10csp1626234wrb; Sat, 18 Nov 2017 02:57:50 -0800 (PST) X-Google-Smtp-Source: AGs4zMbzhN2x48Sfq3SJVMpnPAJ3jsakhiYC4i4LFSZDJbXqko/5wBl64UX+gGjwyKHZDoPPI5Vz X-Received: by 10.159.242.196 with SMTP id x4mr8148800plw.342.1511002670627; Sat, 18 Nov 2017 02:57:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511002670; cv=none; d=google.com; s=arc-20160816; b=qAST4lG+KMT4OB0OCqzvm1BcROwj6zKD+a1CEFzsyGJ0galoJI+HWEJZbGw+vEM7fB h6hrcnsVVMH2tg4+zIN9AT3URAbbtOq4gRwsycYrJ094GcLQitcC8dLckctuCVaHi++i m4xoeC5q9qgY0CCeeXr2uTZOZ7bK1hbLgD35Xzsmcqjc6ZRze9/j+hQh7ttUuntgLZIk FBh3/JUgXKnRtltFchJun8Vrc3TzlqQKh1wWMHyUmLFIvGKrXaO8nGvw0GSgSz+dGSy7 dctYlSVaJfTT/3P+8JqglQJZQaxJ0Uhp72rc+20wWDIK0pfAdDNCTRIU83szJx20E+DK nqKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=WEuEuFBgYVUbEK6WSKoOVo62lMAA/G5ZC3cb+xUpCjI=; b=SJglOrTK/cQPCFvMF8T1wXZPvDdwQm1xwuPO/RhLBTFbGKXsQe1O6msMqVVRn7D/JE bdIgl5cfTAXYIHOmRSbukL5fZ2IiTwVnsU/5WJcNDDyAbRLBmbhWMTysa/QwpHk1DKAC DBJgbDI0AuBWiQBox9HBziuOd6avTbkeIA37kStsXe4sKsmQVSJv/cfBrQ0Ox+p8l/A5 3cC0jWAOGJKxDi3568NRX542CLNPULEug7w6GDVCw8/ANvk+gnbowPeHFPAV9OYWieDy Bw3UidS7SL58Fg2s5iZ2PHGNKj5qoMkzSJLjktMtFOrHiDV6Y9IUwIQMrT6Gc4egPIwc AKDA== 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 i134si4325654pgc.583.2017.11.18.02.57.38; Sat, 18 Nov 2017 02:57:50 -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 S966420AbdKQUiT (ORCPT + 93 others); Fri, 17 Nov 2017 15:38:19 -0500 Received: from mga09.intel.com ([134.134.136.24]:23702 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422783AbdKQUf7 (ORCPT ); Fri, 17 Nov 2017 15:35:59 -0500 Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Nov 2017 12:35:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,411,1505804400"; d="scan'208";a="2863413" Received: from mjglynn-mobl.ger.corp.intel.com (HELO localhost) ([10.254.124.112]) by fmsmga004.fm.intel.com with ESMTP; 17 Nov 2017 12:35:56 -0800 From: Tom Zanussi To: rostedt@goodmis.org Cc: tglx@linutronix.de, mhiramat@kernel.org, namhyung@kernel.org, vedang.patel@intel.com, bigeasy@linutronix.de, joel.opensrc@gmail.com, joelaf@google.com, mathieu.desnoyers@efficios.com, baohong.liu@intel.com, rajvi.jingar@intel.com, julia@ni.com, fengguang.wu@intel.com, linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org, Tom Zanussi Subject: [PATCH v6 35/37] tracing: Increase trace_recursive_lock() limit for synthetic events Date: Fri, 17 Nov 2017 14:33:14 -0600 Message-Id: X-Mailer: git-send-email 1.9.3 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Synthetic event generation needs to happen while the current event is still in progress, so add 1 to the trace_recursive_lock() recursion limit to account for that. Because we also want to allow for the possibility of a synthetic event being generated from another synthetic event, add an additional increment for that as well. Signed-off-by: Tom Zanussi --- kernel/trace/ring_buffer.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c index 763b3fb..8c862ea 100644 --- a/kernel/trace/ring_buffer.c +++ b/kernel/trace/ring_buffer.c @@ -2589,16 +2589,16 @@ static void rb_commit(struct ring_buffer_per_cpu *cpu_buffer, * IRQ context * NMI context * - * If for some reason the ring buffer starts to recurse, we - * only allow that to happen at most 4 times (one for each - * context). If it happens 5 times, then we consider this a - * recusive loop and do not let it go further. + * If for some reason the ring buffer starts to recurse, we only allow + * that to happen at most 6 times (one for each context, plus possibly + * two levels of synthetic event generation). If it happens 7 times, + * then we consider this a recusive loop and do not let it go further. */ static __always_inline int trace_recursive_lock(struct ring_buffer_per_cpu *cpu_buffer) { - if (cpu_buffer->current_context >= 4) + if (cpu_buffer->current_context >= 6) return 1; cpu_buffer->current_context++; -- 1.9.3 From 1584323186391227360@xxx Fri Nov 17 14:18:51 +0000 2017 X-GM-THRID: 1584160883252782517 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread