Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753070AbbDBNOD (ORCPT ); Thu, 2 Apr 2015 09:14:03 -0400 Received: from mailout4.w1.samsung.com ([210.118.77.14]:50891 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753022AbbDBNN7 (ORCPT ); Thu, 2 Apr 2015 09:13:59 -0400 X-AuditID: cbfec7f5-b7fc86d0000066b7-c3-551d3fe92221 From: Stefan Strogin To: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Joonsoo Kim , Andrew Morton Cc: Stefan Strogin , Stefan Strogin , Steven Rostedt , Ingo Molnar , Marek Szyprowski , Michal Nazarewicz , aneesh.kumar@linux.vnet.ibm.com, Laurent Pinchart , Sasha Levin , Dmitry Safonov , Pintu Kumar , Laura Abbott , Dyasly Sergey , Vyacheslav Tyrtov , Aleksei Mateosian , gioh.kim@lge.com Subject: [PATCH] mm-cma-add-trace-events-for-cma-allocations-and-freeings-fix Date: Thu, 02 Apr 2015 16:13:17 +0300 Message-id: <1427980397-21832-1-git-send-email-stefan.strogin@gmail.com> X-Mailer: git-send-email 2.1.0 In-reply-to: <551D3E73.9070405@partner.samsung.com> References: <551D3E73.9070405@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrCLMWRmVeSWpSXmKPExsVy+t/xa7ov7WVDDb6uFrF4OG8Su8Wc9WvY LB6/nsdi8WnlUzaLZ01fGC1WdjezWWzvnMFu0TlxCbvF5V1z2CzurfnParH2yF12iwXHW1gt Lh1YwGTR9/0wu8W+jgdMFpNnS1l8OzmH2WLxkdvMFpff/Ge3mDrjB7uDiMflvl4mj52z7rJ7 tOy7xe4xu2Mmq8emT5PYPbreXmHyODHjN4vHg0ObWTzW/XnF5PHx6S0Wj4Pv9jB5vN93lc2j b8sqRo/Pm+QC+KK4bFJSczLLUov07RK4Mnr+3WEveMJT8a9rA3sDYxtXFyMnh4SAicSVTYuZ IGwxiQv31rN1MXJxCAksZZT4emcrK4TTyySx9OlXVpAqNgF9ia7LU5hAEiIC7YwSi9vWgLUw C0xilWibvAhslrCAr0T7jg1gHSwCqhJf3t5lB7F5BTwkHu05yQyxT05iw+7/jCA2p4CxRM/K qUC9HEDrjCQOvXWawMi7gJFhFaNoamlyQXFSeq6RXnFibnFpXrpecn7uJkZIzHzdwbj0mNUh RgEORiUe3gZrmVAh1sSy4srcQ4wSHMxKIrwPtGVDhXhTEiurUovy44tKc1KLDzEycXBKNTDe rN7Xv+NR/aaXn107pHRDTl49IxQ354X+vQzl8ENr17Asn5ZY9tOO7fmMwiUWj1g5wx6auV54 XveJcc2LzVaGikcCD5361jVZb/GXDrEa62NbFv59vjVOppbbefO/l3IWr+O+B58Uez1nsaBI nI3swmLO9D/vbO3if7PzMWUv3nV9S7zpxKIMJZbijERDLeai4kQAEoA0u3cCAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1819 Lines: 67 Trace 'align' too in cma_alloc trace event. Signed-off-by: Stefan Strogin --- include/trace/events/cma.h | 11 +++++++---- mm/cma.c | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/include/trace/events/cma.h b/include/trace/events/cma.h index e01b35d..d7cd961 100644 --- a/include/trace/events/cma.h +++ b/include/trace/events/cma.h @@ -10,26 +10,29 @@ TRACE_EVENT(cma_alloc, TP_PROTO(unsigned long pfn, const struct page *page, - unsigned int count), + unsigned int count, unsigned int align), - TP_ARGS(pfn, page, count), + TP_ARGS(pfn, page, count, align), TP_STRUCT__entry( __field(unsigned long, pfn) __field(const struct page *, page) __field(unsigned int, count) + __field(unsigned int, align) ), TP_fast_assign( __entry->pfn = pfn; __entry->page = page; __entry->count = count; + __entry->align = align; ), - TP_printk("pfn=%lx page=%p count=%u", + TP_printk("pfn=%lx page=%p count=%u align=%u", __entry->pfn, __entry->page, - __entry->count) + __entry->count, + __entry->align) ); TRACE_EVENT(cma_release, diff --git a/mm/cma.c b/mm/cma.c index e9410b7c..3a7a67b 100644 --- a/mm/cma.c +++ b/mm/cma.c @@ -416,7 +416,7 @@ struct page *cma_alloc(struct cma *cma, unsigned int count, unsigned int align) start = bitmap_no + mask + 1; } - trace_cma_alloc(page ? pfn : -1UL, page, count); + trace_cma_alloc(page ? pfn : -1UL, page, count, align); pr_debug("%s(): returned %p\n", __func__, page); return page; -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/