From: "Stefan I. Strogin" <s.strogin@partner.samsung.com>
To: linux-mm@kvack.org, linux-kernel@vger.kernel.org
Cc: "Stefan I. Strogin" <s.strogin@partner.samsung.com>,
Joonsoo Kim <iamjoonsoo.kim@lge.com>,
Andrew Morton <akpm@linux-foundation.org>,
Marek Szyprowski <m.szyprowski@samsung.com>,
Michal Nazarewicz <mina86@mina86.com>,
aneesh.kumar@linux.vnet.ibm.com,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Dmitry Safonov <d.safonov@partner.samsung.com>,
Pintu Kumar <pintu.k@samsung.com>,
Weijie Yang <weijie.yang@samsung.com>,
Laura Abbott <lauraa@codeaurora.org>,
SeongJae Park <sj38.park@gmail.com>, Hui Zhu <zhuhui@xiaomi.com>,
Minchan Kim <minchan@kernel.org>,
Dyasly Sergey <s.dyasly@samsung.com>,
Vyacheslav Tyrtov <v.tyrtov@samsung.com>
Subject: [PATCH 0/3] mm: cma: /proc/cmainfo
Date: Fri, 26 Dec 2014 17:39:01 +0300 [thread overview]
Message-ID: <cover.1419602920.git.s.strogin@partner.samsung.com> (raw)
Hello all,
Here is a patch set that adds /proc/cmainfo.
When compiled with CONFIG_CMA_DEBUG /proc/cmainfo will contain information
about about total, used, maximum free contiguous chunk and all currently
allocated contiguous buffers in CMA regions. The information about allocated
CMA buffers includes pid, comm, allocation latency and stacktrace at the
moment of allocation.
Example:
# cat /proc/cmainfo
CMARegion stat: 65536 kB total, 248 kB used, 65216 kB max contiguous chunk
0x32400000 - 0x32401000 (4 kB), allocated by pid 63 (systemd-udevd), latency 74 us
[<c1006e96>] dma_generic_alloc_coherent+0x86/0x160
[<c13093af>] rpm_idle+0x1f/0x1f0
[<c1006e10>] dma_generic_alloc_coherent+0x0/0x160
[<f80a533e>] ohci_init+0x1fe/0x430 [ohci_hcd]
[<c1006e10>] dma_generic_alloc_coherent+0x0/0x160
[<f801404f>] ohci_pci_reset+0x4f/0x60 [ohci_pci]
[<f80f165c>] usb_add_hcd+0x1fc/0x900 [usbcore]
[<c1256158>] pcibios_set_master+0x38/0x90
[<f8101ea6>] usb_hcd_pci_probe+0x176/0x4f0 [usbcore]
[<c125852f>] pci_device_probe+0x6f/0xd0
[<c1199495>] sysfs_create_link+0x25/0x50
[<c1300522>] driver_probe_device+0x92/0x3b0
[<c14564fb>] __mutex_lock_slowpath+0x5b/0x90
[<c1300880>] __driver_attach+0x0/0x80
[<c13008f9>] __driver_attach+0x79/0x80
[<c1300880>] __driver_attach+0x0/0x80
0x32401000 - 0x32402000 (4 kB), allocated by pid 58 (systemd-udevd), latency 17 us
[<c130e370>] dmam_coherent_release+0x0/0x90
[<c112d76c>] __kmalloc_track_caller+0x31c/0x380
[<c1006e96>] dma_generic_alloc_coherent+0x86/0x160
[<c1006e10>] dma_generic_alloc_coherent+0x0/0x160
[<c130e226>] dmam_alloc_coherent+0xb6/0x100
[<f8125153>] ata_bmdma_port_start+0x43/0x60 [libata]
[<f8113068>] ata_host_start.part.29+0xb8/0x190 [libata]
[<c13624a0>] pci_read+0x30/0x40
[<f8124eb9>] ata_pci_sff_activate_host+0x29/0x220 [libata]
[<f8127050>] ata_bmdma_interrupt+0x0/0x1f0 [libata]
[<c1256158>] pcibios_set_master+0x38/0x90
[<f80ad9be>] piix_init_one+0x44e/0x630 [ata_piix]
[<c1455ef0>] mutex_lock+0x10/0x20
[<c1197093>] kernfs_activate+0x63/0xd0
[<c11971c3>] kernfs_add_one+0xc3/0x130
[<c125852f>] pci_device_probe+0x6f/0xd0
<...>
Dmitry Safonov (1):
cma: add functions to get region pages counters
Stefan I. Strogin (2):
stacktrace: add seq_print_stack_trace()
mm: cma: introduce /proc/cmainfo
include/linux/cma.h | 2 +
include/linux/stacktrace.h | 4 +
kernel/stacktrace.c | 17 ++++
mm/cma.c | 236 +++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 259 insertions(+)
--
2.1.0
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next reply other threads:[~2014-12-26 14:40 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-26 14:39 Stefan I. Strogin [this message]
2014-12-26 14:39 ` [PATCH 1/3] stacktrace: add seq_print_stack_trace() Stefan I. Strogin
2014-12-27 7:04 ` SeongJae Park
2014-12-26 14:39 ` [PATCH 2/3] mm: cma: introduce /proc/cmainfo Stefan I. Strogin
2014-12-26 16:02 ` Michal Nazarewicz
2014-12-29 14:09 ` Stefan Strogin
2014-12-29 17:26 ` Michal Nazarewicz
2014-12-31 1:14 ` Gioh Kim
2015-01-23 12:32 ` Stefan Strogin
2014-12-29 21:11 ` Laura Abbott
2015-01-21 14:18 ` Stefan Strogin
2014-12-30 4:38 ` Joonsoo Kim
2015-01-22 15:35 ` Stefan Strogin
2015-01-23 6:35 ` Joonsoo Kim
2014-12-26 14:39 ` [PATCH 3/3] cma: add functions to get region pages counters Stefan I. Strogin
2014-12-26 16:10 ` Michal Nazarewicz
2014-12-27 7:18 ` SeongJae Park
2014-12-29 5:56 ` Safonov Dmitry
2014-12-29 14:12 ` Stefan Strogin
2014-12-30 2:26 ` Joonsoo Kim
2014-12-30 14:41 ` Michal Nazarewicz
2014-12-30 14:46 ` Safonov Dmitry
2014-12-29 2:36 ` [PATCH 0/3] mm: cma: /proc/cmainfo Minchan Kim
2014-12-29 19:52 ` Laura Abbott
2014-12-30 4:47 ` Minchan Kim
2014-12-30 22:00 ` Laura Abbott
2014-12-31 0:25 ` Minchan Kim
2015-01-21 13:52 ` Stefan Strogin
2015-01-23 6:33 ` Joonsoo Kim
2014-12-31 0:58 ` Gioh Kim
2014-12-31 2:18 ` Minchan Kim
2014-12-31 2:45 ` Gioh Kim
2014-12-31 6:47 ` Namhyung Kim
2014-12-31 7:32 ` Minchan Kim
2015-01-09 14:19 ` Steven Rostedt
2015-01-09 14:35 ` Steven Rostedt
2015-01-13 2:27 ` Minchan Kim
2015-01-02 5:11 ` Pavel Machek
2015-01-22 15:44 ` Stefan Strogin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1419602920.git.s.strogin@partner.samsung.com \
--to=s.strogin@partner.samsung.com \
--cc=akpm@linux-foundation.org \
--cc=aneesh.kumar@linux.vnet.ibm.com \
--cc=d.safonov@partner.samsung.com \
--cc=iamjoonsoo.kim@lge.com \
--cc=lauraa@codeaurora.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=m.szyprowski@samsung.com \
--cc=mina86@mina86.com \
--cc=minchan@kernel.org \
--cc=pintu.k@samsung.com \
--cc=s.dyasly@samsung.com \
--cc=sj38.park@gmail.com \
--cc=v.tyrtov@samsung.com \
--cc=weijie.yang@samsung.com \
--cc=zhuhui@xiaomi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).