Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1463302pxb; Wed, 10 Feb 2021 08:53:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJy212G5pHNY17LYQlSTHBLOTFm2GIoSQGdxpkuJos0FVXKu28cim1E8qdAmRM2c7vAUxu0d X-Received: by 2002:a17:906:9bcd:: with SMTP id de13mr3702327ejc.245.1612976005167; Wed, 10 Feb 2021 08:53:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612976005; cv=none; d=google.com; s=arc-20160816; b=GEjT6IEGFjjaESCFjyI0vJ6KU6RkJNlrUQ2eCvnSXA2TNOOAbT3p0+3f8gR0bgr80N o+SpnCUnzgbOJrOvE2Fdp9MxQVKovrmtZ5ZOQSYA0afk/B8Q2vwvLcJsUQzwTanwHvAp MrtBpUGt4cAffcGHu9FN7zHgAWr/ThtUkC4Z+qt//XwcViIbWHUlCqXyi5AG9bbVvDdW 6ZmhDzpTz7Wq1DF+H5KbJKCLDseveHJlpWK55hHdFwfTP95t2djJZR9oCwv/n2YfNFAy kryb7YdDba9motBmiHuC10k05q/MDpxXXO5MZxKqQLf4S3fVYXyNxj56fsRjAZyl4RGP 67qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=LwuwOHNnHeB2EM2fJGXDl1QkiWFT40zztdA7BjkVbQU=; b=mzJGavvyGWlzu2EtD3MYbwd9cuxn7NO3QFb8nBBYgGXgLSj/B3/Mt+vXCZnVJUZx/j lvxibgXaRgxdfF5ny+QsrN4ddxRRXQowYhUVyf7yiaXjt++JOqqyDSSgXsAPNIRZQEnM wDB2KDSCK7hFenIVsZ1DS/G51U8fefNidFGaMdSWumcqrCMbKmblKeVR/2oefQzKMvgl 8PZoJIstf3E76KdMCZTKxt8M1taF8pUb8mZzH9xIUYwgBYbIz2sJdhWNvMbfYWeSpun0 myWY8b2kl2uu3wjoo5efyVXi/tyumcwli+4leyzcLitanbD64IdQWfHH7EfhdJqUlomS yIcA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x21si1720162edv.185.2021.02.10.08.53.02; Wed, 10 Feb 2021 08:53:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232658AbhBJQtv (ORCPT + 99 others); Wed, 10 Feb 2021 11:49:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:35292 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232346AbhBJQtF (ORCPT ); Wed, 10 Feb 2021 11:49:05 -0500 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3020964E7C; Wed, 10 Feb 2021 16:48:25 +0000 (UTC) Date: Wed, 10 Feb 2021 11:48:23 -0500 From: Steven Rostedt To: Wen Gong Cc: Brian Norris , ath10k , linux-wireless Subject: Re: [PATCH] ath10k: change len of trace_ath10k_log_dbg_dump for large buffer size Message-ID: <20210210114823.1408dd64@gandalf.local.home> In-Reply-To: <20210210113026.5f5ebe8a@gandalf.local.home> References: <1612839593-2308-1-git-send-email-wgong@codeaurora.org> <20210209145531.5977b16d@gandalf.local.home> <20210209163431.11133472@gandalf.local.home> <9b479a88331dbf969f07708eabe53d14@codeaurora.org> <20210210113026.5f5ebe8a@gandalf.local.home> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Wed, 10 Feb 2021 11:30:26 -0500 Steven Rostedt wrote: > Can you test this patch? v2: diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index b79bcacdd6f9..c5c3d826d420 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -2739,7 +2739,7 @@ trace_event_buffer_lock_reserve(struct trace_buffer **current_rb, (entry = this_cpu_read(trace_buffered_event))) { /* Try to use the per cpu buffer first */ val = this_cpu_inc_return(trace_buffered_event_cnt); - if (val == 1) { + if ((len < (PAGE_SIZE - sizeof(entry))) && val == 1) { trace_event_setup(entry, type, trace_ctx); entry->array[0] = len; return entry; -- Steve