Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140587
b: refs/heads/master
c: faa97ab
h: refs/heads/master
i:
  140585: 32c07bd
  140583: 1a5b4b4
v: v3
  • Loading branch information
Pekka Enberg committed Dec 29, 2008
1 parent 2fa589a commit 61a84dc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2e67624c22321fa40ad3aa89c307c84bd679d9b2
refs/heads/master: faa97abe6a3673af268abb661c6b663252a911aa
26 changes: 13 additions & 13 deletions trunk/mm/kmemtrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,29 +307,29 @@ early_param("kmemtrace.subbufs", kmemtrace_set_subbufs);

void kmemtrace_init(void)
{
if (!kmemtrace_enabled)
return;

if (!kmemtrace_n_subbufs)
kmemtrace_n_subbufs = KMEMTRACE_DEF_N_SUBBUFS;

kmemtrace_chan = relay_open(NULL, NULL, KMEMTRACE_SUBBUF_SIZE,
kmemtrace_n_subbufs, &relay_callbacks,
NULL);
if (unlikely(!kmemtrace_chan)) {
if (!kmemtrace_chan) {
printk(KERN_ERR "kmemtrace: could not open relay channel.\n");
return;
}

if (unlikely(kmemtrace_start_probes()))
goto probe_fail;

printk(KERN_INFO "kmemtrace: early init successful.\n");

return;
if (!kmemtrace_enabled) {
printk(KERN_INFO "kmemtrace: disabled. Pass "
"kemtrace.enable=yes as kernel parameter for "
"boot-time tracing.");
return;
}
if (kmemtrace_start_probes()) {
printk(KERN_ERR "kmemtrace: could not register marker probes!\n");
kmemtrace_cleanup();
return;
}

probe_fail:
printk(KERN_ERR "kmemtrace: could not register marker probes!\n");
kmemtrace_cleanup();
printk(KERN_INFO "kmemtrace: enabled.\n");
}

0 comments on commit 61a84dc

Please sign in to comment.