From a8dd47f0c2a59c59e325b8421db6f108e4dc9917 Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 25 Oct 2016 20:34:41 -0400 Subject: driver: internals: error trace support: added unit context marks. --- src/internal/mdso_driver_impl.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src') 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 -- cgit v1.2.3