[SCSI] qla2xxx: Add asynchronous-login support.
[linux-2.6-block.git] / kernel / trace / trace_events.c
index 23d2972b22d67a773f0d6d8242e173941d174c76..e75276a49cf5cfa2fb968609602621fa8e5a5da3 100644 (file)
@@ -940,7 +940,7 @@ event_create_dir(struct ftrace_event_call *call, struct dentry *d_events,
                entry = trace_create_file("enable", 0644, call->dir, call,
                                          enable);
 
-       if (call->id)
+       if (call->id && call->profile_enable)
                entry = trace_create_file("id", 0444, call->dir, call,
                                          id);