Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp908444imm; Wed, 15 Aug 2018 08:09:28 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwiX9vi0Q/B4Nxe6B2wbJ2WWuqx/Qq2Wit8xTOXI8rrgdkmtrq2d4rQn+OZv6Fzk0p6JoOa X-Received: by 2002:a17:902:4601:: with SMTP id o1-v6mr24656224pld.202.1534345767987; Wed, 15 Aug 2018 08:09:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534345767; cv=none; d=google.com; s=arc-20160816; b=TZYGdmiKNPM2Kvtkt+EXHyUDEGARvJFxW7cz7Qajcbowj6Ueuawl8nP88gQTmgvJku 5HmcjQhIIVUDNn2L3kGHe3rnCtiT56gR8WIPnbVMADrOlbgU4zRIrUUv7gNg1MOLlTh3 0TigULLepTaEyUM0nu47IMmrrAk6k1M8WQ7aOm9LfHZRZ3xESi/uozbiAa1RT8oZwmYQ uxwar8VuGXUMuE6P34EE/Je7oIU5or8tTu0HPOpToPI5Ycp39WUYY+OzG60kc/qUtZca EMd7XRzDgbZSsZJFtOq/yFus9n9zx3RUU9uplvc9Kh19LqktiMRCmu7Pccty2VaV2CsT EdkA== 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:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=Ihcrmbu79t2FmgTuW8sJ/0nsC0kN5NTpDw+0FeIWHCg=; b=wyje8/HesuOoccQdODrjehjW1l9tgxpI6bw7azFLrPkGoiv3ujqgHLl+kFJA3fJz/8 Z91zUtgeVtCHV2+L0QtprS4bvGlnVcnf2E1pJJf2DC0r9Pigyh5OxmFXPYzu2mSLD/uT UoK5qYD470UhOByWdR5op6Sef6tb/dfB9QmXUC/wxocWmlLi0qzfBshkJ3fFGhOa48O+ cJJusCjSiwJ3hkASBw2b3wERy7lWiSj7sS7Oy+oZiO63W2kEyWe07y+DhexC1XEyAMpj 9f2a5mKBaz9m35d68N34SqffaT3znXro1Zs5LqJZy785vo42wdYPFMKcyrj36aZ/eamU 5XcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="xRe4/Mh/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k11-v6si22165382pgi.328.2018.08.15.08.09.12; Wed, 15 Aug 2018 08:09:27 -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; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="xRe4/Mh/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730312AbeHOSAZ (ORCPT + 99 others); Wed, 15 Aug 2018 14:00:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:50332 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729293AbeHOSAY (ORCPT ); Wed, 15 Aug 2018 14:00:24 -0400 Received: from jouet.infradead.org (unknown [179.97.41.186]) (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 E6C7A21475; Wed, 15 Aug 2018 15:07:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1534345671; bh=J/5ocQ1aCrQAm2luwQ7VaMZwEtMrB760R/bZC28tRyM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xRe4/Mh/3NVsnO4o6mkTkPyuQEKghifZVooAhvrK7aOdbIDVXJ2p18JvAoxEh2Fo1 m0hWPCF5oBlc2w8X5mNpDSE9dKYoAlWcpLKiJtWSsjwq7oU4LjN5yzYxZqol9PtfFq HJ7a9nVr7pZlSAw12Ba4IjSEthlnQ8hoJ3APndzg= From: Arnaldo Carvalho de Melo To: Ingo Molnar Cc: Clark Williams , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, "Tzvetomir Stoyanov (VMware)" , Andrew Morton , Peter Zijlstra , Yordan Karadzhov , linux-trace-devel@vger.kernel.org, Steven Rostedt , Arnaldo Carvalho de Melo Subject: [PATCH 16/35] tools lib traceevent, perf tools: Rename traceevent_plugin_* APIs Date: Wed, 15 Aug 2018 12:05:52 -0300 Message-Id: <20180815150611.32080-17-acme@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180815150611.32080-1-acme@kernel.org> References: <20180815150611.32080-1-acme@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Tzvetomir Stoyanov (VMware)" In order to make libtraceevent into a proper library, variables, data structures and functions require a unique prefix to prevent name space conflicts. That prefix will be "tep_" and not "traceevent_". This changes APIs: traceevent_plugin_list_options, traceevent_plugin_free_options_list, traceevent_plugin_add_options, traceevent_plugin_remove_options, traceevent_print_plugins Signed-off-by: Tzvetomir Stoyanov (VMware) Cc: Andrew Morton Cc: Peter Zijlstra Cc: Yordan Karadzhov (VMware) Cc: linux-trace-devel@vger.kernel.org Link: http://lkml.kernel.org/r/20180808180702.089951638@goodmis.org Signed-off-by: Steven Rostedt Signed-off-by: Arnaldo Carvalho de Melo --- tools/lib/traceevent/event-parse.h | 16 ++++++++-------- tools/lib/traceevent/event-plugin.c | 28 ++++++++++++++-------------- tools/lib/traceevent/plugin_function.c | 4 ++-- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/tools/lib/traceevent/event-parse.h b/tools/lib/traceevent/event-parse.h index 81f34132fc47..ec327849a7dc 100644 --- a/tools/lib/traceevent/event-parse.h +++ b/tools/lib/traceevent/event-parse.h @@ -438,14 +438,14 @@ struct plugin_list; struct plugin_list *tep_load_plugins(struct tep_handle *pevent); void tep_unload_plugins(struct plugin_list *plugin_list, struct tep_handle *pevent); -char **traceevent_plugin_list_options(void); -void traceevent_plugin_free_options_list(char **list); -int traceevent_plugin_add_options(const char *name, - struct tep_plugin_option *options); -void traceevent_plugin_remove_options(struct tep_plugin_option *options); -void traceevent_print_plugins(struct trace_seq *s, - const char *prefix, const char *suffix, - const struct plugin_list *list); +char **tep_plugin_list_options(void); +void tep_plugin_free_options_list(char **list); +int tep_plugin_add_options(const char *name, + struct tep_plugin_option *options); +void tep_plugin_remove_options(struct tep_plugin_option *options); +void tep_print_plugins(struct trace_seq *s, + const char *prefix, const char *suffix, + const struct plugin_list *list); struct cmdline; struct cmdline_list; diff --git a/tools/lib/traceevent/event-plugin.c b/tools/lib/traceevent/event-plugin.c index c837a73c03e6..8e324ed46547 100644 --- a/tools/lib/traceevent/event-plugin.c +++ b/tools/lib/traceevent/event-plugin.c @@ -97,7 +97,7 @@ static int update_option_value(struct tep_plugin_option *op, const char *val) } /** - * traceevent_plugin_list_options - get list of plugin options + * tep_plugin_list_options - get list of plugin options * * Returns an array of char strings that list the currently registered * plugin options in the format of :