[][src]Crate libipt_sys

Structs

__BindgenBitfieldUnit
pt_asid

An Intel PT address space identifier.

pt_block

A block of instructions.

pt_block_decoder
pt_conf_addr_filter

The address filter configuration.

pt_conf_addr_filter__bindgen_ty_1__bindgen_ty_1
pt_conf_flags

A collection of decoder-specific configuration flags.

pt_conf_flags__bindgen_ty_1__bindgen_ty_1

Flags for the block decoder.

pt_conf_flags__bindgen_ty_1__bindgen_ty_2

Flags for the instruction flow decoder.

pt_conf_flags__bindgen_ty_1__bindgen_ty_3

Flags for the query decoder.

pt_config

An Intel PT decoder configuration.

pt_config__bindgen_ty_1

An optional callback for handling unknown packets.

pt_cpu

A cpu identifier.

pt_encoder
pt_errata

A collection of Intel PT errata.

pt_event

An event.

pt_event__bindgen_ty_1__bindgen_ty_1

Event: enabled.

pt_event__bindgen_ty_1__bindgen_ty_2

Event: disabled.

pt_event__bindgen_ty_1__bindgen_ty_3

Event: async disabled.

pt_event__bindgen_ty_1__bindgen_ty_4

Event: async branch.

pt_event__bindgen_ty_1__bindgen_ty_5

Event: paging.

pt_event__bindgen_ty_1__bindgen_ty_6

Event: async paging.

pt_event__bindgen_ty_1__bindgen_ty_7

Event: overflow.

pt_event__bindgen_ty_1__bindgen_ty_8

Event: exec mode.

pt_event__bindgen_ty_1__bindgen_ty_9

Event: tsx.

pt_event__bindgen_ty_1__bindgen_ty_10

Event: vmcs.

pt_event__bindgen_ty_1__bindgen_ty_11

Event: async vmcs.

pt_event__bindgen_ty_1__bindgen_ty_12

Event: execution stopped.

pt_event__bindgen_ty_1__bindgen_ty_13

Event: mwait.

pt_event__bindgen_ty_1__bindgen_ty_14

Event: power state entry.

pt_event__bindgen_ty_1__bindgen_ty_15

Event: power state exit.

pt_event__bindgen_ty_1__bindgen_ty_16

Event: ptwrite.

pt_event__bindgen_ty_1__bindgen_ty_17

Event: tick.

pt_event__bindgen_ty_1__bindgen_ty_18

Event: cbr.

pt_event__bindgen_ty_1__bindgen_ty_19

Event: mnt.

pt_image

The traced memory image.

pt_image_section_cache

A cache of traced image sections.

pt_insn

A single traced instruction.

pt_insn_decoder
pt_packet

An Intel PT packet.

pt_packet_cbr

A CBR packet.

pt_packet_cyc

A CYC packet.

pt_packet_decoder
pt_packet_exstop

A EXSTOP packet.

pt_packet_ip

A packet with IP payload.

pt_packet_mnt

A MNT packet.

pt_packet_mode

A mode packet.

pt_packet_mode_exec

A mode.exec packet.

pt_packet_mode_tsx

A mode.tsx packet.

pt_packet_mtc

A MTC packet.

pt_packet_mwait

A MWAIT packet.

pt_packet_pip

A PIP packet.

pt_packet_ptw

A PTW packet.

pt_packet_pwre

A PWRE packet.

pt_packet_pwrx

A PWRX packet.

pt_packet_tma

A TMA packet.

pt_packet_tnt

A TNT-8 or TNT-64 packet.

pt_packet_tsc

A TSC packet.

pt_packet_unknown

An unknown packet.

pt_packet_vmcs

A VMCS packet.

pt_query_decoder
pt_version

The library version.

Constants

