diff options
author | Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com> | 2018-09-19 14:56:45 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-09-19 16:13:15 -0400 |
commit | 2c92f9828b3ca4e82e7ceffeea76c6fba4044acc (patch) | |
tree | 7d5da2f8651e0d9ea1358d2e2bf66936bed0f279 /tools/perf/util/evsel.c | |
parent | 4963b0f88bb91ed0122f7b08876ae89fcafb2842 (diff) |
tools lib traceevent, perf tools: Rename struct format{_field} to struct tep_format{_field}
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_". This renames struct format to
struct tep_format and struct format_field to struct tep_format_field
Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>
Cc: linux-trace-devel@vger.kernel.org
Link: http://lkml.kernel.org/r/20180919185722.661319373@goodmis.org
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/evsel.c')
-rw-r--r-- | tools/perf/util/evsel.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index 4ec909d57e9c..751c98a2e336 100644 --- a/tools/perf/util/evsel.c +++ b/tools/perf/util/evsel.c | |||
@@ -2682,7 +2682,7 @@ int perf_event__synthesize_sample(union perf_event *event, u64 type, | |||
2682 | return 0; | 2682 | return 0; |
2683 | } | 2683 | } |
2684 | 2684 | ||
2685 | struct format_field *perf_evsel__field(struct perf_evsel *evsel, const char *name) | 2685 | struct tep_format_field *perf_evsel__field(struct perf_evsel *evsel, const char *name) |
2686 | { | 2686 | { |
2687 | return tep_find_field(evsel->tp_format, name); | 2687 | return tep_find_field(evsel->tp_format, name); |
2688 | } | 2688 | } |
@@ -2690,7 +2690,7 @@ struct format_field *perf_evsel__field(struct perf_evsel *evsel, const char *nam | |||
2690 | void *perf_evsel__rawptr(struct perf_evsel *evsel, struct perf_sample *sample, | 2690 | void *perf_evsel__rawptr(struct perf_evsel *evsel, struct perf_sample *sample, |
2691 | const char *name) | 2691 | const char *name) |
2692 | { | 2692 | { |
2693 | struct format_field *field = perf_evsel__field(evsel, name); | 2693 | struct tep_format_field *field = perf_evsel__field(evsel, name); |
2694 | int offset; | 2694 | int offset; |
2695 | 2695 | ||
2696 | if (!field) | 2696 | if (!field) |
@@ -2706,7 +2706,7 @@ void *perf_evsel__rawptr(struct perf_evsel *evsel, struct perf_sample *sample, | |||
2706 | return sample->raw_data + offset; | 2706 | return sample->raw_data + offset; |
2707 | } | 2707 | } |
2708 | 2708 | ||
2709 | u64 format_field__intval(struct format_field *field, struct perf_sample *sample, | 2709 | u64 format_field__intval(struct tep_format_field *field, struct perf_sample *sample, |
2710 | bool needs_swap) | 2710 | bool needs_swap) |
2711 | { | 2711 | { |
2712 | u64 value; | 2712 | u64 value; |
@@ -2748,7 +2748,7 @@ u64 format_field__intval(struct format_field *field, struct perf_sample *sample, | |||
2748 | u64 perf_evsel__intval(struct perf_evsel *evsel, struct perf_sample *sample, | 2748 | u64 perf_evsel__intval(struct perf_evsel *evsel, struct perf_sample *sample, |
2749 | const char *name) | 2749 | const char *name) |
2750 | { | 2750 | { |
2751 | struct format_field *field = perf_evsel__field(evsel, name); | 2751 | struct tep_format_field *field = perf_evsel__field(evsel, name); |
2752 | 2752 | ||
2753 | if (!field) | 2753 | if (!field) |
2754 | return 0; | 2754 | return 0; |