Commit 90493856 authored by Thomas Applencourt's avatar Thomas Applencourt
Browse files

Add first clinterval test

parent a0c3bba1
Pipeline #13027 canceled with stage
......@@ -255,7 +255,8 @@ TEST_FILES = \
tests/kernel_name.dust \
tests/profiling_normal_nd_range_kernel_name.dust \
tests/API_call.dust \
tests/trace.dust
tests/trace.dust \
tests/interval_host_simple.dust
TRACE_FILES = \
tests/profiling_normal.yaml \
......
#!/usr/bin/env sh
set -o xtrace
DUST_MODELS_DIR=@abs_builddir@/ \
DUST_MODELS_DIR=@abs_builddir@/:@abs_top_srcdir@/xprof/ \
BABELTRACE_PLUGIN_PATH=@builddir@/.libs/ \
DUST_TRACE_DIR=@abs_srcdir@/tests:@abs_builddir@/tests \
@RUBY@ @top_srcdir@/utils/bt2.rb -f $1
:components:
- :plugin: source.ruby.dust
:name: dust_in
:params:
schemas: [opencl_babeltrace_model.yaml]
trace: interval_host_simple.in.yaml
- :plugin: filter.clinterval.interval
:name: interval
- :plugin: source.ruby.dust
:name: dust_out
:params:
schemas: [interval_model.yaml]
trace: interval_host_simple.out.yaml
- :plugin: sink.ruby.comparator
:name: comp
:connections:
- dust_in:interval
- interval:comp
- dust_out:comp
---
:hostname: aurora12.gov
:stream_classes:
- :name: cl_stream_class
:schemas:
- thapi_opencl
:clock_snapshot_value: true
:common_context:
- :name: vpid
:class: signed
- :name: vtid
:class: unsigned
:streams:
- :name: stream0
:class: cl_stream_class
:common_context:
vpid: -1
vtid: 2
- :name: stream1
:class: cl_stream_class
:common_context:
vpid: -1
vtid: 3
:events:
- :name: lttng_ust_opencl:clSetKernelArg_entry
:stream: stream0
:clock_snapshot_value: 0
- :name: lttng_ust_opencl:clSetKernelArg_entry
:stream: stream1
:clock_snapshot_value: 1
- :name: lttng_ust_opencl:clSetKernelArg_exit
:stream: stream1
:clock_snapshot_value: 2
- :name: lttng_ust_opencl:clSetKernelArg_exit
:stream: stream0
:clock_snapshot_value: 3
---
:default_stream: stream0
:stream_classes:
- :name: interval_class
:schemas:
- thapi_interval
:common_context:
- :name: hostname
:class: string
- :name: vpid
:class: signed
- :name: vtid
:class: unsigned
- :name: ts
:class: unsigned
:streams:
- :name: stream0
:class: interval_class
:events:
- :name: lttng:host
:common_context:
hostname: aurora12.gov
vpid: -1
vtid: 3
ts: 1
:payload:
name: clSetKernelArg
dur: 1
err: false
- :name: lttng:host
:common_context:
hostname: aurora12.gov
vpid: -1
vtid: 2
ts: 0
:payload:
name: clSetKernelArg
dur: 3
err: false
......@@ -228,12 +228,11 @@ class Dust
schema = YAML.load_file(find_file_in_envfolder(ENV['DUST_MODELS_DIR'],path))
[schema[:name], schema]
end.to_h
# Should read command line option via babeltrace API
schema_in_data = @in_data
@schemas['default_schema'] = schema_in_data if schema_in_data[:event_classes]
@schemas.merge!(@in_data[:schemas]) if @in_data[:schemas]
schema_in_data[:stream_classes] = [{ name: 'default_stream_class' }] unless schema_in_data[:stream_classes]
self_component.add_output_port('op0')
......@@ -255,7 +254,6 @@ class Dust
schemas.collect do |schema_name|
schema = @schemas[schema_name]
raise "schema: #{schema_name} was not found" unless schema
schema[:event_classes].collect do |event_class|
name, bt_event_class =
create_bt_event_class(bt_trace_class, bt_stream_class, event_class)
......
:name: thapi_interval
:event_classes:
- :name: lttng:host
:payload:
- :name: name
:class: string
- :name: dur
:class: unsigned
- :name: err
:class: bool
- :name: lttng:device
:payload:
- :name: name
:class: string
- :name: dur
:class: unsigned
- :name: did
:class: unsigned
- :name: sdid
:class: unsigned
- :name: lttng:traffic
:payload:
- :name: name
:class: string
- :name: size
:class: unsigned
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment