]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: cma: add trace events for CMA allocations and freeings
authorStefan Strogin <s.strogin@partner.samsung.com>
Tue, 7 Apr 2015 23:44:35 +0000 (09:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 7 Apr 2015 23:44:35 +0000 (09:44 +1000)
commit60fb1afcd240f76a8ec754451488fc92825c2e05
treeaf059be5dfc03dde0f1b286235842c1bef90e8e8
parent377a492963c48b02f7939872a3c71687c5f7d5aa
mm: cma: add trace events for CMA allocations and freeings

Add trace events for cma_alloc() and cma_release().

The cma_alloc tracepoint is used both for successful and failed allocations,
in case of allocation failure pfn=-1UL is stored and printed.

Signed-off-by: Stefan Strogin <stefan.strogin@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Michal Nazarewicz <mpn@google.com>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Cc: Thierry Reding <treding@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/trace/events/cma.h [new file with mode: 0644]
mm/cma.c