spin_lock(&g_logger.lock);
list_for_each_entry(ctx, &g_logger.contexts, list) {
- /* Print context information */
- seq_printf(s, "Context: PID=%d Command=%s\n", ctx->pid, ctx->comm);
/* Initialize iterator for this context's pagefrag */
ceph_san_log_iter_init(&iter, &ctx->pf);
current->tls.release = ceph_san_tls_release;
task_state_to_char(current);
ctx->task = current;
+ ctx->pid = current->pid;
+ strncpy(ctx->comm, current->comm, sizeof(ctx->comm));
return ctx;
}
EXPORT_SYMBOL(ceph_san_get_tls_ctx);