instrumentation: remove asoc probe
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 13 Apr 2020 19:48:23 +0000 (15:48 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 13 Apr 2020 19:48:23 +0000 (15:48 -0400)
instrumentation/events/lttng-module/asoc.h [deleted file]
probes/Kbuild
probes/lttng-probe-asoc.c [deleted file]

diff --git a/instrumentation/events/lttng-module/asoc.h b/instrumentation/events/lttng-module/asoc.h
deleted file mode 100644 (file)
index eed81cd..0000000
+++ /dev/null
@@ -1,414 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-#undef TRACE_SYSTEM
-#define TRACE_SYSTEM asoc
-
-#if !defined(LTTNG_TRACE_ASOC_H) || defined(TRACE_HEADER_MULTI_READ)
-#define LTTNG_TRACE_ASOC_H
-
-#include <probes/lttng-tracepoint-event.h>
-#include <linux/ktime.h>
-#include <linux/version.h>
-
-#define DAPM_DIRECT "(direct)"
-
-#ifndef _TRACE_ASOC_DEF
-#define _TRACE_ASOC_DEF
-struct snd_soc_jack;
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0))
-struct snd_soc_codec;
-#endif
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,1,0) && \
-       LINUX_VERSION_CODE < KERNEL_VERSION(3,16,0))
-struct snd_soc_platform;
-#endif
-struct snd_soc_card;
-struct snd_soc_dapm_widget;
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0))
-struct snd_soc_dapm_path;
-#endif
-#endif
-
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,16,0) \
-       || LTTNG_RHEL_KERNEL_RANGE(3,10,0,514,0,0, 3,11,0,0,0,0))
-#define CODEC_NAME_FIELD component.name
-#define CODEC_ID_FIELD component.id
-#else
-#define CODEC_NAME_FIELD name
-#define CODEC_ID_FIELD id
-#endif
-
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,16,0))
-/*
- * Log register events
- */
-LTTNG_TRACEPOINT_EVENT_CLASS(asoc_snd_soc_reg,
-
-       TP_PROTO(struct snd_soc_codec *codec, unsigned int reg,
-                unsigned int val),
-
-       TP_ARGS(codec, reg, val),
-
-       TP_FIELDS(
-               ctf_string(name, codec->CODEC_NAME_FIELD)
-               ctf_integer(int, id, codec->CODEC_ID_FIELD)
-               ctf_integer(unsigned int, reg, reg)
-               ctf_integer(unsigned int, val, val)
-       )
-)
-
-LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(asoc_snd_soc_reg, snd_soc_reg_write,
-
-       asoc_snd_soc_reg_write,
-
-       TP_PROTO(struct snd_soc_codec *codec, unsigned int reg,
-                unsigned int val),
-
-       TP_ARGS(codec, reg, val)
-
-)
-
-LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(asoc_snd_soc_reg, snd_soc_reg_read,
-
-       asoc_snd_soc_reg_read,
-
-       TP_PROTO(struct snd_soc_codec *codec, unsigned int reg,
-                unsigned int val),
-
-       TP_ARGS(codec, reg, val)
-
-)
-#endif
-
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,1,0) && \
-       LINUX_VERSION_CODE < KERNEL_VERSION(3,16,0))
-LTTNG_TRACEPOINT_EVENT_CLASS(asoc_snd_soc_preg,
-
-       TP_PROTO(struct snd_soc_platform *platform, unsigned int reg,
-                unsigned int val),
-
-       TP_ARGS(platform, reg, val),
-
-       TP_FIELDS(
-               ctf_string(name, platform->CODEC_NAME_FIELD)
-               ctf_integer(int, id, platform->CODEC_ID_FIELD)
-               ctf_integer(unsigned int, reg, reg)
-               ctf_integer(unsigned int, val, val)
-       )
-)
-
-LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(asoc_snd_soc_preg, snd_soc_preg_write,
-
-       asoc_snd_soc_preg_write,
-
-       TP_PROTO(struct snd_soc_platform *platform, unsigned int reg,
-                unsigned int val),
-
-       TP_ARGS(platform, reg, val)
-
-)
-
-LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(asoc_snd_soc_preg, snd_soc_preg_read,
-
-       asoc_snd_soc_preg_read,
-
-       TP_PROTO(struct snd_soc_platform *platform, unsigned int reg,
-                unsigned int val),
-
-       TP_ARGS(platform, reg, val)
-
-)
-#endif
-
-LTTNG_TRACEPOINT_EVENT_CLASS(asoc_snd_soc_card,
-
-       TP_PROTO(struct snd_soc_card *card, int val),
-
-       TP_ARGS(card, val),
-
-       TP_FIELDS(
-               ctf_string(name, card->name)
-               ctf_integer(int, val, val)
-       )
-)
-
-LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(asoc_snd_soc_card, snd_soc_bias_level_start,
-
-       asoc_snd_soc_bias_level_start,
-
-       TP_PROTO(struct snd_soc_card *card, int val),
-
-       TP_ARGS(card, val)
-
-)
-
-LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(asoc_snd_soc_card, snd_soc_bias_level_done,
-
-       asoc_snd_soc_bias_level_done,
-
-       TP_PROTO(struct snd_soc_card *card, int val),
-
-       TP_ARGS(card, val)
-
-)
-
-LTTNG_TRACEPOINT_EVENT_CLASS(asoc_snd_soc_dapm_basic,
-
-       TP_PROTO(struct snd_soc_card *card),
-
-       TP_ARGS(card),
-
-       TP_FIELDS(
-               ctf_string(name, card->name)
-       )
-)
-
-LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(asoc_snd_soc_dapm_basic, snd_soc_dapm_start,
-
-       asoc_snd_soc_dapm_start,
-
-       TP_PROTO(struct snd_soc_card *card),
-
-       TP_ARGS(card)
-
-)
-
-LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(asoc_snd_soc_dapm_basic, snd_soc_dapm_done,
-
-       asoc_snd_soc_dapm_done,
-
-       TP_PROTO(struct snd_soc_card *card),
-
-       TP_ARGS(card)
-
-)
-
-LTTNG_TRACEPOINT_EVENT_CLASS(asoc_snd_soc_dapm_widget,
-
-       TP_PROTO(struct snd_soc_dapm_widget *w, int val),
-
-       TP_ARGS(w, val),
-
-       TP_FIELDS(
-               ctf_string(name, w->name)
-               ctf_integer(int, val, val)
-       )
-)
-
-LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(asoc_snd_soc_dapm_widget, snd_soc_dapm_widget_power,
-
-       asoc_snd_soc_dapm_widget_power,
-
-       TP_PROTO(struct snd_soc_dapm_widget *w, int val),
-
-       TP_ARGS(w, val)
-
-)
-
-LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(asoc_snd_soc_dapm_widget, snd_soc_dapm_widget_event_start,
-
-       asoc_snd_soc_dapm_widget_event_start,
-
-       TP_PROTO(struct snd_soc_dapm_widget *w, int val),
-
-       TP_ARGS(w, val)
-
-)
-
-LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(asoc_snd_soc_dapm_widget, snd_soc_dapm_widget_event_done,
-
-       asoc_snd_soc_dapm_widget_event_done,
-
-       TP_PROTO(struct snd_soc_dapm_widget *w, int val),
-
-       TP_ARGS(w, val)
-
-)
-
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0))
-LTTNG_TRACEPOINT_EVENT_MAP(snd_soc_dapm_walk_done,
-
-       asoc_snd_soc_dapm_walk_done,
-
-       TP_PROTO(struct snd_soc_card *card),
-
-       TP_ARGS(card),
-
-       TP_FIELDS(
-               ctf_string(name, card->name)
-               ctf_integer(int, power_checks, card->dapm_stats.power_checks)
-               ctf_integer(int, path_checks, card->dapm_stats.path_checks)
-               ctf_integer(int, neighbour_checks, card->dapm_stats.neighbour_checks)
-       )
-)
-#endif
-
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,3,0))
-LTTNG_TRACEPOINT_EVENT_MAP(snd_soc_dapm_path,
-
-       asoc_snd_soc_dapm_path,
-
-       TP_PROTO(struct snd_soc_dapm_widget *widget,
-               enum snd_soc_dapm_direction dir,
-               struct snd_soc_dapm_path *path),
-
-       TP_ARGS(widget, dir, path),
-
-       TP_FIELDS(
-               ctf_string(wname, widget->name)
-               ctf_string(pname, path->name ? path->name : DAPM_DIRECT)
-               ctf_string(pnname, path->node[dir]->name)
-               ctf_integer(int, path_node, (long) path->node[dir])
-               ctf_integer(int, path_connect, path->connect)
-               ctf_integer(int, path_dir, dir)
-       )
-)
-#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0))
-LTTNG_TRACEPOINT_EVENT_MAP(snd_soc_dapm_output_path,
-
-       asoc_snd_soc_dapm_output_path,
-
-       TP_PROTO(struct snd_soc_dapm_widget *widget,
-               struct snd_soc_dapm_path *path),
-
-       TP_ARGS(widget, path),
-
-       TP_FIELDS(
-               ctf_string(wname, widget->name)
-               ctf_string(pname, path->name ? path->name : DAPM_DIRECT)
-               ctf_string(psname, path->sink->name)
-               ctf_integer(int, path_sink, (long) path->sink)
-               ctf_integer(int, path_connect, path->connect)
-       )
-)
-
-LTTNG_TRACEPOINT_EVENT_MAP(snd_soc_dapm_input_path,
-
-       asoc_snd_soc_dapm_input_path,
-
-       TP_PROTO(struct snd_soc_dapm_widget *widget,
-               struct snd_soc_dapm_path *path),
-
-       TP_ARGS(widget, path),
-
-       TP_FIELDS(
-               ctf_string(wname, widget->name)
-               ctf_string(pname,path->name ? path->name : DAPM_DIRECT)
-               ctf_string(psname, path->source->name)
-               ctf_integer(int, path_source, (long) path->source)
-               ctf_integer(int, path_connect, path->connect)
-       )
-)
-#endif
-
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0))
-LTTNG_TRACEPOINT_EVENT_MAP(snd_soc_dapm_connected,
-
-       asoc_snd_soc_dapm_connected,
-
-       TP_PROTO(int paths, int stream),
-
-       TP_ARGS(paths, stream),
-
-       TP_FIELDS(
-               ctf_integer(int, paths, paths)
-               ctf_integer(int, stream, stream)
-       )
-)
-#endif
-
-LTTNG_TRACEPOINT_EVENT_MAP(snd_soc_jack_irq,
-
-       asoc_snd_soc_jack_irq,
-
-       TP_PROTO(const char *name),
-
-       TP_ARGS(name),
-
-       TP_FIELDS(
-               ctf_string(name, name)
-       )
-)
-
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0))
-LTTNG_TRACEPOINT_EVENT_MAP(snd_soc_jack_report,
-
-       asoc_snd_soc_jack_report,
-
-       TP_PROTO(struct snd_soc_jack *jack, int mask, int val),
-
-       TP_ARGS(jack, mask, val),
-
-       TP_FIELDS(
-               ctf_string(name, jack->jack->id)
-               ctf_integer(int, mask, mask)
-               ctf_integer(int, val, val)
-       )
-)
-
-LTTNG_TRACEPOINT_EVENT_MAP(snd_soc_jack_notify,
-
-       asoc_snd_soc_jack_notify,
-
-       TP_PROTO(struct snd_soc_jack *jack, int val),
-
-       TP_ARGS(jack, val),
-
-       TP_FIELDS(
-               ctf_string(name, jack->jack->id)
-               ctf_integer(int, val, val)
-       )
-)
-#else
-LTTNG_TRACEPOINT_EVENT_MAP(snd_soc_jack_report,
-
-       asoc_snd_soc_jack_report,
-
-       TP_PROTO(struct snd_soc_jack *jack, int mask, int val),
-
-       TP_ARGS(jack, mask, val),
-
-       TP_FIELDS(
-               ctf_string(name, jack->jack->name)
-               ctf_integer(int, mask, mask)
-               ctf_integer(int, val, val)
-       )
-)
-
-LTTNG_TRACEPOINT_EVENT_MAP(snd_soc_jack_notify,
-
-       asoc_snd_soc_jack_notify,
-
-       TP_PROTO(struct snd_soc_jack *jack, int val),
-
-       TP_ARGS(jack, val),
-
-       TP_FIELDS(
-               ctf_string(name, jack->jack->name)
-               ctf_integer(int, val, val)
-       )
-)
-#endif
-
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0))
-LTTNG_TRACEPOINT_EVENT_MAP(snd_soc_cache_sync,
-
-       asoc_snd_soc_cache_sync,
-
-       TP_PROTO(struct snd_soc_codec *codec, const char *type,
-                const char *status),
-
-       TP_ARGS(codec, type, status),
-
-       TP_FIELDS(
-               ctf_string(name, codec->CODEC_NAME_FIELD)
-               ctf_string(status, status)
-               ctf_string(type, type)
-               ctf_integer(int, id, codec->CODEC_ID_FIELD)
-       )
-)
-#endif
-
-#endif /* LTTNG_TRACE_ASOC_H */
-
-/* This part must be outside protection */
-#include <probes/define_trace.h>
index c7ff7fd9bd9e285aa6b5b6fe088c83ee6b9ba18a..c43fa8a86451bfe25d73a3fa2c545f08fc17192f 100644 (file)
@@ -83,10 +83,6 @@ ifneq ($(CONFIG_NET),)
       echo "lttng-probe-udp.o" ; fi;)
 endif # CONFIG_NET
 
