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>
This commit is contained in:

committed by
Arnaldo Carvalho de Melo

parent
4963b0f88b
commit
2c92f9828b
@@ -2682,7 +2682,7 @@ int perf_event__synthesize_sample(union perf_event *event, u64 type,
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct format_field *perf_evsel__field(struct perf_evsel *evsel, const char *name)
|
||||
struct tep_format_field *perf_evsel__field(struct perf_evsel *evsel, const char *name)
|
||||
{
|
||||
return tep_find_field(evsel->tp_format, name);
|
||||
}
|
||||
@@ -2690,7 +2690,7 @@ struct format_field *perf_evsel__field(struct perf_evsel *evsel, const char *nam
|
||||
void *perf_evsel__rawptr(struct perf_evsel *evsel, struct perf_sample *sample,
|
||||
const char *name)
|
||||
{
|
||||
struct format_field *field = perf_evsel__field(evsel, name);
|
||||
struct tep_format_field *field = perf_evsel__field(evsel, name);
|
||||
int offset;
|
||||
|
||||
if (!field)
|
||||
@@ -2706,7 +2706,7 @@ void *perf_evsel__rawptr(struct perf_evsel *evsel, struct perf_sample *sample,
|
||||
return sample->raw_data + offset;
|
||||
}
|
||||
|
||||
u64 format_field__intval(struct format_field *field, struct perf_sample *sample,
|
||||
u64 format_field__intval(struct tep_format_field *field, struct perf_sample *sample,
|
||||
bool needs_swap)
|
||||
{
|
||||
u64 value;
|
||||
@@ -2748,7 +2748,7 @@ u64 format_field__intval(struct format_field *field, struct perf_sample *sample,
|
||||
u64 perf_evsel__intval(struct perf_evsel *evsel, struct perf_sample *sample,
|
||||
const char *name)
|
||||
{
|
||||
struct format_field *field = perf_evsel__field(evsel, name);
|
||||
struct tep_format_field *field = perf_evsel__field(evsel, name);
|
||||
|
||||
if (!field)
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user