From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751649AbdJBNCJ (ORCPT ); Mon, 2 Oct 2017 09:02:09 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:38624 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751241AbdJBNCG (ORCPT ); Mon, 2 Oct 2017 09:02:06 -0400 X-Google-Smtp-Source: AOwi7QCYYdcAYrl3tdirPRlwai7CPAGN5GP6JPl/4bD9zg1JP8bmq33u+wQe3pf0L4VpazH4LO1PSA== From: Matthieu CASTET To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Catalin Marinas , Matthieu CASTET Subject: [PATCH] [DEV] dma mapping : export caller to vmallocinfo Date: Mon, 2 Oct 2017 15:01:55 +0200 Message-Id: <20171002130155.19325-1-matthieu.castet@parrot.com> X-Mailer: git-send-email 2.14.2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For example on arm64 board, this add info to "user" entries in vmallocinfo Before : [...] 0xffffff8008997000 0xffffff80089d8000 266240 user [...] Afer : [...] 0xffffff8008997000 0xffffff80089d8000 266240 atomic_pool_init+0x0/0x1d8 user [...] This help to debug mapping issues, and is consistent with others entries (ioremap, vmalloc, ...) that already provide caller. Signed-off-by: Matthieu CASTET --- arch/arm64/mm/dma-mapping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/mm/dma-mapping.c b/arch/arm64/mm/dma-mapping.c index 614af886b7ef..115b32639a3c 100644 --- a/arch/arm64/mm/dma-mapping.c +++ b/arch/arm64/mm/dma-mapping.c @@ -166,7 +166,7 @@ static void *__dma_alloc(struct device *dev, size_t size, /* create a coherent mapping */ page = virt_to_page(ptr); coherent_ptr = dma_common_contiguous_remap(page, size, VM_USERMAP, - prot, NULL); + prot, __builtin_return_address(0)); if (!coherent_ptr) goto no_map; -- 2.14.2