aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_db_util.h
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-03-17 16:35:08 +0100
committerSverker Eriksson <[email protected]>2016-05-04 19:53:37 +0200
commit5cb62b003d082c5a32ef5b12a89d872a317fd05f (patch)
tree04cae6377f78cfad3db7165d44daa37c525be507 /erts/emulator/beam/erl_db_util.h
parent8b2906d9974decf9e8bab24a8f753ba81a025410 (diff)
downloadotp-5cb62b003d082c5a32ef5b12a89d872a317fd05f.tar.gz
otp-5cb62b003d082c5a32ef5b12a89d872a317fd05f.tar.bz2
otp-5cb62b003d082c5a32ef5b12a89d872a317fd05f.zip
erts: Add matchspec restrictions for 'receive' trace
and non-call-trace. This is the easy way out to avoid difficult locking scenarios when accessing tracing flags on another process.
Diffstat (limited to 'erts/emulator/beam/erl_db_util.h')
-rw-r--r--erts/emulator/beam/erl_db_util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_db_util.h b/erts/emulator/beam/erl_db_util.h
index c3eb82a44a..60f7067d70 100644
--- a/erts/emulator/beam/erl_db_util.h
+++ b/erts/emulator/beam/erl_db_util.h
@@ -425,6 +425,11 @@ typedef struct dmc_err_info {
#define DCOMP_FAKE_DESTRUCTIVE ((Uint) 8) /* When this is active, no setting of
trace control words or seq_trace tokens will be done. */
+/* Allow lock seizing operations on the tracee and 3rd party processes */
+#define DCOMP_ALLOW_TRACE_OPS ((Uint) 0x10)
+
+/* This is call trace */
+#define DCOMP_CALL_TRACE ((Uint) 0x20)
Binary *db_match_compile(Eterm *matchexpr, Eterm *guards,
Eterm *body, int num_matches,