Skip to content

Commit

Permalink
Document the logical expression for journal entry matching
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick McCarty <[email protected]>
  • Loading branch information
phmccarty committed Feb 13, 2017
1 parent bf3dc47 commit 15bdcf0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/probes/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,18 @@ static bool add_filters(sd_journal *journal)
return false;
}

/* The semantics of how journal entry matching works is described in
* detail in sd_journal_add_match(3).
*
* The matches declared here correspond to the logical expression:
*
* BOOTID && ((P0 || P1 || P2 || P3) || EXITED)
*
* BOOTID is short for _BOOT_ID=VAL, where VAL is the boot ID for the
* current boot. P0, P1, etc stand for PRIORITY=0, etc. And EXITED is
* short for EXIT_CODE=exited.
*/

JOURNAL_MATCH(data);
free(data);
JOURNAL_AND;
Expand Down

0 comments on commit 15bdcf0

Please sign in to comment.