3 #include <traceevent/event-parse.h> 9 int size,
bool should_be_signed)
16 pr_debug(
"%s: \"%s\" field not found!\n", evsel->
name, name);
20 is_signed = !!(field->flags | FIELD_IS_SIGNED);
21 if (should_be_signed && !is_signed) {
22 pr_debug(
"%s: \"%s\" signedness(%d) is wrong, should be %d\n",
23 evsel->
name, name, is_signed, should_be_signed);
27 if (field->size != size) {
28 pr_debug(
"%s: \"%s\" size (%d) should be %d!\n",
29 evsel->
name, name, field->size, size);
42 pr_debug(
"perf_evsel__newtp failed with %ld\n", PTR_ERR(evsel));
72 pr_debug(
"perf_evsel__newtp failed with %ld\n", PTR_ERR(evsel));
void perf_evsel__delete(struct perf_evsel *evsel)
#define pr_debug(fmt,...)
int test__perf_evsel__tp_sched_test(struct test *test __maybe_unused, int subtest __maybe_unused)
static int perf_evsel__test_field(struct perf_evsel *evsel, const char *name, int size, bool should_be_signed)
static struct perf_evsel * perf_evsel__newtp(const char *sys, const char *name)
struct format_field * perf_evsel__field(struct perf_evsel *evsel, const char *name)