Jump to content

PDGuide - Guide to Instrumenting Your Code

From EDM2
Revision as of 15:26, 18 January 2018 by Martini (talk | contribs) (Created page with "{{PDGuide}} {{IBM-Reprint}} Code instrumentation improves problem analysis. Instrumented components of OS/2 Warp Version 4 use First Failure Support Technology (FFST) and tr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Problem Determination Programmer's Guide
  1. Introduction to Collecting and Managing Problem Determination Data
  2. Guide to Instrumenting Your Code
  3. Controlling FFSTProbe Calls
  4. Viewing and Analyzing Error Log Entries
  5. Analyzing Performance and Debugging Problems Using Trace
  6. Capturing and Saving Failure-Related Information through Dumps
  7. The Desktop Management Interface
  8. Summary of Functions and Interfaces
  9. Problem Determination APIs

Reprint Courtesy of International Business Machines Corporation, © International Business Machines Corporation

Code instrumentation improves problem analysis. Instrumented components of OS/2 Warp Version 4 use First Failure Support Technology (FFST) and trace. This chapter defines the required steps for instrumentation, and things you should consider before you instrument your code. This chapter also tells you what to expect when you use the FFSTProbe API and trace utility.


Introduction to FFST Instrumentation

Benefits of Instrumenting for FFST

Overview of FFSTProbe API

FFSTProbe Parameters

FFST Flow

Steps for Instrumenting for FFST

Planning for Instrumenting Your Code

       Defining Vital Product Data (VPD)
       Deciding How and Where to Place Calls to FFSTProbe API
           Places to Instrument 
       Deciding What Data You Want to Collect
           Error Types to Consider 
       Ways to Collect Data
           FFST Dump Data
               Process Environment Data
               System Process Status Data
               Trace Data
               User Storage Data
               Additional Error Log User Data
               FFST Dump Process Errors
               Process Dumps
               System Dumps 

Coding the FFSTProbe Functions

       Direct Calls
       Using Macros to Call the FFSTProbe Function
       Using Subroutines to Call the FFSTProbe Function 

Creating Template Files

       Why Template Files Are Important 

Creating Message Files

Setting Up (Instrumenting) for Trace

What Is Trace?

Creating a Trace File Entry Using the TraceCreateEntry Function

Defining Trace Information Format

       Creating Trace Entry Formatting Directives 

Creating DMI MIF Files

       How to Install Your Software Product 

FFST-Related Functions

Examples of Code when Instrumenting for FFST and Trace

       Example of an Application Program Using a Subroutine
       Creating an Error Record Template Input File
           Template File Tips 
       Message Input File Example
       MIF File Example