diff options
author | aiju <devnull@localhost> | 2018-12-11 09:20:34 +0000 |
---|---|---|
committer | aiju <devnull@localhost> | 2018-12-11 09:20:34 +0000 |
commit | 40d6302b5f289ad8a617d12fa911197dddafc634 (patch) | |
tree | 28de7f2afdfe0c7239a08e6aa8fdfe6924ee1d8c /sys/include | |
parent | a6517fb4984458d6f5ce4864a408c5057d15306d (diff) |
forgotten files
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/dtracy.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/include/dtracy.h b/sys/include/dtracy.h index 3e2ff81f1..cd8d577b3 100644 --- a/sys/include/dtracy.h +++ b/sys/include/dtracy.h @@ -41,6 +41,8 @@ struct DTName { /* we assign all pairs (probe,action-group) (called an enabling or DTEnab) a unique ID called EPID. we could also use probe IDs and action group IDs but using a single 32-bit ID for both is more flexible/efficient. + + epid == -1 indicates a fault record (see below) */ struct DTEnab { u32int epid; @@ -235,6 +237,10 @@ struct DTTrigInfo { DTChan *ch; }; +/* fault records are used to note when a probe had to be aborted (e.g. because of a page fault) */ +enum { + DTFILL = 1, /* illegal address */ +}; void dtinit(int); void dtsync(void); @@ -269,6 +275,7 @@ int dtcread(DTChan *, void *, int); int dtcaggread(DTChan *, void *, int); void dtcreset(DTChan *); void dtcrun(DTChan *, int); +int dtcfault(DTTrigInfo *, int, char *, ...); /* aggbuf functions */ int dtaunpackid(DTAgg *); |