Jump to content

PDGuide - Problem Determination APIs: Difference between revisions

From EDM2
Created page with "These APIs are intended for programmers developing OS/2 applications. Problem Determination services provide basic support for identifying and isolating errors. They include a..."
 
Ak120 (talk | contribs)
m mock out
Line 8: Line 8:


Problem Determination services provide application programming interfaces (APIs) for:
Problem Determination services provide application programming interfaces (APIs) for:
* Managing Error Log files
* Managing Error Log files
* Reading and formatting Error Log entries
* Reading and formatting Error Log entries
* Registering and waiting for Error Log event notifications
* Registering and waiting for Error Log event notifications
* Changing Error Log event-notification filters
* Changing Error Log event-notification filters
* Logging an error and storing associated trace and dump information in a file  
* Logging an error and storing associated trace and dump information in a file
 
The following libraries must be linked with object files that use the Problem Determination functions:
The following libraries must be linked with object files that use the Problem Determination functions:
 
{|class="wikitable"
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
!Library||Functions
³Library                      ³Functions                    ³
|-
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
|ffst.lib||FFST functions
³ffst.lib                     ³FFST functions               ³
|-
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
|lfapi.lib||Log functions
³lfapi.lib                     ³Log functions                 ³
|-
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
|trace.lib||TraceCreateEntry
³trace.lib                     ³TraceCreateEntry              ³
|}
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
 
This chapter includes the following sections:
This chapter includes the following sections:
* Problem Determination Functions
* Problem Determination Functions
* Problem Determination Data Types
* Problem Determination Data Types


[[FFST/2_API]]
[[FFST/2 API]]


[[Category:PDGuide]]
[[Category:PDGuide]]

Revision as of 05:50, 19 January 2018

These APIs are intended for programmers developing OS/2 applications. Problem Determination services provide basic support for identifying and isolating errors. They include an integrated Error Log to keep a historical record of errors detected by the operating system and, optionally, by applications. The mechanism for inserting entries into the Error Log is the FFSTProbe function. FFST (First Failure Support Technology) enables errors to be logged when first detected.

FFSTProbe also supports the collection of trace and user-specified information and the association of it with an error log entry and possibly an FFST dump. Traces are used to create a historical record of activity in the operating system and, optionally, applications. FFST dumps are produced if the user calls FFSTProbe with certain parameters filled in.

A system dump is used to create a snapshot of the entire contents of main memory at the time of a system crash. In most cases, a system dump should be taken only with the assistance of a Service Representative.

The information in the Error Log, along with any trace or dump information, can be valuable in isolating errors more quickly and with less disruption to users.

Problem Determination services provide application programming interfaces (APIs) for:

  • Managing Error Log files
  • Reading and formatting Error Log entries
  • Registering and waiting for Error Log event notifications
  • Changing Error Log event-notification filters
  • Logging an error and storing associated trace and dump information in a file

The following libraries must be linked with object files that use the Problem Determination functions:

Library Functions
ffst.lib FFST functions
lfapi.lib Log functions
trace.lib TraceCreateEntry

This chapter includes the following sections:

  • Problem Determination Functions
  • Problem Determination Data Types

FFST/2 API