package typerex-binutils

  1. Overview
  2. Docs
type perf_type_id =
  1. | PERF_TYPE_HARDWARE
  2. | PERF_TYPE_SOFTWARE
  3. | PERF_TYPE_TRACEPOINT
  4. | PERF_TYPE_HW_CACHE
  5. | PERF_TYPE_RAW
  6. | PERF_TYPE_BREAKPOINT
  7. | PERF_TYPE_UNKNOWN of int
val perf_type_id : int -> perf_type_id
type perf_hw_id =
  1. | PERF_COUNT_HW_CPU_CYCLES
  2. | PERF_COUNT_HW_INSTRUCTIONS
  3. | PERF_COUNT_HW_CACHE_REFERENCES
  4. | PERF_COUNT_HW_CACHE_MISSES
  5. | PERF_COUNT_HW_BRANCH_INSTRUCTIONS
  6. | PERF_COUNT_HW_BRANCH_MISSES
  7. | PERF_COUNT_HW_BUS_CYCLES
  8. | PERF_COUNT_HW_STALLED_CYCLES_FRONTEND
  9. | PERF_COUNT_HW_STALLED_CYCLES_BACKEND
  10. | PERF_COUNT_HW_UNKNOWN of int
val perf_hw_id : int -> perf_hw_id
type perf_hw_cache_id =
  1. | PERF_COUNT_HW_CACHE_L1D
  2. | PERF_COUNT_HW_CACHE_L1I
  3. | PERF_COUNT_HW_CACHE_LL
  4. | PERF_COUNT_HW_CACHE_DTLB
  5. | PERF_COUNT_HW_CACHE_ITLB
  6. | PERF_COUNT_HW_CACHE_BPU
  7. | PERF_COUNT_HW_CACHE_NODE
  8. | PERF_COUNT_HW_CACHE_UNKNOWN of int
val perf_hw_cache_id : int -> perf_hw_cache_id
type perf_hw_cache_op_id =
  1. | PERF_COUNT_HW_CACHE_OP_READ
  2. | PERF_COUNT_HW_CACHE_OP_WRITE
  3. | PERF_COUNT_HW_CACHE_OP_PREFETCH
  4. | PERF_COUNT_HW_CACHE_OP_UNKNOWN of int
val perf_hw_cache_op_id : int -> perf_hw_cache_op_id
type perf_hw_cache_op_result_id =
  1. | PERF_COUNT_HW_CACHE_RESULT_ACCESS
  2. | PERF_COUNT_HW_CACHE_RESULT_MISS
  3. | PERF_COUNT_HW_CACHE_RESULT_UNKNOWN of int
val perf_hw_cache_op_result_id : int -> perf_hw_cache_op_result_id
type perf_sw_ids =
  1. | PERF_COUNT_SW_CPU_CLOCK
  2. | PERF_COUNT_SW_TASK_CLOCK
  3. | PERF_COUNT_SW_PAGE_FAULTS
  4. | PERF_COUNT_SW_CONTEXT_SWITCHES
  5. | PERF_COUNT_SW_CPU_MIGRATIONS
  6. | PERF_COUNT_SW_PAGE_FAULTS_MIN
  7. | PERF_COUNT_SW_PAGE_FAULTS_MAJ
  8. | PERF_COUNT_SW_ALIGNMENT_FAULTS
  9. | PERF_COUNT_SW_EMULATION_FAULTS
  10. | PERF_COUNT_SW_UNKNOWN of int
val perf_sw_ids : int -> perf_sw_ids
val bit_PERF_SAMPLE_IP : int
val bit_PERF_SAMPLE_TID : int
val bit_PERF_SAMPLE_TIME : int
val bit_PERF_SAMPLE_ADDR : int
val bit_PERF_SAMPLE_READ : int
val bit_PERF_SAMPLE_CALLCHAIN : int
val bit_PERF_SAMPLE_ID : int
val bit_PERF_SAMPLE_CPU : int
val bit_PERF_SAMPLE_PERIOD : int
val bit_PERF_SAMPLE_STREAM_ID : int
val bit_PERF_SAMPLE_RAW : int
type perf_id_sample = {
  1. id_sample_cpu : int64 option;
  2. id_sample_stream_id : int64 option;
  3. id_sample_id : int64 option;
  4. id_sample_time : int64 option;
  5. id_sample_tid : int64 option;
  6. id_sample_pid : int64 option;
}
type read_format_item = {
  1. read_value : int64;
  2. read_id : int64 option;
}
type read_format = {
  1. read_time_enabled : int64 option;
  2. read_time_running : int64 option;
  3. read_cntr : read_format_item array;
}
val bit_PERF_FORMAT_TOTAL_TIME_ENABLED : int
val bit_PERF_FORMAT_TOTAL_TIME_RUNNING : int
val bit_PERF_FORMAT_ID : int
val bit_PERF_FORMAT_GROUP : int
type attr_sample =
  1. | AttrSamplePeriod of int64
  2. | AttrSampleFreq of int64
type attr_wakeup =
  1. | AttrWakeUpEvents of int64
  2. | AttrWakeUpWatermark of int64
type perf_event_attr = {
  1. attr_type : perf_type_id;
  2. attr_size : int;
  3. attr_config : int64;
  4. attr_config_name : string option;
  5. attr_sample : attr_sample;
  6. attr_sample_type : int;
  7. attr_read_format : int;
  8. attr_disabled : bool;
  9. attr_inherit : bool;
  10. attr_pinned : bool;
  11. attr_exclusive : bool;
  12. attr_exclude_user : bool;
  13. attr_exclude_kernel : bool;
  14. attr_exclude_hv : bool;
  15. attr_exclude_idle : bool;
  16. attr_mmap : bool;
  17. attr_comm : bool;
  18. attr_freq : bool;
  19. attr_inherit_stat : bool;
  20. attr_enable_on_exec : bool;
  21. attr_task : bool;
  22. attr_watermark : bool;
  23. attr_precise_ip : int;
  24. attr_mmap_data : bool;
  25. attr_sample_id_all : bool;
  26. attr_exclude_host : bool;
  27. attr_exclude_guest : bool;
  28. attr_attributes : int64;
  29. attr_wakeup : attr_wakeup;
  30. attr_bp_type : int64;
  31. attr_bp_addr : int64;
  32. attr_bp_len : int64;
}
type int32_64 = int64
module Int64Map : sig ... end
type perf_session = {
  1. session_attr_sample_id_all : bool;
  2. session_attr_sample_type : int;
  3. session_attr_read_format : int;
  4. session_attrs : (perf_event_attr * (int64 * int64)) list;
}
type perf_record_sample = {
  1. sample_ip : int64 option;
  2. sample_pid : int32_64 option;
  3. sample_tid : int32_64 option;
  4. sample_time : int64 option;
  5. sample_addr : int64 option;
  6. sample_id : int64 option;
  7. sample_stream_id : int64 option;
  8. sample_cpu : int32_64 option;
  9. sample_res : int32_64 option;
  10. sample_period : int64 option;
  11. sample_read : read_format option;
  12. sample_callchain : int64 array option;
  13. sample_raw : string option;
}
type perf_record_mmap = {
  1. mmap_pid : int;
  2. mmap_tid : int;
  3. mmap_addr : int64;
  4. mmap_len : int64;
  5. mmap_pgoff : int64;
  6. mmap_filename : string;
}
type perf_record_comm = {
  1. comm_pid : int;
  2. comm_tid : int;
  3. comm_comm : string;
}
type perf_record_exit = {
  1. exit_pid : int;
  2. exit_ppid : int;
  3. exit_tid : int;
  4. exit_ptid : int;
  5. exit_time : int64;
}
type perf_record_fork = {
  1. fork_pid : int;
  2. fork_ppid : int;
  3. fork_tid : int;
  4. fork_ptid : int;
  5. fork_time : int64;
}
type perf_record_read = {
  1. read_pid : int;
  2. read_tid : int;
  3. read_format : read_format;
}
type perf_record_lost = {
  1. lost_id : int64;
  2. lost_lost : int64;
}
type perf_record_throttle = {
  1. throttle_time : int64;
  2. throttle_id : int64;
  3. throttle_stream_id : int64;
}
type perf_event_type = {
  1. ev_type : ev_type;
  2. ev_misc : int;
  3. ev_id_sample : perf_id_sample option;
}
and ev_type =
  1. | PERF_RECORD_UNKNOWN of int * string
  2. | PERF_RECORD_MMAP of perf_record_mmap
  3. | PERF_RECORD_LOST of perf_record_lost
  4. | PERF_RECORD_COMM of perf_record_comm
  5. | PERF_RECORD_EXIT of perf_record_exit
  6. | PERF_RECORD_THROTTLE of perf_record_throttle
  7. | PERF_RECORD_UNTHROTTLE of perf_record_throttle
  8. | PERF_RECORD_FORK of perf_record_fork
  9. | PERF_RECORD_READ of perf_record_read
  10. | PERF_RECORD_SAMPLE of perf_record_sample