Skip to content

Commit c582134

Browse files
joshuaranjanpbg-intel
authored andcommitted
rename Programmable1Exp to ProgrammableExp2
Signed-off-by: Joshua Santosh Ranjan <[email protected]>
1 parent bd119b8 commit c582134

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

scripts/tools/EXT_Exp_MetricProgrammable.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ API
3939
* ${t}MetricProgrammableGetPropertiesExp
4040
* ${t}MetricProgrammableGetParamInfoExp
4141
* ${t}MetricProgrammableGetParamValueInfoExp
42-
* ${t}MetricCreateFromProgrammable1Exp
42+
* ${t}MetricCreateFromProgrammableExp2
4343
* ${t}DeviceCreateMetricGroupsFromMetricsExp
4444
* ${t}MetricGroupAddMetricExp
4545
* ${t}MetricGroupRemoveMetricExp
@@ -95,9 +95,9 @@ The following pseudo-code demonstrates how programmable metrics could be enumera
9595
// Create Metric
9696
char metricName[ZET_MAX_METRIC_NAME] = "eu_active_minimum";
9797
char metricDescription[ZET_MAX_METRIC_DESCRIPTION] = "eu_active_minimum_desc";
98-
${t}MetricCreateFromProgrammable1Exp(programmableHandle, &parameterValue, 1, metricName, metricDescription, &metricHandleCount, nullptr);
98+
${t}MetricCreateFromProgrammableExp2(programmableHandle, &parameterValue, 1, metricName, metricDescription, &metricHandleCount, nullptr);
9999
${t}_metric_handle_t * metricHandles = allocate(sizeof(${t}_metric_handle_t) * metricHandleCount);
100-
${t}MetricCreateFromProgrammable1Exp(programmableHandle, &parameterValue, 1, metricName, metricDescription, &metricHandleCount, metricHandles);
100+
${t}MetricCreateFromProgrammableExp2(programmableHandle, &parameterValue, 1, metricName, metricDescription, &metricHandleCount, metricHandles);
101101
}
102102
}
103103

scripts/tools/metricProgrammable.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ type: function
360360
desc: "Create metric handles by applying parameter values on the metric programmable handle."
361361
version: "1.11"
362362
class: $tMetric
363-
name: CreateFromProgrammable1Exp
363+
name: CreateFromProgrammableExp2
364364
decl: static
365365
details:
366366
- "Multiple parameter values could be used to prepare a metric."
@@ -403,7 +403,7 @@ class: $tMetric
403403
name: CreateFromProgrammableExp
404404
decl: static
405405
details:
406-
- "This API is deprecated. Please use $tMetricCreateFromProgrammable1Exp()"
406+
- "This API is deprecated. Please use $tMetricCreateFromProgrammableExp2()"
407407
params:
408408
- type: $t_metric_programmable_exp_handle_t
409409
name: hMetricProgrammable
@@ -439,7 +439,7 @@ class: $tDevice
439439
name: CreateMetricGroupsFromMetricsExp
440440
decl: static
441441
details:
442-
- "Creates multiple metric groups from metrics which were created using $tMetricCreateFromProgrammable1Exp()."
442+
- "Creates multiple metric groups from metrics which were created using $tMetricCreateFromProgrammableExp2()."
443443
- "Metrics whose Hardware resources do not overlap are added to same metric group."
444444
- "The metric groups created using this API are managed by the application and cannot be retrieved using $tMetricGroupGet()."
445445
- "The created metric groups are ready for activation and collection."
@@ -561,8 +561,8 @@ class: $tMetricGroup
561561
name: DestroyExp
562562
decl: static
563563
details:
564-
- "Metric handles created using $tMetricCreateFromProgrammable1Exp and are part of the metricGroup are not destroyed."
565-
- "It is necessary to call $tMetricDestroyExp for each of the metric handles (created from $tMetricCreateFromProgrammable1Exp) to destroy them."
564+
- "Metric handles created using $tMetricCreateFromProgrammableExp2 and are part of the metricGroup are not destroyed."
565+
- "It is necessary to call $tMetricDestroyExp for each of the metric handles (created from $tMetricCreateFromProgrammableExp2) to destroy them."
566566
params:
567567
- type: $t_metric_group_handle_t
568568
name: hMetricGroup
@@ -574,7 +574,7 @@ returns:
574574
- "If trying to destroy an activated metric group"
575575
--- #--------------------------------------------------------------------------
576576
type: function
577-
desc: "Destroy a metric created using $tMetricCreateFromProgrammable1Exp."
577+
desc: "Destroy a metric created using $tMetricCreateFromProgrammableExp2."
578578
version: "1.9"
579579
class: $tMetric
580580
name: DestroyExp

0 commit comments

Comments
 (0)