event: add spdk_trace instructions if event group mask specified

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I022bdccf502c6e63e6e8f5a80c5b5ec493262db9
This commit is contained in:
Jim Harris 2017-04-24 10:22:54 -07:00 committed by Daniel Verkamp
parent 2e9cd69f52
commit 95487138e3

View File

@ -413,6 +413,11 @@ spdk_app_init(struct spdk_app_opts *opts)
if (*end != '\0' || errno) {
SPDK_ERRLOG("invalid tpoint mask %s\n", opts->tpoint_group_mask);
} else {
SPDK_NOTICELOG("Tracepoint Group Mask %s specified.\n", opts->tpoint_group_mask);
SPDK_NOTICELOG("Use 'spdk_trace -s %s %s %d' to capture a snapshot of events at runtime.\n",
opts->name,
opts->shm_id >= 0 ? "-i" : "-p",
opts->shm_id >= 0 ? opts->shm_id : getpid());
spdk_trace_set_tpoint_group_mask(tpoint_group_mask);
}
}