Scope object is used to configure modules and syscalls included/excluded from tracing.

If some modules are put into exclude list, then default policy will be to trace ANY modules If some modules are put into include list, then default policy will be to DON'T trace any modules except authorized modules

Interruptor.newAgentTracer({
followThread: true,
scope: {
syscalls: {
exclude: [/clock_gettime/]
},
modules: {
exclude: [/linker/]
}
}
}).start();

Hierarchy

  • Scope

Properties

_policy?: F
exclude?: ScopeFilter[]

A list of filter to apply to select modules/syscalls to exclude

include?: ScopeFilter[]

A list of filter to apply to select modules/syscalls to include

isExcluded?: ((num) => boolean)

Type declaration

    • (num): boolean
    • An optional function to check if an interruption number is excluded or not

      Parameters

      • num: number

      Returns boolean

Generated using TypeDoc