You can insert the Annotate macros of Streamline in either user-space or kernel code. There are a few important considerations when using Annotate with kernel code.
NoteAs the Annotate macros may block other processes, do not add them to kernel code in an interrupt context.
Insert Annotation macro codes in kernel code in the same way you would user space code, with the following exceptions:
- Do not call
ANNOTATE_SETUPin kernel code. This macro is a prerequisite to other Annotate macros in user space code, but not in kernel code.
ANNOTATE_DEFINEis also unnecessary. You do not need to add an instance of
ANNOTATE_DEFINEin kernel code.