diff options
Diffstat (limited to 'tools/perf/util/session.c')
-rw-r--r-- | tools/perf/util/session.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index 82e0438a9160..5786e9c807c5 100644 --- a/tools/perf/util/session.c +++ b/tools/perf/util/session.c | |||
@@ -473,8 +473,8 @@ void perf_tool__fill_defaults(struct perf_tool *tool) | |||
473 | tool->context_switch = perf_event__process_switch; | 473 | tool->context_switch = perf_event__process_switch; |
474 | if (tool->ksymbol == NULL) | 474 | if (tool->ksymbol == NULL) |
475 | tool->ksymbol = perf_event__process_ksymbol; | 475 | tool->ksymbol = perf_event__process_ksymbol; |
476 | if (tool->bpf_event == NULL) | 476 | if (tool->bpf == NULL) |
477 | tool->bpf_event = perf_event__process_bpf_event; | 477 | tool->bpf = perf_event__process_bpf; |
478 | if (tool->read == NULL) | 478 | if (tool->read == NULL) |
479 | tool->read = process_event_sample_stub; | 479 | tool->read = process_event_sample_stub; |
480 | if (tool->throttle == NULL) | 480 | if (tool->throttle == NULL) |
@@ -1254,13 +1254,13 @@ static void dump_sample(struct evsel *evsel, union perf_event *event, | |||
1254 | 1254 | ||
1255 | static void dump_read(struct evsel *evsel, union perf_event *event) | 1255 | static void dump_read(struct evsel *evsel, union perf_event *event) |
1256 | { | 1256 | { |
1257 | struct read_event *read_event = &event->read; | 1257 | struct perf_record_read *read_event = &event->read; |
1258 | u64 read_format; | 1258 | u64 read_format; |
1259 | 1259 | ||
1260 | if (!dump_trace) | 1260 | if (!dump_trace) |
1261 | return; | 1261 | return; |
1262 | 1262 | ||
1263 | printf(": %d %d %s %" PRIu64 "\n", event->read.pid, event->read.tid, | 1263 | printf(": %d %d %s %" PRI_lu64 "\n", event->read.pid, event->read.tid, |
1264 | perf_evsel__name(evsel), | 1264 | perf_evsel__name(evsel), |
1265 | event->read.value); | 1265 | event->read.value); |
1266 | 1266 | ||
@@ -1270,13 +1270,13 @@ static void dump_read(struct evsel *evsel, union perf_event *event) | |||
1270 | read_format = evsel->core.attr.read_format; | 1270 | read_format = evsel->core.attr.read_format; |
1271 | 1271 | ||
1272 | if (read_format & PERF_FORMAT_TOTAL_TIME_ENABLED) | 1272 | if (read_format & PERF_FORMAT_TOTAL_TIME_ENABLED) |
1273 | printf("... time enabled : %" PRIu64 "\n", read_event->time_enabled); | 1273 | printf("... time enabled : %" PRI_lu64 "\n", read_event->time_enabled); |
1274 | 1274 | ||
1275 | if (read_format & PERF_FORMAT_TOTAL_TIME_RUNNING) | 1275 | if (read_format & PERF_FORMAT_TOTAL_TIME_RUNNING) |
1276 | printf("... time running : %" PRIu64 "\n", read_event->time_running); | 1276 | printf("... time running : %" PRI_lu64 "\n", read_event->time_running); |
1277 | 1277 | ||
1278 | if (read_format & PERF_FORMAT_ID) | 1278 | if (read_format & PERF_FORMAT_ID) |
1279 | printf("... id : %" PRIu64 "\n", read_event->id); | 1279 | printf("... id : %" PRI_lu64 "\n", read_event->id); |
1280 | } | 1280 | } |
1281 | 1281 | ||
1282 | static struct machine *machines__find_for_cpumode(struct machines *machines, | 1282 | static struct machine *machines__find_for_cpumode(struct machines *machines, |
@@ -1452,7 +1452,7 @@ static int machines__deliver_event(struct machines *machines, | |||
1452 | case PERF_RECORD_KSYMBOL: | 1452 | case PERF_RECORD_KSYMBOL: |
1453 | return tool->ksymbol(tool, event, sample, machine); | 1453 | return tool->ksymbol(tool, event, sample, machine); |
1454 | case PERF_RECORD_BPF_EVENT: | 1454 | case PERF_RECORD_BPF_EVENT: |
1455 | return tool->bpf_event(tool, event, sample, machine); | 1455 | return tool->bpf(tool, event, sample, machine); |
1456 | default: | 1456 | default: |
1457 | ++evlist->stats.nr_unknown_events; | 1457 | ++evlist->stats.nr_unknown_events; |
1458 | return -1; | 1458 | return -1; |