Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp5084796pjb; Mon, 27 Jul 2020 12:32:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4lvMFZpSQTwwllQmNjm/bfKajnLSDF8oVfWhztsZHV9x6Vj/RlR4KECHHRWJsvINW2l43 X-Received: by 2002:aa7:df8c:: with SMTP id b12mr2446980edy.263.1595878376989; Mon, 27 Jul 2020 12:32:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595878376; cv=none; d=google.com; s=arc-20160816; b=rZaQc1W0Mi6mGCYG6Hb+4W7qedrKrlH56mJH167r2N55gpPJqwloMwlaEvdzGC+pNT LM4+nrPuR0R8+wGRK5Fmweh7FKGBNGc9DsQPgVBDjlVwOK368XEwEdViRQzKmPkeIGCt afY2kFaL97O2z/oaASTKYaQVDqEMcfL3yBhMsbnGX26eyX7AOpT9lP5YCk8Xv4PKWG+F ztguDOeO63f1i90W+xYXOd6VWUBpBMHJR2gcQvn+D3mouGWLk34bHv4SE35asnvypYXn msyj+gLF3R1qVIAq3cq5B3CMfZdWMVkc6oVMVOFr/dm3B8W2OPFQ+VwQSV9/4C+sn8U4 D5Ag== 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 :references:in-reply-to:message-id:subject:cc:to:from:date; bh=rojIkyg8VtagLxoUJZm76s4vdqI3nt7bpLw0dUbgY3g=; b=Ed7eWcQTYF1JyryTGb7rhDceSC2hB3dqQ5TDUG1mIZPXQhNwvYPUoK9718A0IVmIRm VhjbfWH9WKJwICvZAOOlayMCsErVx38PHefwwigovteGydFTo3m9SqTmMiKYGsS1BYDI fqmRS8GJRlip86ZYLDdbAiGIjaVeS7OQ2q76ZiUcbw7ViAHouXw0v6ObfzgAOa3eEaJx UZeX4+07Qj5ki2kawwhnbLW/+ie2vVlfXk7fSWh3yYZFDIyBxDG3sviARltK4cnVc+Pa 6Zyt9mOVnp0R7yOdJvqaNNXBocxT7uB20AaUHIFRSqVFVSDjmsAtjCsyHnexh7P80AtL xf4w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x4si1059442edv.40.2020.07.27.12.32.31; Mon, 27 Jul 2020 12:32:56 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728286AbgG0TIP (ORCPT + 99 others); Mon, 27 Jul 2020 15:08:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:53728 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726846AbgG0TIP (ORCPT ); Mon, 27 Jul 2020 15:08:15 -0400 Received: from oasis.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 2E76420729; Mon, 27 Jul 2020 19:08:14 +0000 (UTC) Date: Mon, 27 Jul 2020 15:08:12 -0400 From: Steven Rostedt To: Tingwei Zhang Cc: Ingo Molnar , tsoni@codeaurora.org, Sai Prakash Ranjan , Mao Jinlong , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 6/6] stm class: ftrace: use different channel accroding to CPU Message-ID: <20200727150812.3051fa7d@oasis.local.home> In-Reply-To: <20200726025931.30510-7-tingwei@codeaurora.org> References: <20200726025931.30510-1-tingwei@codeaurora.org> <20200726025931.30510-7-tingwei@codeaurora.org> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 26 Jul 2020 10:59:31 +0800 Tingwei Zhang wrote: > --- a/drivers/hwtracing/stm/ftrace.c > +++ b/drivers/hwtracing/stm/ftrace.c > @@ -37,8 +37,9 @@ static void notrace > stm_ftrace_write(struct trace_export *export, const void *buf, unsigned int len) > { > struct stm_ftrace *stm = container_of(export, struct stm_ftrace, ftrace); > + unsigned int cpu = smp_processor_id(); Probably should add a comment to the above stating that this is called from the tracing system with preemption disabled. Other than my two comments: Reviewed-by: Steven Rostedt (VMware) -- Steve > > - stm_source_write(&stm->data, STM_FTRACE_CHAN, buf, len); > + stm_source_write(&stm->data, STM_FTRACE_CHAN + cpu, buf, len); > } > > static int stm_ftrace_link(struct stm_source_data *data)