Allow HIP_DB to be number or string flags (ie HIP_DB=api+mem+sync)

Add callbacks for processing env vars.

Change-Id: I4ddf50e2da56b1dae43f50657bc693b07b23c03d
This commit is contained in:
Ben Sander
2016-10-26 09:41:47 -05:00
parent 710be682ca
commit f5e8090f2f
2 changed files with 82 additions and 16 deletions
+1 -1
View File
@@ -221,7 +221,7 @@ extern void recordApiTrace(const std::string &s);
#define DB_COPY1 3 /* 0x08 - trace memory copy commands. . */
#define DB_SIGNAL 4 /* 0x10 - trace signal pool commands */
#define DB_COPY2 5 /* 0x20 - trace memory copy commands. Detailed. */
#define DB_MAX_BITPOS 5
#define DB_MAX_FLAG 5
// When adding a new debug flag, also add to the char name table below.
//