rocprofiler-sdk/pc_sampling.h File Reference

rocprofiler-sdk/pc_sampling.h File Reference#

Rocprofiler SDK Developer API: rocprofiler-sdk/pc_sampling.h File Reference
Rocprofiler SDK Developer API 0.4.0
ROCm Profiling API and tools
pc_sampling.h File Reference
+ Include dependency graph for pc_sampling.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  rocprofiler_pc_sampling_configuration_t
 PC sampling configuration supported by a GPU agent. More...
 
struct  rocprofiler_pc_sampling_header_v1_t
 The header of the rocprofiler_pc_sampling_record_t, indicating what fields of the rocprofiler_pc_sampling_record_t instance are meaningful for the sample. More...
 
struct  rocprofiler_pc_sampling_snapshot_v1_t
 For future use. More...
 
struct  rocprofiler_pc_sampling_record_t
 ROCProfiler PC Sampling Record corresponding to the interrupted wave. More...
 
struct  rocprofiler_pc_sampling_code_object_load_marker_t
 Marker representing code object loading event. More...
 
struct  rocprofiler_pc_sampling_code_object_unload_marker_t
 Marker representing code object unloading event. More...
 

Typedefs

typedef rocprofiler_status_t(* rocprofiler_available_pc_sampling_configurations_cb_t) (const rocprofiler_pc_sampling_configuration_t *configs, unsigned long num_config, void *user_data)
 Rocprofiler SDK's callback function to deliver the list of available PC sampling configurations upon the call to the rocprofiler_query_pc_sampling_agent_configurations.
 

Functions

rocprofiler_status_t rocprofiler_configure_pc_sampling_service (rocprofiler_context_id_t context_id, rocprofiler_agent_id_t agent_id, rocprofiler_pc_sampling_method_t method, rocprofiler_pc_sampling_unit_t unit, uint64_t interval, rocprofiler_buffer_id_t buffer_id)
 Function used to configure the PC sampling service on the GPU agent with agent_id.
 
rocprofiler_status_t rocprofiler_query_pc_sampling_agent_configurations (rocprofiler_agent_id_t agent_id, rocprofiler_available_pc_sampling_configurations_cb_t cb, void *user_data)
 Query PC Sampling Configuration.
 
 ROCPROFILER_CXX_CODE (static_assert(sizeof(rocprofiler_pc_sampling_record_t)==80, "Increasing the size of the pc sampling record is not permitted."))
 
 ROCPROFILER_CXX_CODE (static_assert(offsetof(rocprofiler_pc_sampling_record_t, chiplet)==9 &&offsetof(rocprofiler_pc_sampling_record_t, reserved2)==76, "PC sampling record layout changed."))
 

Function Documentation

◆ ROCPROFILER_CXX_CODE() [1/2]

ROCPROFILER_CXX_CODE ( static_assert(offsetof(rocprofiler_pc_sampling_record_t, chiplet)==9 &&offsetof(rocprofiler_pc_sampling_record_t, reserved2)==76, "PC sampling record layout changed.")  )

◆ ROCPROFILER_CXX_CODE() [2/2]

ROCPROFILER_CXX_CODE ( static_assert(sizeof(rocprofiler_pc_sampling_record_t)==80, "Increasing the size of the pc sampling record is not permitted.")  )