• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1-- Gather the `nop_work_func` slices and the CPU they each ran on and use that
2-- information to generate a metric that displays just the Trusty workqueue
3-- events grouped by CPU.
4DROP VIEW IF EXISTS android_trusty_workqueues_event;
5CREATE VIEW android_trusty_workqueues_event AS
6SELECT
7  'slice' AS track_type,
8  name AS slice_name,
9  ts,
10  dur,
11  'Cpu ' || EXTRACT_ARG(arg_set_id, 'cpu') AS track_name,
12  'Trusty Workqueues' AS group_name
13FROM slice
14WHERE slice.name GLOB 'nop_work_func*';
15
16-- Generate the final metric output. This is empty because we're only using the
17-- metric to generate custom tracks, and so don't have any aggregate data to
18-- generate.
19DROP VIEW IF EXISTS android_trusty_workqueues_output;
20CREATE VIEW android_trusty_workqueues_output AS
21SELECT AndroidTrustyWorkqueues();
22