pt_asid_no_cr3
pt_asid_no_vmcs
pt_cpu_vendor_pcv_intel
pt_cpu_vendor_pcv_unknown
pt_error_code_pte_bad_config
pt_error_code_pte_bad_context
pt_error_code_pte_bad_cpu
pt_error_code_pte_bad_file
pt_error_code_pte_bad_image
pt_error_code_pte_bad_insn
pt_error_code_pte_bad_lock
pt_error_code_pte_bad_opc
pt_error_code_pte_bad_packet
pt_error_code_pte_bad_query
pt_error_code_pte_bad_retcomp
pt_error_code_pte_bad_status_update
pt_error_code_pte_eos
pt_error_code_pte_event_ignored
pt_error_code_pte_internal
pt_error_code_pte_invalid
pt_error_code_pte_ip_suppressed
pt_error_code_pte_no_cbr
pt_error_code_pte_no_enable
pt_error_code_pte_no_time
pt_error_code_pte_noip
pt_error_code_pte_nomap
pt_error_code_pte_nomem
pt_error_code_pte_nosync
pt_error_code_pte_not_supported
pt_error_code_pte_ok
pt_error_code_pte_overflow
pt_error_code_pte_retstack_empty
pt_event_type_ptev_async_branch
pt_event_type_ptev_async_disabled
pt_event_type_ptev_async_paging
pt_event_type_ptev_async_vmcs
pt_event_type_ptev_cbr
pt_event_type_ptev_disabled
pt_event_type_ptev_enabled
pt_event_type_ptev_exec_mode
pt_event_type_ptev_exstop
pt_event_type_ptev_mnt
pt_event_type_ptev_mwait
pt_event_type_ptev_overflow
pt_event_type_ptev_paging
pt_event_type_ptev_ptwrite
pt_event_type_ptev_pwre
pt_event_type_ptev_pwrx
pt_event_type_ptev_stop
pt_event_type_ptev_tick
pt_event_type_ptev_tsx
pt_event_type_ptev_vmcs
pt_exec_mode_ptem_16bit
pt_exec_mode_ptem_32bit
pt_exec_mode_ptem_64bit
pt_exec_mode_ptem_unknown
pt_insn_class_ptic_call
pt_insn_class_ptic_cond_jump
pt_insn_class_ptic_error
pt_insn_class_ptic_far_call
pt_insn_class_ptic_far_jump
pt_insn_class_ptic_far_return
pt_insn_class_ptic_jump
pt_insn_class_ptic_other
pt_insn_class_ptic_ptwrite
pt_insn_class_ptic_return
pt_ip_compression_pt_ipc_full
pt_ip_compression_pt_ipc_sext_48
pt_ip_compression_pt_ipc_suppressed
pt_ip_compression_pt_ipc_update_16
pt_ip_compression_pt_ipc_update_32
pt_ip_compression_pt_ipc_update_48
pt_max_insn_size
pt_mode_leaf_pt_mol_exec
pt_mode_leaf_pt_mol_tsx
pt_packet_type_ppt_cbr
pt_packet_type_ppt_cyc
pt_packet_type_ppt_exstop
pt_packet_type_ppt_fup
pt_packet_type_ppt_invalid
pt_packet_type_ppt_mnt
pt_packet_type_ppt_mode
pt_packet_type_ppt_mtc
pt_packet_type_ppt_mwait
pt_packet_type_ppt_ovf
pt_packet_type_ppt_pad
pt_packet_type_ppt_pip
pt_packet_type_ppt_psb
pt_packet_type_ppt_psbend
pt_packet_type_ppt_ptw
pt_packet_type_ppt_pwre
pt_packet_type_ppt_pwrx
pt_packet_type_ppt_stop
pt_packet_type_ppt_tip
pt_packet_type_ppt_tip_pgd
pt_packet_type_ppt_tip_pge
pt_packet_type_ppt_tma
pt_packet_type_ppt_tnt_8
pt_packet_type_ppt_tnt_64
pt_packet_type_ppt_tsc
pt_packet_type_ppt_unknown
pt_packet_type_ppt_vmcs
pt_status_flag_pts_eos

There is no more trace data available.

pt_status_flag_pts_event_pending

There is an event pending.

pt_status_flag_pts_ip_suppressed

The address has been suppressed.

Functions

pt_alloc_encoder

Allocate an Intel PT packet encoder.

pt_blk_alloc_decoder

Allocate an Intel PT block decoder.

pt_blk_asid

Return the current address space identifier.

pt_blk_core_bus_ratio

Return the current core bus ratio.

pt_blk_event

Get the next pending event.

pt_blk_free_decoder

Free an Intel PT block decoder.

pt_blk_get_config
pt_blk_get_image

Get the traced image.

pt_blk_get_offset

Get the current decoder position.

pt_blk_get_sync_offset

Get the position of the last synchronization point.

pt_blk_next

Determine the next block of instructions.

pt_blk_set_image

Set the traced image.

pt_blk_sync_backward
pt_blk_sync_forward

Synchronize an Intel PT block decoder.

pt_blk_sync_set

