* + slab-use-__func__-to-trace-function-name.patch added to -mm tree
@ 2021-06-23 4:38 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2021-06-23 4:38 UTC (permalink / raw)
To: cl, gumingtao1225, gumingtao, iamjoonsoo.kim, mm-commits,
penberg, rientjes, vbabka
The patch titled
Subject: slab: use __func__ to trace function name
has been added to the -mm tree. Its filename is
slab-use-__func__-to-trace-function-name.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/slab-use-__func__-to-trace-function-name.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/slab-use-__func__-to-trace-function-name.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: gumingtao <gumingtao1225@gmail.com>
Subject: slab: use __func__ to trace function name
It is better to use __func__ to trace function name.
Link: https://lkml.kernel.org/r/31fdbad5c45cd1e26be9ff37be321b8586b80fee.1624355507.git.gumingtao@xiaomi.com
Signed-off-by: gumingtao <gumingtao@xiaomi.com>
Acked-by: Christoph Lameter <cl@linux.com>
Acked-by: David Rientjes <rientjes@google.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/slab_common.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
--- a/mm/slab_common.c~slab-use-__func__-to-trace-function-name
+++ a/mm/slab_common.c
@@ -377,11 +377,11 @@ out_unlock:
if (err) {
if (flags & SLAB_PANIC)
- panic("kmem_cache_create: Failed to create slab '%s'. Error %d\n",
- name, err);
+ panic("%s: Failed to create slab '%s'. Error %d\n",
+ __func__, name, err);
else {
- pr_warn("kmem_cache_create(%s) failed with error %d\n",
- name, err);
+ pr_warn("%s(%s) failed with error %d\n",
+ __func__, name, err);
dump_stack();
}
return NULL;
@@ -508,8 +508,8 @@ void kmem_cache_destroy(struct kmem_cach
err = shutdown_cache(s);
if (err) {
- pr_err("kmem_cache_destroy %s: Slab cache still has objects\n",
- s->name);
+ pr_err("%s %s: Slab cache still has objects\n",
+ __func__, s->name);
dump_stack();
}
out_unlock:
_
Patches currently in -mm which might be from gumingtao1225@gmail.com are
slab-use-__func__-to-trace-function-name.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-23 4:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-23 4:38 + slab-use-__func__-to-trace-function-name.patch added to -mm tree akpm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).