PreviousNext

Simple Serviceability Interface Tutorial

In this topic, we will see how to go about creating a simple C program that uses the serviceability interface to print the familiar "Hello World" message.

All that is necessary to do this is to replace the first call that follows with something like the second:

printf("Hello World\n");

dce_svc_printf(hello_world_message);

However, making the dce_svc_printf( ) call requires the following preliminary steps:

1. Defining the message in a sams file.

2. Processing the sams file to obtain a set of files that contain code used by the serviceability routines.

3. Coding some serviceability initialization calls into the C program itself.

4. Coding the dce_svc_printf( ) call.

The next several topics describe each of these steps.

More:

Defining the Message

Processing the sams File

Coding the Serviceability Calls

Building and Running the Program

Fields of a Serviceability Message