Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes to Metrics Types #315

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/tools/EXT_Exp_MetricExportMemory.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ The following pseudo-code demonstrates how to map memory exported by metrics:
metricProperties.stype = ${T}_STRUCTURE_TYPE_METRIC_PROPERTIES;
zetMetricGetProperties(hMetric, &metricProperties);

if(metricProperties.metricType == ZET_METRIC_TYPE_EXPORT_DMA_BUF){
if(metricProperties.metricType == ZET_METRIC_TYPE_EXP_EXPORT_DMA_BUF){
zet_export_dma_buf_exp_properties_t dmaBufProperties;
dmaBufProperties.stype = ${T}_STRUCTURE_TYPE_EXPORT_DMA_EXP_PROPERTIES;
metricProperties.pNext = &dmaBufProperties;
Expand Down
27 changes: 16 additions & 11 deletions scripts/tools/metric.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,29 +114,34 @@ etors:
desc: "Metric type: ratio"
- name: RAW
desc: "Metric type: raw"
- name: IP_EXP
desc:
"1.6": "Metric type: instruction pointer"
"1.7": "Metric type: instruction pointer. Deprecated, use $T_METRIC_TYPE_IP."
- name: IP
desc: "Metric type: instruction pointer"
version: "1.7"
- name: EVENT_EXP_TIMESTAMP
desc: "Metric type: event with only timestamp and value has no meaning"
version: "1.10"
value: "0x7ffffff9"
- name: EVENT_EXP_START
desc: "Metric type: the first event of a start/end event pair"
version: "1.10"
value: "0x7ffffffa"
- name: EVENT_EXP_END
desc: "Metric type: the second event of a start/end event pair"
version: "1.10"
- name: EXPORT_DMA_BUF
desc: "Metric which exports linux dma_buf, which could be imported/mapped to the host process"
version: "1.11"
value: "0x7ffffffd"
value: "0x7ffffffb"
- name: EVENT_EXP_MONOTONIC_WRAPS_VALUE
desc: "Metric type: value of the event is a monotonically increasing value that can wrap around"
version: "1.10"
value: "0x7ffffffc"
- name: EXP_EXPORT_DMA_BUF
desc: "Metric which exports linux dma_buf, which could be imported/mapped to the host process"
version: "1.11"
value: "0x7ffffffd"
- name: IP_EXP
desc:
"1.6": "Metric type: instruction pointer"
"1.7": "Metric type: instruction pointer. Deprecated, use $T_METRIC_TYPE_IP."
value: "0x7ffffffe"
- name: IP
desc: "Metric type: instruction pointer"
version: "1.7"
value: "0x7ffffffe"
--- #--------------------------------------------------------------------------
type: enum
Expand Down