-ifneq ($(CONFIG_SND_SOC),)
-  obj-$(CONFIG_LTTNG) += lttng-probe-asoc.o
-endif # CONFIG_SND_SOC
-
 ifneq ($(CONFIG_EXT3_FS),)
   ext3_dep = $(srctree)/fs/ext3/*.h
   ext3_dep_check = $(wildcard $(ext3_dep))
diff --git a/probes/lttng-probe-asoc.c b/probes/lttng-probe-asoc.c
deleted file mode 100644 (file)
index af82cdb..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
- *
- * probes/lttng-probe-asoc.c
- *
- * LTTng asoc probes.
- *
- * Copyright (C) 2010-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
- * Copyright (C) 2012 Mentor Graphics Corp.
- */
-
-#include <linux/module.h>
-#include <sound/jack.h>
-#include <sound/soc.h>
-#include <lttng-tracer.h>
-
-/*
- * Create the tracepoint static inlines from the kernel to validate that our
- * trace event macros match the kernel we run on.
- */
-#include <trace/events/asoc.h>
-
-/*
- * Create LTTng tracepoint probes.
- */
-#define LTTNG_PACKAGE_BUILD
-#define CREATE_TRACE_POINTS
-#define TRACE_INCLUDE_PATH instrumentation/events/lttng-module
-
-#include <instrumentation/events/lttng-module/asoc.h>
-
-MODULE_LICENSE("GPL and additional rights");
-MODULE_AUTHOR("Wade Farnsworth <wade_farnsworth@mentor.com>");
-MODULE_AUTHOR("Paul Woegerer <paul_woegerer@mentor.com>");
-MODULE_AUTHOR("Andrew Gabbasov <andrew_gabbasov@mentor.com>");
-MODULE_DESCRIPTION("LTTng asoc probes");
-MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "."
-       __stringify(LTTNG_MODULES_MINOR_VERSION) "."
-       __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION)
-       LTTNG_MODULES_EXTRAVERSION);
This page took 0.030393 seconds and 4 git commands to generate.