From patchwork Fri Dec 13 22:24:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 22436 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f197.google.com (mail-qc0-f197.google.com [209.85.216.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0DB1C23FF5 for ; Fri, 13 Dec 2013 22:28:03 +0000 (UTC) Received: by mail-qc0-f197.google.com with SMTP id r5sf4368258qcx.0 for ; Fri, 13 Dec 2013 14:28:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=0lTXEkDTd70F2x/Tn3mSA+ibEgpOL/Wht2jOb24WPVE=; b=Jm1Clvlug7am0q6t1TGNtR4qdVWktAYAKMa6RBvyJfj23v7yhdkFO2ixlif2FOIKKw Zdf8hZ5VM2YpirLnjSkb5d069n/GhsTlLaqNV0Y6felYgRd1aUDmt9nWeBxGBAE/23wF YCTR2BV5HRa+MqQ89fUxwIvLnMjtelAQP1PFfgkGb7Y+c/alxD2u8j7Tuq/oYSjw4EHl dng2+GXjxxk69QZkAB/8lecCMqRESNzNqzjTz+mJmYdlGJO7drLbDhGXWS5bDAo7c3+I SOVEgK+jEWnnj3+nWBvAJgGBKV8sipAeYFbExnFw0fSVlakLm0GIlEVhet0auUL4zOj9 57ow== X-Gm-Message-State: ALoCoQmj4pWp94he6E25Zaim7UkTpfOJm/Y5s8B4g/wE7CVy1aU+WjnvMvj4UNZmxUF7TZ4O7kIO X-Received: by 10.52.76.34 with SMTP id h2mr1617649vdw.2.1386973682934; Fri, 13 Dec 2013 14:28:02 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.61.229 with SMTP id t5ls1198321qer.53.gmail; Fri, 13 Dec 2013 14:28:02 -0800 (PST) X-Received: by 10.58.37.67 with SMTP id w3mr2258934vej.22.1386973682825; Fri, 13 Dec 2013 14:28:02 -0800 (PST) Received: from mail-ve0-f173.google.com (mail-ve0-f173.google.com [209.85.128.173]) by mx.google.com with ESMTPS id tl2si1200421vdc.25.2013.12.13.14.28.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Dec 2013 14:28:02 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.173; Received: by mail-ve0-f173.google.com with SMTP id oz11so1852405veb.32 for ; Fri, 13 Dec 2013 14:28:02 -0800 (PST) X-Received: by 10.58.217.130 with SMTP id oy2mr2265961vec.24.1386973682764; Fri, 13 Dec 2013 14:28:02 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp73596vcz; Fri, 13 Dec 2013 14:28:02 -0800 (PST) X-Received: by 10.68.143.196 with SMTP id sg4mr5925868pbb.155.1386973682097; Fri, 13 Dec 2013 14:28:02 -0800 (PST) Received: from mail-pb0-f48.google.com (mail-pb0-f48.google.com [209.85.160.48]) by mx.google.com with ESMTPS id qu5si2516551pbc.90.2013.12.13.14.28.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Dec 2013 14:28:02 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.48 is neither permitted nor denied by best guess record for domain of john.stultz@linaro.org) client-ip=209.85.160.48; Received: by mail-pb0-f48.google.com with SMTP id md12so3144345pbc.35 for ; Fri, 13 Dec 2013 14:28:01 -0800 (PST) X-Received: by 10.68.196.227 with SMTP id ip3mr5938111pbc.163.1386973681737; Fri, 13 Dec 2013 14:28:01 -0800 (PST) Received: from localhost.localdomain (c-67-170-153-23.hsd1.or.comcast.net. [67.170.153.23]) by mx.google.com with ESMTPSA id qz9sm7457908pbc.3.2013.12.13.14.28.00 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Dec 2013 14:28:01 -0800 (PST) From: John Stultz To: LKML Cc: Greg KH , Android Kernel Team , Sumit Semwal , Jesse Barker , Colin Cross , John Stultz Subject: [PATCH 073/115] ion: add free list size to heap debug files Date: Fri, 13 Dec 2013 14:24:47 -0800 Message-Id: <1386973529-4884-74-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1386973529-4884-1-git-send-email-john.stultz@linaro.org> References: <1386973529-4884-1-git-send-email-john.stultz@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: john.stultz@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Colin Cross Signed-off-by: Colin Cross [jstultz: modified patch to apply to staging directory] Signed-off-by: John Stultz --- drivers/staging/android/ion/ion.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index 38d65c2..93b84a9 100644 --- a/drivers/staging/android/ion/ion.c +++ b/drivers/staging/android/ion/ion.c @@ -1286,6 +1286,9 @@ static int ion_debug_heap_show(struct seq_file *s, void *unused) seq_printf(s, "%16.s %16u\n", "total orphaned", total_orphaned_size); seq_printf(s, "%16.s %16u\n", "total ", total_size); + if (heap->flags & ION_HEAP_FLAG_DEFER_FREE) + seq_printf(s, "%16.s %16u\n", "deferred free", + heap->free_list_size); seq_printf(s, "----------------------------------------------------\n"); if (heap->debug_show)