Count the number of diagnostic event log for entries matching an input criteria.
#include <diag/diag_log.h> int dlog_numMatches(query_log *criteria)
The dlog_numMatches subroutine counts the number of diagnostic event log entries matching an input criteria.
criteria | Criteria used to search the diagnostic even t log. Unused fields must be set to 0. |
matches | Count of the number of entries matching the input criteria. |
The dlog_numMatches subroutine returns one of the following values:
0 | If successful |
-1 | The diagnostic event log could not be opened |
-2 | An error occurs reading from the diagnostic event log |
-3 | The search criteria is invalid |
-4 | Memory could not be allocated |
-5 | An error occurred due to too many matches. |