From patchwork Tue Jul 7 10:10:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 50812 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C64A622A03 for ; Tue, 7 Jul 2015 10:12:29 +0000 (UTC) Received: by lagc2 with SMTP id c2sf11273983lag.0 for ; Tue, 07 Jul 2015 03:12:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:in-reply-to:references :sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=qLyfPcFN9T6jZTpzge0rOANCpHwS4izfzcTyqQHsQvQ=; b=K613HQV6D7qScvjgF3/x7SiZxFjuDIXDzBuCg4W5oQYlBcjQLSzz4ZPd9eqYSPLHhY P47VwC/cVEFPvGxQuCHeLT0E2sYje84VGZbAAnq6kphYeouhwZe04xPLnhel3Kb2wdP2 JBImGx2MqmeMh5CLVkfdtJWlRXCpYasv6a27CStdveT4/7sEhhWeTl+Ie8H2A/d2PGwy FOGZAUZho8DOylNSiaoMWtlixbhP7Q6Ljife6X1dyuSKDP10sMcIM06R/h5zhvWpJrgP KbgTMaC2Fg13hTtylMZ+earSdKz85W18Rzxr4BO5U80KXA88FaDbwSyxS/9/imEHEfaJ cfPA== X-Gm-Message-State: ALoCoQlfXVr3ZfK07oak63sbKAyFr/5ASQXZz/eXggjiJ3sdU8g6ZAbtO2uCC582THweohpXyEka X-Received: by 10.194.60.73 with SMTP id f9mr1782550wjr.6.1436263948808; Tue, 07 Jul 2015 03:12:28 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.234.108 with SMTP id ud12ls34570lac.43.gmail; Tue, 07 Jul 2015 03:12:28 -0700 (PDT) X-Received: by 10.152.238.39 with SMTP id vh7mr3246973lac.71.1436263948608; Tue, 07 Jul 2015 03:12:28 -0700 (PDT) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id k7si17747756lbj.50.2015.07.07.03.12.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Jul 2015 03:12:28 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by labgy5 with SMTP id gy5so36312896lab.2 for ; Tue, 07 Jul 2015 03:12:28 -0700 (PDT) X-Received: by 10.152.18.162 with SMTP id x2mr3267461lad.73.1436263948455; Tue, 07 Jul 2015 03:12:28 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp2282665lbb; Tue, 7 Jul 2015 03:12:26 -0700 (PDT) X-Received: by 10.70.55.134 with SMTP id s6mr7179957pdp.137.1436263946807; Tue, 07 Jul 2015 03:12:26 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ol11si33981540pab.5.2015.07.07.03.12.25; Tue, 07 Jul 2015 03:12:26 -0700 (PDT) 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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756829AbbGGKMW (ORCPT + 29 others); Tue, 7 Jul 2015 06:12:22 -0400 Received: from mail-pd0-f169.google.com ([209.85.192.169]:34300 "EHLO mail-pd0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756788AbbGGKML (ORCPT ); Tue, 7 Jul 2015 06:12:11 -0400 Received: by pdbep18 with SMTP id ep18so123345131pdb.1 for ; Tue, 07 Jul 2015 03:12:11 -0700 (PDT) X-Received: by 10.68.229.200 with SMTP id ss8mr7418252pbc.150.1436263931195; Tue, 07 Jul 2015 03:12:11 -0700 (PDT) Received: from zcy-ubuntu.spreadtrum.com ([175.111.195.49]) by mx.google.com with ESMTPSA id o7sm21361821pdi.16.2015.07.07.03.12.06 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 Jul 2015 03:12:09 -0700 (PDT) From: Chunyan Zhang To: rostedt@goodmis.org, mingo@redhat.com Cc: mathieu.poirier@linaro.org, serge.broslavsky@linaro.org, broonie@kernel.org, alexander.shishkin@linux.intel.com, zhang.lyra@gmail.com, linux-kernel@vger.kernel.org Subject: [RFC PATCH v3 2/4] trace: Add an entry for printing trace log to STM Date: Tue, 7 Jul 2015 18:10:41 +0800 Message-Id: X-Mailer: git-send-email 1.9.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: zhang.chunyan@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , output_stm is a link which is used to connect trace event logging with STMs, will be used in the upcoming patches. Signed-off-by: Chunyan Zhang --- include/linux/trace_events.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/linux/trace_events.h b/include/linux/trace_events.h index 1063c85..28dcdff 100644 --- a/include/linux/trace_events.h +++ b/include/linux/trace_events.h @@ -14,6 +14,7 @@ struct trace_buffer; struct tracer; struct dentry; struct bpf_prog; +struct trace_buffer_stm; struct trace_print_flags { unsigned long mask; @@ -293,6 +294,9 @@ struct trace_event_call { */ int flags; /* static flags of different events */ + void (*output_stm)(struct trace_seq *tmp_seq, void *entry, + struct trace_buffer_stm *tb); + #ifdef CONFIG_PERF_EVENTS int perf_refcount; struct hlist_head __percpu *perf_events; @@ -412,6 +416,10 @@ enum event_trigger_type { ETT_EVENT_ENABLE = (1 << 3), }; +#ifdef CONFIG_STM_TRACE_EVENT +extern void stm_trace_event_write(const char *buf, unsigned len); +#endif + extern int filter_match_preds(struct event_filter *filter, void *rec); extern int filter_check_discard(struct trace_event_file *file, void *rec,