summaryrefslogtreecommitdiff
path: root/src/internal
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-10-25 17:03:43 -0400
committermidipix <writeonce@midipix.org>2016-11-10 23:35:54 -0500
commit9a382d263f4ace806724dcf4c9d96d7180c234f8 (patch)
tree4209cfc6137d885f12aa5511d88fc143c38779bf /src/internal
parentf006c46ea91111f1df8bf0ce7cf457e22f4c26f7 (diff)
downloadperk-9a382d263f4ace806724dcf4c9d96d7180c234f8.tar.bz2
perk-9a382d263f4ace806724dcf4c9d96d7180c234f8.tar.xz
driver: internals: error trace support: added unit context marks.
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/perk_driver_impl.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/internal/perk_driver_impl.h b/src/internal/perk_driver_impl.h
index f3af901..843d3f1 100644
--- a/src/internal/perk_driver_impl.h
+++ b/src/internal/perk_driver_impl.h
@@ -29,6 +29,8 @@ struct pe_driver_ctx_impl {
struct pe_io_ctx ioctx;
struct pe_common_ctx cctx;
struct pe_driver_ctx ctx;
+ const struct pe_unit_ctx * euctx;
+ const char * eunit;
struct pe_error_info ** errinfp;
struct pe_error_info ** erricap;
struct pe_error_info * erriptr[64];
@@ -57,4 +59,16 @@ static inline struct pe_driver_ctx_impl * pe_get_driver_ictx(
return 0;
}
+static inline void pe_driver_set_ectx(
+ const struct pe_driver_ctx * dctx,
+ const struct pe_unit_ctx * uctx,
+ const char * unit)
+{
+ struct pe_driver_ctx_impl * ictx;
+
+ ictx = pe_get_driver_ictx(dctx);
+ ictx->euctx = uctx;
+ ictx->eunit = unit;
+}
+
#endif