/** * struct pt_buffer - buffer configuration; one buffer per task_struct or * cpu, depending on perf event configuration * @tables: list of ToPA tables in this buffer * @first: shorthand for first topa table * @last: shorthand for last topa table * @cur: current topa table * @nr_pages: buffer size in pages * @cur_idx: current output region's index within @cur table * @output_off: offset within the current output region * @data_size: running total of the amount of data in this buffer * @lost: if data was lost/truncated * @head: logical write offset inside the buffer * @snapshot: if this is for a snapshot/overwrite counter * @single: use Single Range Output instead of ToPA * @wrapped: buffer advance wrapped back to the first topa table * @stop_pos: STOP topa entry index * @intr_pos: INT topa entry index * @stop_te: STOP topa entry pointer * @intr_te: INT topa entry pointer * @data_pages: array of pages from perf * @topa_index: table of topa entries indexed by page offset
*/ struct pt_buffer { struct list_head tables; struct topa *first, *last, *cur; unsignedint cur_idx;
size_t output_off; unsignedlong nr_pages;
local_t data_size;
local64_t head; bool snapshot; bool single; bool wrapped; long stop_pos, intr_pos; struct topa_entry *stop_te, *intr_te; void **data_pages;
};
#define PT_FILTERS_NUM 4
/** * struct pt_filter - IP range filter configuration * @msr_a: range start, goes to RTIT_ADDRn_A * @msr_b: range end, goes to RTIT_ADDRn_B * @config: 4-bit field in RTIT_CTL
*/ struct pt_filter { unsignedlong msr_a; unsignedlong msr_b; unsignedlong config;
};
/** * struct pt_filters - IP range filtering context * @filter: filters defined for this context * @nr_filters: number of defined filters in the @filter array
*/ struct pt_filters { struct pt_filter filter[PT_FILTERS_NUM]; unsignedint nr_filters;
};
/** * struct pt - per-cpu pt context * @handle: perf output handle * @filters: last configured filters * @handle_nmi: do handle PT PMI on this cpu, there's an active event * @vmx_on: 1 if VMX is ON on this cpu * @pause_allowed: PERF_EF_PAUSE is allowed to stop tracing * @resume_allowed: PERF_EF_RESUME is allowed to start tracing * @output_base: cached RTIT_OUTPUT_BASE MSR value * @output_mask: cached RTIT_OUTPUT_MASK MSR value
*/ struct pt { struct perf_output_handle handle; struct pt_filters filters; int handle_nmi; int vmx_on; int pause_allowed; int resume_allowed;
u64 output_base;
u64 output_mask;
};
#endif/* __INTEL_PT_H__ */
Messung V0.5
¤ Dauer der Verarbeitung: 0.2 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.