mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 17:06:30 +00:00
basic support for usdt probes
This commit is contained in:

committed by
Björn Linse

parent
ce5a260c9e
commit
d4fc7b25e8
@@ -7,6 +7,16 @@
|
||||
#include "auto/config.h"
|
||||
#include "nvim/macros.h"
|
||||
|
||||
// USDT probes. Example invokation:
|
||||
// NVIM_PROBE(nvim_foo_bar, 1, string.data);
|
||||
#if defined(HAVE_SYS_SDT_H)
|
||||
#include <sys/sdt.h> // NOLINT
|
||||
#define NVIM_PROBE(name, n, ...) STAP_PROBE##n(neovim, name, __VA_ARGS__)
|
||||
#else
|
||||
#define NVIM_PROBE(name, n, ...)
|
||||
#endif
|
||||
|
||||
|
||||
#define DEBUG_LOG_LEVEL 0
|
||||
#define INFO_LOG_LEVEL 1
|
||||
#define WARN_LOG_LEVEL 2
|
||||
|
Reference in New Issue
Block a user