1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * auxtrace.h: AUX area trace support
4 * Copyright (c) 2013-2015, Intel Corporation.
7 #ifndef __PERF_AUXTRACE_H
8 #define __PERF_AUXTRACE_H
10 #include <sys/types.h>
14 #include <stdio.h> // FILE
15 #include <linux/list.h>
16 #include <linux/perf_event.h>
17 #include <linux/types.h>
18 #include <asm/bitsperlong.h>
19 #include <asm/barrier.h>
30 struct perf_record_auxtrace_error;
31 struct perf_record_auxtrace_info;
35 enum auxtrace_error_type {
36 PERF_AUXTRACE_ERROR_ITRACE = 1,
37 PERF_AUXTRACE_ERROR_MAX
40 /* Auxtrace records must have the same alignment as perf event records */
41 #define PERF_AUXTRACE_RECORD_ALIGNMENT 8
44 PERF_AUXTRACE_UNKNOWN,
45 PERF_AUXTRACE_INTEL_PT,
46 PERF_AUXTRACE_INTEL_BTS,
48 PERF_AUXTRACE_ARM_SPE,
49 PERF_AUXTRACE_S390_CPUMSF,
52 enum itrace_period_type {
53 PERF_ITRACE_PERIOD_INSTRUCTIONS,
54 PERF_ITRACE_PERIOD_TICKS,
55 PERF_ITRACE_PERIOD_NANOSECS,
59 * struct itrace_synth_opts - AUX area tracing synthesis options.
60 * @set: indicates whether or not options have been set
61 * @default_no_sample: Default to no sampling.
62 * @inject: indicates the event (not just the sample) must be fully synthesized
63 * because 'perf inject' will write it out
64 * @instructions: whether to synthesize 'instructions' events
65 * @branches: whether to synthesize 'branches' events
66 * (branch misses only for Arm SPE)
67 * @transactions: whether to synthesize events for transactions
68 * @ptwrites: whether to synthesize events for ptwrites
69 * @pwr_events: whether to synthesize power events
70 * @other_events: whether to synthesize other events recorded due to the use of
72 * @errors: whether to synthesize decoder error events
73 * @dont_decode: whether to skip decoding entirely
74 * @log: write a decoding log
75 * @calls: limit branch samples to calls (can be combined with @returns)
76 * @returns: limit branch samples to returns (can be combined with @calls)
77 * @callchain: add callchain to 'instructions' events
78 * @add_callchain: add callchain to existing event records
79 * @thread_stack: feed branches to the thread_stack
80 * @last_branch: add branch context to 'instruction' events
81 * @add_last_branch: add branch context to existing event records
82 * @flc: whether to synthesize first level cache events
83 * @llc: whether to synthesize last level cache events
84 * @tlb: whether to synthesize TLB events
85 * @remote_access: whether to synthesize remote access events
86 * @callchain_sz: maximum callchain size
87 * @last_branch_sz: branch context size
88 * @period: 'instructions' events period
89 * @period_type: 'instructions' events period type
90 * @initial_skip: skip N events at the beginning.
91 * @cpu_bitmap: CPUs for which to synthesize events, or NULL for all
92 * @ptime_range: time intervals to trace or NULL
93 * @range_num: number of time intervals to trace
95 struct itrace_synth_opts {
97 bool default_no_sample;
114 bool add_last_branch;
119 unsigned int callchain_sz;
120 unsigned int last_branch_sz;
121 unsigned long long period;
122 enum itrace_period_type period_type;
123 unsigned long initial_skip;
124 unsigned long *cpu_bitmap;
125 struct perf_time_interval *ptime_range;
130 * struct auxtrace_index_entry - indexes a AUX area tracing event within a
132 * @file_offset: offset within the perf.data file
133 * @sz: size of the event
135 struct auxtrace_index_entry {
140 #define PERF_AUXTRACE_INDEX_ENTRY_COUNT 256
143 * struct auxtrace_index - index of AUX area tracing events within a perf.data
145 * @list: linking a number of arrays of entries
146 * @nr: number of entries
147 * @entries: array of entries
149 struct auxtrace_index {
150 struct list_head list;
152 struct auxtrace_index_entry entries[PERF_AUXTRACE_INDEX_ENTRY_COUNT];
156 * struct auxtrace - session callbacks to allow AUX area data decoding.
157 * @process_event: lets the decoder see all session events
158 * @process_auxtrace_event: process a PERF_RECORD_AUXTRACE event
159 * @queue_data: queue an AUX sample or PERF_RECORD_AUXTRACE event for later
161 * @dump_auxtrace_sample: dump AUX area sample data
162 * @flush_events: process any remaining data
163 * @free_events: free resources associated with event processing
164 * @free: free resources associated with the session
167 int (*process_event)(struct perf_session *session,
168 union perf_event *event,
169 struct perf_sample *sample,
170 struct perf_tool *tool);
171 int (*process_auxtrace_event)(struct perf_session *session,
172 union perf_event *event,
173 struct perf_tool *tool);
174 int (*queue_data)(struct perf_session *session,
175 struct perf_sample *sample, union perf_event *event,
177 void (*dump_auxtrace_sample)(struct perf_session *session,
178 struct perf_sample *sample);
179 int (*flush_events)(struct perf_session *session,
180 struct perf_tool *tool);
181 void (*free_events)(struct perf_session *session);
182 void (*free)(struct perf_session *session);
183 bool (*evsel_is_auxtrace)(struct perf_session *session,
184 struct evsel *evsel);
188 * struct auxtrace_buffer - a buffer containing AUX area tracing data.
189 * @list: buffers are queued in a list held by struct auxtrace_queue
190 * @size: size of the buffer in bytes
191 * @pid: in per-thread mode, the pid this buffer is associated with
192 * @tid: in per-thread mode, the tid this buffer is associated with
193 * @cpu: in per-cpu mode, the cpu this buffer is associated with
194 * @data: actual buffer data (can be null if the data has not been loaded)
195 * @data_offset: file offset at which the buffer can be read
196 * @mmap_addr: mmap address at which the buffer can be read
197 * @mmap_size: size of the mmap at @mmap_addr
198 * @data_needs_freeing: @data was malloc'd so free it when it is no longer
200 * @consecutive: the original data was split up and this buffer is consecutive
201 * to the previous buffer
202 * @offset: offset as determined by aux_head / aux_tail members of struct
203 * perf_event_mmap_page
204 * @reference: an implementation-specific reference determined when the data is
206 * @buffer_nr: used to number each buffer
207 * @use_size: implementation actually only uses this number of bytes
208 * @use_data: implementation actually only uses data starting at this address
210 struct auxtrace_buffer {
211 struct list_head list;
220 bool data_needs_freeing;
230 * struct auxtrace_queue - a queue of AUX area tracing data buffers.
231 * @head: head of buffer list
232 * @tid: in per-thread mode, the tid this queue is associated with
233 * @cpu: in per-cpu mode, the cpu this queue is associated with
234 * @set: %true once this queue has been dedicated to a specific thread or cpu
235 * @priv: implementation-specific data
237 struct auxtrace_queue {
238 struct list_head head;
246 * struct auxtrace_queues - an array of AUX area tracing queues.
247 * @queue_array: array of queues
248 * @nr_queues: number of queues
249 * @new_data: set whenever new data is queued
250 * @populated: queues have been fully populated using the auxtrace_index
251 * @next_buffer_nr: used to number each buffer
253 struct auxtrace_queues {
254 struct auxtrace_queue *queue_array;
255 unsigned int nr_queues;
262 * struct auxtrace_heap_item - element of struct auxtrace_heap.
263 * @queue_nr: queue number
264 * @ordinal: value used for sorting (lowest ordinal is top of the heap) expected
267 struct auxtrace_heap_item {
268 unsigned int queue_nr;
273 * struct auxtrace_heap - a heap suitable for sorting AUX area tracing queues.
274 * @heap_array: the heap
275 * @heap_cnt: the number of elements in the heap
276 * @heap_sz: maximum number of elements (grows as needed)
278 struct auxtrace_heap {
279 struct auxtrace_heap_item *heap_array;
280 unsigned int heap_cnt;
281 unsigned int heap_sz;
285 * struct auxtrace_mmap - records an mmap of the auxtrace buffer.
286 * @base: address of mapped area
287 * @userpg: pointer to buffer's perf_event_mmap_page
288 * @mask: %0 if @len is not a power of two, otherwise (@len - %1)
289 * @len: size of mapped area
290 * @prev: previous aux_head
291 * @idx: index of this mmap
292 * @tid: tid for a per-thread mmap (also set if there is only 1 tid on a per-cpu
294 * @cpu: cpu number for a per-cpu mmap otherwise %-1
296 struct auxtrace_mmap {
308 * struct auxtrace_mmap_params - parameters to set up struct auxtrace_mmap.
309 * @mask: %0 if @len is not a power of two, otherwise (@len - %1)
310 * @offset: file offset of mapped area
311 * @len: size of mapped area
312 * @prot: mmap memory protection
313 * @idx: index of this mmap
314 * @tid: tid for a per-thread mmap (also set if there is only 1 tid on a per-cpu
316 * @cpu: cpu number for a per-cpu mmap otherwise %-1
318 struct auxtrace_mmap_params {
329 * struct auxtrace_record - callbacks for recording AUX area data.
330 * @recording_options: validate and process recording options
331 * @info_priv_size: return the size of the private data in auxtrace_info_event
332 * @info_fill: fill-in the private data in auxtrace_info_event
333 * @free: free this auxtrace record structure
334 * @snapshot_start: starting a snapshot
335 * @snapshot_finish: finishing a snapshot
336 * @find_snapshot: find data to snapshot within auxtrace mmap
337 * @parse_snapshot_options: parse snapshot options
338 * @reference: provide a 64-bit reference number for auxtrace_event
339 * @read_finish: called after reading from an auxtrace mmap
340 * @alignment: alignment (if any) for AUX area data
341 * @default_aux_sample_size: default sample size for --aux sample option
342 * @pmu: associated pmu
343 * @evlist: selected events list
345 struct auxtrace_record {
346 int (*recording_options)(struct auxtrace_record *itr,
347 struct evlist *evlist,
348 struct record_opts *opts);
349 size_t (*info_priv_size)(struct auxtrace_record *itr,
350 struct evlist *evlist);
351 int (*info_fill)(struct auxtrace_record *itr,
352 struct perf_session *session,
353 struct perf_record_auxtrace_info *auxtrace_info,
355 void (*free)(struct auxtrace_record *itr);
356 int (*snapshot_start)(struct auxtrace_record *itr);
357 int (*snapshot_finish)(struct auxtrace_record *itr);
358 int (*find_snapshot)(struct auxtrace_record *itr, int idx,
359 struct auxtrace_mmap *mm, unsigned char *data,
360 u64 *head, u64 *old);
361 int (*parse_snapshot_options)(struct auxtrace_record *itr,
362 struct record_opts *opts,
364 u64 (*reference)(struct auxtrace_record *itr);
365 int (*read_finish)(struct auxtrace_record *itr, int idx);
366 unsigned int alignment;
367 unsigned int default_aux_sample_size;
368 struct perf_pmu *pmu;
369 struct evlist *evlist;
373 * struct addr_filter - address filter.
375 * @range: true if it is a range filter
376 * @start: true if action is 'filter' or 'start'
377 * @action: 'filter', 'start' or 'stop' ('tracestop' is accepted but converted
379 * @sym_from: symbol name for the filter address
380 * @sym_to: symbol name that determines the filter size
381 * @sym_from_idx: selects n'th from symbols with the same name (0 means global
382 * and less than 0 means symbol must be unique)
383 * @sym_to_idx: same as @sym_from_idx but for @sym_to
384 * @addr: filter address
385 * @size: filter region size (for range filters)
386 * @filename: DSO file name or NULL for the kernel
387 * @str: allocated string that contains the other string members
390 struct list_head list;
394 const char *sym_from;
400 const char *filename;
405 * struct addr_filters - list of address filters.
406 * @head: list of address filters
407 * @cnt: number of address filters
409 struct addr_filters {
410 struct list_head head;
414 struct auxtrace_cache;
416 #ifdef HAVE_AUXTRACE_SUPPORT
419 * In snapshot mode the mmapped page is read-only which makes using
420 * __sync_val_compare_and_swap() problematic. However, snapshot mode expects
421 * the buffer is not updated while the snapshot is made (e.g. Intel PT disables
422 * the event) so there is not a race anyway.
424 static inline u64 auxtrace_mmap__read_snapshot_head(struct auxtrace_mmap *mm)
426 struct perf_event_mmap_page *pc = mm->userpg;
427 u64 head = READ_ONCE(pc->aux_head);
429 /* Ensure all reads are done after we read the head */
434 static inline u64 auxtrace_mmap__read_head(struct auxtrace_mmap *mm)
436 struct perf_event_mmap_page *pc = mm->userpg;
437 #if BITS_PER_LONG == 64 || !defined(HAVE_SYNC_COMPARE_AND_SWAP_SUPPORT)
438 u64 head = READ_ONCE(pc->aux_head);
440 u64 head = __sync_val_compare_and_swap(&pc->aux_head, 0, 0);
443 /* Ensure all reads are done after we read the head */
448 static inline void auxtrace_mmap__write_tail(struct auxtrace_mmap *mm, u64 tail)
450 struct perf_event_mmap_page *pc = mm->userpg;
451 #if BITS_PER_LONG != 64 && defined(HAVE_SYNC_COMPARE_AND_SWAP_SUPPORT)
455 /* Ensure all reads are done before we write the tail out */
457 #if BITS_PER_LONG == 64 || !defined(HAVE_SYNC_COMPARE_AND_SWAP_SUPPORT)
461 old_tail = __sync_val_compare_and_swap(&pc->aux_tail, 0, 0);
462 } while (!__sync_bool_compare_and_swap(&pc->aux_tail, old_tail, tail));
466 int auxtrace_mmap__mmap(struct auxtrace_mmap *mm,
467 struct auxtrace_mmap_params *mp,
468 void *userpg, int fd);
469 void auxtrace_mmap__munmap(struct auxtrace_mmap *mm);
470 void auxtrace_mmap_params__init(struct auxtrace_mmap_params *mp,
471 off_t auxtrace_offset,
472 unsigned int auxtrace_pages,
473 bool auxtrace_overwrite);
474 void auxtrace_mmap_params__set_idx(struct auxtrace_mmap_params *mp,
475 struct evlist *evlist, int idx,
478 typedef int (*process_auxtrace_t)(struct perf_tool *tool,
480 union perf_event *event, void *data1,
481 size_t len1, void *data2, size_t len2);
483 int auxtrace_mmap__read(struct mmap *map, struct auxtrace_record *itr,
484 struct perf_tool *tool, process_auxtrace_t fn);
486 int auxtrace_mmap__read_snapshot(struct mmap *map,
487 struct auxtrace_record *itr,
488 struct perf_tool *tool, process_auxtrace_t fn,
489 size_t snapshot_size);
491 int auxtrace_queues__init(struct auxtrace_queues *queues);
492 int auxtrace_queues__add_event(struct auxtrace_queues *queues,
493 struct perf_session *session,
494 union perf_event *event, off_t data_offset,
495 struct auxtrace_buffer **buffer_ptr);
496 struct auxtrace_queue *
497 auxtrace_queues__sample_queue(struct auxtrace_queues *queues,
498 struct perf_sample *sample,
499 struct perf_session *session);
500 int auxtrace_queues__add_sample(struct auxtrace_queues *queues,
501 struct perf_session *session,
502 struct perf_sample *sample, u64 data_offset,
504 void auxtrace_queues__free(struct auxtrace_queues *queues);
505 int auxtrace_queues__process_index(struct auxtrace_queues *queues,
506 struct perf_session *session);
507 int auxtrace_queue_data(struct perf_session *session, bool samples,
509 struct auxtrace_buffer *auxtrace_buffer__next(struct auxtrace_queue *queue,
510 struct auxtrace_buffer *buffer);
511 void *auxtrace_buffer__get_data(struct auxtrace_buffer *buffer, int fd);
512 void auxtrace_buffer__put_data(struct auxtrace_buffer *buffer);
513 void auxtrace_buffer__drop_data(struct auxtrace_buffer *buffer);
514 void auxtrace_buffer__free(struct auxtrace_buffer *buffer);
516 int auxtrace_heap__add(struct auxtrace_heap *heap, unsigned int queue_nr,
518 void auxtrace_heap__pop(struct auxtrace_heap *heap);
519 void auxtrace_heap__free(struct auxtrace_heap *heap);
521 struct auxtrace_cache_entry {
522 struct hlist_node hash;
526 struct auxtrace_cache *auxtrace_cache__new(unsigned int bits, size_t entry_size,
527 unsigned int limit_percent);
528 void auxtrace_cache__free(struct auxtrace_cache *auxtrace_cache);
529 void *auxtrace_cache__alloc_entry(struct auxtrace_cache *c);
530 void auxtrace_cache__free_entry(struct auxtrace_cache *c, void *entry);
531 int auxtrace_cache__add(struct auxtrace_cache *c, u32 key,
532 struct auxtrace_cache_entry *entry);
533 void auxtrace_cache__remove(struct auxtrace_cache *c, u32 key);
534 void *auxtrace_cache__lookup(struct auxtrace_cache *c, u32 key);
536 struct auxtrace_record *auxtrace_record__init(struct evlist *evlist,
539 int auxtrace_parse_snapshot_options(struct auxtrace_record *itr,
540 struct record_opts *opts,
542 int auxtrace_parse_sample_options(struct auxtrace_record *itr,
543 struct evlist *evlist,
544 struct record_opts *opts, const char *str);
545 int auxtrace_record__options(struct auxtrace_record *itr,
546 struct evlist *evlist,
547 struct record_opts *opts);
548 size_t auxtrace_record__info_priv_size(struct auxtrace_record *itr,
549 struct evlist *evlist);
550 int auxtrace_record__info_fill(struct auxtrace_record *itr,
551 struct perf_session *session,
552 struct perf_record_auxtrace_info *auxtrace_info,
554 void auxtrace_record__free(struct auxtrace_record *itr);
555 int auxtrace_record__snapshot_start(struct auxtrace_record *itr);
556 int auxtrace_record__snapshot_finish(struct auxtrace_record *itr, bool on_exit);
557 int auxtrace_record__find_snapshot(struct auxtrace_record *itr, int idx,
558 struct auxtrace_mmap *mm,
559 unsigned char *data, u64 *head, u64 *old);
560 u64 auxtrace_record__reference(struct auxtrace_record *itr);
561 int auxtrace_record__read_finish(struct auxtrace_record *itr, int idx);
563 int auxtrace_index__auxtrace_event(struct list_head *head, union perf_event *event,
565 int auxtrace_index__write(int fd, struct list_head *head);
566 int auxtrace_index__process(int fd, u64 size, struct perf_session *session,
568 void auxtrace_index__free(struct list_head *head);
570 void auxtrace_synth_error(struct perf_record_auxtrace_error *auxtrace_error, int type,
571 int code, int cpu, pid_t pid, pid_t tid, u64 ip,
572 const char *msg, u64 timestamp);
574 int perf_event__process_auxtrace_info(struct perf_session *session,
575 union perf_event *event);
576 s64 perf_event__process_auxtrace(struct perf_session *session,
577 union perf_event *event);
578 int perf_event__process_auxtrace_error(struct perf_session *session,
579 union perf_event *event);
580 int itrace_parse_synth_opts(const struct option *opt, const char *str,
582 void itrace_synth_opts__set_default(struct itrace_synth_opts *synth_opts,
585 size_t perf_event__fprintf_auxtrace_error(union perf_event *event, FILE *fp);
586 void perf_session__auxtrace_error_inc(struct perf_session *session,
587 union perf_event *event);
588 void events_stats__auxtrace_error_warn(const struct events_stats *stats);
590 void addr_filters__init(struct addr_filters *filts);
591 void addr_filters__exit(struct addr_filters *filts);
592 int addr_filters__parse_bare_filter(struct addr_filters *filts,
594 int auxtrace_parse_filters(struct evlist *evlist);
596 int auxtrace__process_event(struct perf_session *session, union perf_event *event,
597 struct perf_sample *sample, struct perf_tool *tool);
598 void auxtrace__dump_auxtrace_sample(struct perf_session *session,
599 struct perf_sample *sample);
600 int auxtrace__flush_events(struct perf_session *session, struct perf_tool *tool);
601 void auxtrace__free_events(struct perf_session *session);
602 void auxtrace__free(struct perf_session *session);
603 bool auxtrace__evsel_is_auxtrace(struct perf_session *session,
604 struct evsel *evsel);
606 #define ITRACE_HELP \
607 " i[period]: synthesize instructions events\n" \
608 " b: synthesize branches events (branch misses for Arm SPE)\n" \
609 " c: synthesize branches events (calls only)\n" \
610 " r: synthesize branches events (returns only)\n" \
611 " x: synthesize transactions events\n" \
612 " w: synthesize ptwrite events\n" \
613 " p: synthesize power events\n" \
614 " o: synthesize other events recorded due to the use\n" \
615 " of aux-output (refer to perf record)\n" \
616 " e: synthesize error events\n" \
617 " d: create a debug log\n" \
618 " f: synthesize first level cache events\n" \
619 " m: synthesize last level cache events\n" \
620 " t: synthesize TLB events\n" \
621 " a: synthesize remote access events\n" \
622 " g[len]: synthesize a call chain (use with i or x)\n" \
623 " G[len]: synthesize a call chain on existing event records\n" \
624 " l[len]: synthesize last branch entries (use with i or x)\n" \
625 " L[len]: synthesize last branch entries on existing event records\n" \
626 " sNUMBER: skip initial number of events\n" \
627 " PERIOD[ns|us|ms|i|t]: specify period to sample stream\n" \
628 " concatenate multiple options. Default is ibxwpe or cewp\n"
631 void itrace_synth_opts__set_time_range(struct itrace_synth_opts *opts,
632 struct perf_time_interval *ptime_range,
635 opts->ptime_range = ptime_range;
636 opts->range_num = range_num;
640 void itrace_synth_opts__clear_time_range(struct itrace_synth_opts *opts)
642 opts->ptime_range = NULL;
649 static inline struct auxtrace_record *
650 auxtrace_record__init(struct evlist *evlist __maybe_unused,
658 void auxtrace_record__free(struct auxtrace_record *itr __maybe_unused)
663 int auxtrace_record__options(struct auxtrace_record *itr __maybe_unused,
664 struct evlist *evlist __maybe_unused,
665 struct record_opts *opts __maybe_unused)
670 #define perf_event__process_auxtrace_info 0
671 #define perf_event__process_auxtrace 0
672 #define perf_event__process_auxtrace_error 0
675 void perf_session__auxtrace_error_inc(struct perf_session *session
677 union perf_event *event
683 void events_stats__auxtrace_error_warn(const struct events_stats *stats
689 int itrace_parse_synth_opts(const struct option *opt __maybe_unused,
690 const char *str __maybe_unused,
691 int unset __maybe_unused)
693 pr_err("AUX area tracing not supported\n");
698 int auxtrace_parse_snapshot_options(struct auxtrace_record *itr __maybe_unused,
699 struct record_opts *opts __maybe_unused,
704 pr_err("AUX area tracing not supported\n");
709 int auxtrace_parse_sample_options(struct auxtrace_record *itr __maybe_unused,
710 struct evlist *evlist __maybe_unused,
711 struct record_opts *opts __maybe_unused,
716 pr_err("AUX area tracing not supported\n");
721 int auxtrace__process_event(struct perf_session *session __maybe_unused,
722 union perf_event *event __maybe_unused,
723 struct perf_sample *sample __maybe_unused,
724 struct perf_tool *tool __maybe_unused)
730 void auxtrace__dump_auxtrace_sample(struct perf_session *session __maybe_unused,
731 struct perf_sample *sample __maybe_unused)
736 int auxtrace__flush_events(struct perf_session *session __maybe_unused,
737 struct perf_tool *tool __maybe_unused)
743 void auxtrace__free_events(struct perf_session *session __maybe_unused)
748 void auxtrace_cache__free(struct auxtrace_cache *auxtrace_cache __maybe_unused)
753 void auxtrace__free(struct perf_session *session __maybe_unused)
758 int auxtrace_index__write(int fd __maybe_unused,
759 struct list_head *head __maybe_unused)
765 int auxtrace_index__process(int fd __maybe_unused,
766 u64 size __maybe_unused,
767 struct perf_session *session __maybe_unused,
768 bool needs_swap __maybe_unused)
774 void auxtrace_index__free(struct list_head *head __maybe_unused)
779 bool auxtrace__evsel_is_auxtrace(struct perf_session *session __maybe_unused,
780 struct evsel *evsel __maybe_unused)
786 int auxtrace_parse_filters(struct evlist *evlist __maybe_unused)
791 int auxtrace_mmap__mmap(struct auxtrace_mmap *mm,
792 struct auxtrace_mmap_params *mp,
793 void *userpg, int fd);
794 void auxtrace_mmap__munmap(struct auxtrace_mmap *mm);
795 void auxtrace_mmap_params__init(struct auxtrace_mmap_params *mp,
796 off_t auxtrace_offset,
797 unsigned int auxtrace_pages,
798 bool auxtrace_overwrite);
799 void auxtrace_mmap_params__set_idx(struct auxtrace_mmap_params *mp,
800 struct evlist *evlist, int idx,
803 #define ITRACE_HELP ""
806 void itrace_synth_opts__set_time_range(struct itrace_synth_opts *opts
808 struct perf_time_interval *ptime_range
810 int range_num __maybe_unused)
815 void itrace_synth_opts__clear_time_range(struct itrace_synth_opts *opts