Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761006AbbKTU6K (ORCPT ); Fri, 20 Nov 2015 15:58:10 -0500 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:2055 "EHLO mx0b-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761028AbbKTU6G (ORCPT ); Fri, 20 Nov 2015 15:58:06 -0500 From: Josef Bacik To: , , Subject: [PATCH 11/11] trace-cmd: add tracecmd_expand_event_list Date: Fri, 20 Nov 2015 15:57:33 -0500 Message-ID: <1448053053-24188-12-git-send-email-jbacik@fb.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1448053053-24188-1-git-send-email-jbacik@fb.com> References: <1448053053-24188-1-git-send-email-jbacik@fb.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.168.52.123] X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2015-11-20_12:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1637 Lines: 52 We can add events, but we need to expose expand_event_list so that it will go through and figure out the paths to those events so they can be enabled later. Thanks, Signed-off-by: Josef Bacik --- trace-cmd.h | 1 + trace-record.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/trace-cmd.h b/trace-cmd.h index 08cb774..6bbc97a 100644 --- a/trace-cmd.h +++ b/trace-cmd.h @@ -286,6 +286,7 @@ void tracecmd_stop_recording(struct tracecmd_recorder *recorder); void tracecmd_stat_cpu(struct trace_seq *s, int cpu); long tracecmd_flush_recording(struct tracecmd_recorder *recorder); int tracecmd_add_event(const char *event_str, int stack); +void tracecmd_expand_event_list(void); void tracecmd_enable_events(void); void tracecmd_disable_all_tracing(int disable_tracer); void tracecmd_disable_tracing(void); diff --git a/trace-record.c b/trace-record.c index 3c8eb58..e4194b5 100644 --- a/trace-record.c +++ b/trace-record.c @@ -2214,7 +2214,7 @@ static void expand_event_instance(struct buffer_instance *instance) } } -static void expand_event_list(void) +void tracecmd_expand_event_list(void) { struct buffer_instance *instance; @@ -4318,7 +4318,7 @@ void trace_record (int argc, char **argv) record_all_events(); if (events) - expand_event_list(); + tracecmd_expand_event_list(); page_size = getpagesize(); -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/