The Samba-Bugzilla – Attachment 5201 Details for
Bug 7021
Memory leaks with 3.2 series
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for 3.2 with better pool-usage output
0001-s3-For-smbcontrol-pid-pool-usage-print-the-fir.patch (text/plain), 1.22 KB, created by
Volker Lendecke
on 2010-01-17 08:06:34 UTC
(
hide
)
Description:
Patch for 3.2 with better pool-usage output
Filename:
MIME Type:
Creator:
Volker Lendecke
Created:
2010-01-17 08:06:34 UTC
Size:
1.22 KB
patch
obsolete
>From 8e8f5d51ddb81236632e265d8a954d9d53159b5a Mon Sep 17 00:00:00 2001 >From: Volker Lendecke <vl@samba.org> >Date: Sun, 17 Jan 2010 14:57:54 +0100 >Subject: [PATCH] s3: For "smbcontrol <pid> pool-usage", print the first 50 bytes of a string > >--- > source/lib/tallocmsg.c | 14 ++++++++++++++ > 1 files changed, 14 insertions(+), 0 deletions(-) > >diff --git a/source/lib/tallocmsg.c b/source/lib/tallocmsg.c >index b4bea5a..b0c184e 100644 >--- a/source/lib/tallocmsg.c >+++ b/source/lib/tallocmsg.c >@@ -51,6 +51,20 @@ static void msg_pool_usage_helper(const void *ptr, int depth, int max_depth, int > return; > } > >+ if (strcmp(name, "char") == 0) { >+ sprintf_append(state->mem_ctx, &state->s, &state->len, >+ &state->buflen, >+ "%*s%-30s contains %6lu bytes in %3lu blocks " >+ "(ref %d): %*s\n", depth*4, "", >+ name, >+ (unsigned long)talloc_total_size(ptr), >+ (unsigned long)talloc_total_blocks(ptr), >+ talloc_reference_count(ptr), >+ MIN(50, talloc_get_size(ptr)), >+ (char *)ptr); >+ return; >+ } >+ > sprintf_append(state->mem_ctx, &state->s, &state->len, &state->buflen, > "%*s%-30s contains %6lu bytes in %3lu blocks (ref %d)\n", > depth*4, "", >-- >1.6.0.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 7021
:
5165
|
5166
| 5201 |
5203
|
5204
|
5205
|
5207
|
5209
|
5211
|
5212