Manually synchronize an Intel PT block decoder.

pt_blk_time

Return the current time.

pt_cpu_errata

Determine errata for a given cpu.

pt_enc_get_config
pt_enc_get_offset

Get the current packet encoder position.

pt_enc_next

Encode an Intel PT packet.

pt_enc_sync_set

Hard set synchronization point of an Intel PT packet encoder.

pt_errstr

Return a human readable error string.

pt_free_encoder

Free an Intel PT packet encoder.

pt_image_add_cached

Add a section from an image section cache.

pt_image_add_file

Add a new file section to the traced memory image.

pt_image_alloc

Allocate a traced memory image.

pt_image_copy

Copy an image.

pt_image_free

Free a traced memory image.

pt_image_name

Get the image name.

pt_image_remove_by_asid

Remove all sections loaded into an address space.

pt_image_remove_by_filename

Remove all sections loaded from a file.

pt_image_set_callback

Set the memory callback for the traced memory image.

pt_insn_alloc_decoder

Allocate an Intel PT instruction flow decoder.

pt_insn_asid

Return the current address space identifier.

pt_insn_core_bus_ratio

Return the current core bus ratio.

pt_insn_event

Get the next pending event.

pt_insn_free_decoder

Free an Intel PT instruction flow decoder.

pt_insn_get_config
pt_insn_get_image

Get the traced image.

pt_insn_get_offset

Get the current decoder position.

pt_insn_get_sync_offset

Get the position of the last synchronization point.

pt_insn_next

Determine the next instruction.

pt_insn_set_image

Set the traced image.

pt_insn_sync_backward
pt_insn_sync_forward

Synchronize an Intel PT instruction flow decoder.

pt_insn_sync_set

Manually synchronize an Intel PT instruction flow decoder.

pt_insn_time

Return the current time.

pt_iscache_add_file

Add a new file section to the traced memory image section cache.

pt_iscache_alloc

Allocate a traced memory image section cache.

pt_iscache_free

Free a traced memory image section cache.

pt_iscache_name

Get the image section cache name.

pt_iscache_read

Read memory from a cached file section

pt_iscache_set_limit

Set the image section cache limit.

pt_library_version

Return the library version.

pt_pkt_alloc_decoder

Allocate an Intel PT packet decoder.

pt_pkt_free_decoder

Free an Intel PT packet decoder.

pt_pkt_get_config
pt_pkt_get_offset

Get the current decoder position.

pt_pkt_get_sync_offset

Get the position of the last synchronization point.

pt_pkt_next

Decode the next packet and advance the decoder.

pt_pkt_sync_backward
pt_pkt_sync_forward

Synchronize an Intel PT packet decoder.

pt_pkt_sync_set

Hard set synchronization point of an Intel PT decoder.

pt_qry_alloc_decoder

Allocate an Intel PT query decoder.

pt_qry_cond_branch

Query whether the next unconditional branch has been taken.

pt_qry_core_bus_ratio

Return the current core bus ratio.

pt_qry_event

Query the next pending event.

pt_qry_free_decoder

Free an Intel PT query decoder.

pt_qry_get_config
pt_qry_get_offset

Get the current decoder position.

pt_qry_get_sync_offset

Get the position of the last synchronization point.

pt_qry_indirect_branch

Get the next indirect branch destination.

pt_qry_sync_backward
pt_qry_sync_forward

Synchronize an Intel PT query decoder.

pt_qry_sync_set

Manually synchronize an Intel PT query decoder.

pt_qry_time

Query the current time.

Type Definitions

__uint8_t
__uint16_t
__uint32_t
__uint64_t
_bindgen_ty_1

The maximal size of an instruction.

pt_cpu_vendor

A cpu vendor.

pt_error_code

Error codes.

pt_event_type

Event types.

pt_exec_mode

An execution mode.

pt_insn_class

The instruction class.

pt_ip_compression

The IP compression.

pt_mode_leaf

Mode packet leaves.

pt_packet_type

Intel PT packet types.

pt_status_flag

Decoder status flags.

read_memory_callback_t

A read memory callback function.

Unions

pt_conf_addr_filter__bindgen_ty_1

The address filter configuration.

pt_conf_flags__bindgen_ty_1

The decoder variant.

pt_event__bindgen_ty_1

Event specific data.

pt_packet__bindgen_ty_1

Packet specific data.

pt_packet_mode__bindgen_ty_1

Mode bits.