Print this page
NEX-2787 Multiple comstar / fibre channel / qlt threads stuck waiting on locks with a spinning interrupt thread
Reviewed by: Rob Gittins <rob.gittins@nexenta.com>
Approved by: Jean McCormack <jean.mccormack@nexenta.com>

@@ -18,10 +18,11 @@
  *
  * CDDL HEADER END
  */
 /*
  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright 2015 Nexenta Systems, Inc. All rights reserved.
  * Use is subject to license terms.
  */
 
 /*
  * Stubs for basic system services otherwise unavailable to the debugger.

@@ -62,10 +63,19 @@
 getpid(void)
 {
         return (1);
 }
 
+void
+__assert(const char *statement, const char *file, int line)
+{
+        (void) mdb_printf("ASSERT at %s, File: %s, Line: %d\n",
+            statement ? statement : "<empty>",
+            file ? file : "<empty>", line);
+        exit(1);
+}
+
 /*
  * We're trying to isolate ourselves from the rest of the world as much as
  * possible, so we can't rely on the time in the kernel proper.  For now, we
  * just bump a counter whenever time is requested, thus guaranteeing that
  * things with timestamps can be compared according to order of occurrance.