Renamed API amdsmi_control_counter

to amdsmi_gpu_control_counter

grep -rli 'amdsmi_control_counter' * | xargs -i@ sed -i
's/amdsmi_control_counter/amdsmi_gpu_control_counter/g' @

Change-Id: Ibdcd32327ebd2646375fb5c3b913cb528ac8aa97


[ROCm/amdsmi commit: 6e1a72d2c1]
This commit is contained in:
Deepak Mewar
2023-02-27 02:04:54 -05:00
committed by Naveen Krishna Chatradhi
parent ca4b919b16
commit c70ff3cbed
8 changed files with 20 additions and 20 deletions
+4 -4
View File
@@ -2780,7 +2780,7 @@ amdsmi_status_string(amdsmi_status_t status, const char **status_string);
* structure.
*
* Once an event counter handle is obtained, the event counter can be
* controlled (i.e., started, stopped,...) with ::amdsmi_control_counter() by
* controlled (i.e., started, stopped,...) with ::amdsmi_gpu_control_counter() by
* passing ::amdsmi_counter_command_t commands. ::AMDSMI_CNTR_CMD_START starts an
* event counter and ::AMDSMI_CNTR_CMD_STOP stops a counter.
* ::amdsmi_read_counter() reads an event counter.
@@ -2831,7 +2831,7 @@ amdsmi_status_string(amdsmi_status_t status, const char **status_string);
* // A program that generates the events of interest can be started
* // immediately before or after starting the counters.
* // Start counting:
* ret = amdsmi_control_counter(evnt_handle, AMDSMI_CNTR_CMD_START, NULL);
* ret = amdsmi_gpu_control_counter(evnt_handle, AMDSMI_CNTR_CMD_START, NULL);
*
* // Wait...
*
@@ -2844,7 +2844,7 @@ amdsmi_status_string(amdsmi_status_t status, const char **status_string);
* ret = amdsmi_read_counter(amdsmi_event_handle_t evt_handle, &value)
*
* // Stop counting.
* ret = amdsmi_control_counter(evnt_handle, AMDSMI_CNTR_CMD_STOP, NULL);
* ret = amdsmi_gpu_control_counter(evnt_handle, AMDSMI_CNTR_CMD_STOP, NULL);
*
* // Release all resources (e.g., counter and memory resources) associated
* with evnt_handle.
@@ -2930,7 +2930,7 @@ amdsmi_gpu_destroy_counter(amdsmi_event_handle_t evnt_handle);
* @return ::amdsmi_status_t | ::AMDSMI_STATUS_SUCCESS on success, non-zero on fail
*/
amdsmi_status_t
amdsmi_control_counter(amdsmi_event_handle_t evt_handle,
amdsmi_gpu_control_counter(amdsmi_event_handle_t evt_handle,
amdsmi_counter_command_t cmd, void *cmd_args);
/**