Reading Kernel Trace Data From Chunks Tutorial

Explains how to use the kernel trace tool to read data from chunks.

Purpose

Trace data is written to kernel side chunks. The kernel trace tool API can read from the chunks for further processing.

Intended audience

This document is intended for application developers writing a trace tool using the kernel trace tool component.

Required background

The trace filters defined in EUser. The kernel trace tool component in general.

Introduction

Reading trace data from chunks is a short task which is performed in combination with related tasks as explained in Kernel Trace Tool Tutorial.

Using Kernel Trace tool to read trace data from chunks

The following tasks will be covered in this tutorial:

  • Reading trace data from chunks.

Basic procedure

The high level steps to reading trace data from chunks are shown here:

  1. Open a communication channel to kernel side.

  2. Create a data notification request on the data.

Using the API

These are the function calls required to

  1. Call the Open() function of the RBTrace object. This opens a communication channel to the kernel side implementation and makes the buffer accessible.

  2. Create a data notification request which will cause data to be written from the chunks to the buffer.