summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-10-25 20:34:41 -0400
committermidipix <writeonce@midipix.org>2016-11-11 00:22:51 -0500
commita8dd47f0c2a59c59e325b8421db6f108e4dc9917 (patch)
treec26f1f6fd963994d017686416ea272fe5f1a12a2 /src
parent1d4a9e7cb47178077e112f73bf6a60397f519497 (diff)
downloadmdso-a8dd47f0c2a59c59e325b8421db6f108e4dc9917.tar.bz2
mdso-a8dd47f0c2a59c59e325b8421db6f108e4dc9917.tar.xz
driver: internals: error trace support: added unit context marks.
Diffstat (limited to 'src')
-rw-r--r--src/internal/mdso_driver_impl.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/internal/mdso_driver_impl.h b/src/internal/mdso_driver_impl.h
index f43b790..9391a64 100644
--- a/src/internal/mdso_driver_impl.h
+++ b/src/internal/mdso_driver_impl.h
@@ -32,6 +32,8 @@ struct mdso_driver_ctx_impl {
char * asmbase;
int fddst;
int fdtmpin;
+ const struct mdso_unit_ctx * euctx;
+ const char * eunit;
struct mdso_error_info**errinfp;
struct mdso_error_info**erricap;
struct mdso_error_info *erriptr[64];
@@ -59,4 +61,16 @@ static inline struct mdso_driver_ctx_impl * mdso_get_driver_ictx(
return 0;
}
+static inline void mdso_driver_set_ectx(
+ const struct mdso_driver_ctx * dctx,
+ const struct mdso_unit_ctx * uctx,
+ const char * unit)
+{
+ struct mdso_driver_ctx_impl * ictx;
+
+ ictx = mdso_get_driver_ictx(dctx);
+ ictx->euctx = uctx;
+ ictx->eunit = unit;
+}
+
#endif