From patchwork Fri Feb 26 11:02:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 63036 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp644407lbc; Fri, 26 Feb 2016 03:03:00 -0800 (PST) X-Received: by 10.66.234.166 with SMTP id uf6mr1155681pac.122.1456484580682; Fri, 26 Feb 2016 03:03:00 -0800 (PST) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id s9si19267530pfa.176.2016.02.26.03.03.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Feb 2016 03:03:00 -0800 (PST) Received-SPF: pass (google.com: domain of gdb-patches-return-129953-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gdb-patches-return-129953-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gdb-patches-return-129953-patch=linaro.org@sourceware.org; dkim=pass header.i=@sourceware.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=MBBs5nOezF2loEzt9DX5X8pUTsS8ad4 YChbsynL7jSlarkRwFhYsuBuIZUC+00wUBAprWo5dSoSXnuhjEMVQ+UDz52uJeUv 14b1f6wxM1AzUsdE3JchXZDALL5cIxSPJdACRVa8YnOOni0DR5B5ebzUmeuyLQTP VA4clwBHsUMc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references; s=default; bh=X1oKXx6/XxXQ2TV2iHYFS0PWYww=; b=j20AM tLi5PZNSm7Jz5bS1hFonU4pexbQYJcUgamcNNbkK7xWzsl5SMu70mSOMe1Vh1vxv cPcLmL/x7iieInhvD5zh6AB7QLzFXyH0s1ktoeioOnyeRibtjt5o0VEyO8TtDqWx 3rtXkICvxzvCuKvPFgAqCJ6eBHvjUe5fS9AboU= Received: (qmail 11282 invoked by alias); 26 Feb 2016 11:02:49 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 11247 invoked by uid 89); 26 Feb 2016 11:02:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=1096, Hx-languages-length:1229, slip, idle X-HELO: mail-wm0-f46.google.com Received: from mail-wm0-f46.google.com (HELO mail-wm0-f46.google.com) (74.125.82.46) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 26 Feb 2016 11:02:47 +0000 Received: by mail-wm0-f46.google.com with SMTP id c200so67275560wme.0 for ; Fri, 26 Feb 2016 03:02:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=9wEMIyD0lsjaufiGtdOLOAinHJgxuHJK9NI+FcJnhv0=; b=lQ8PDONVMYpvYD+q1cMuPos5DDq8wKiYPClacTCLEGUTdjrj4O2tX8FxBkDL9cBoDC Bsvx7M7xuY1vdGa0c99a5IUIyQUL6Qp1pivp2Z02MG/7LK6qcC8csIsGsnPXnW9jFcgT wiUmO/h+pzvq73drCYIL/q93jtkjmk/tRbrum8GdaeWykEKBKkbd2vyafSEHiJ/bSEwA 5o9Ni8adnFDI8XHNdGCuhZuOu64UCI49OOZXWhOVnHaIITssgThyxFbEmWB8za/2qZAy 3SHyMD4T36OmeV8C3OVHJ4FXVAoEkgLqhPNArJLmbLnxkt2KIYMTbX2AeTsIW2f/PKeY KLZQ== X-Gm-Message-State: AD7BkJIpYyBKnYqkuEJvU1Hen7y2E4uEM9BEhYyHigHuUAIqxHnIZwHvPAP3ex0T1BazAN6e X-Received: by 10.28.104.87 with SMTP id d84mr2637774wmc.56.1456484564616; Fri, 26 Feb 2016 03:02:44 -0800 (PST) Received: from localhost.localdomain (cpc87017-aztw30-2-0-cust65.18-1.cable.virginm.net. [92.232.232.66]) by smtp.gmail.com with ESMTPSA id hm9sm11909695wjb.34.2016.02.26.03.02.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 Feb 2016 03:02:43 -0800 (PST) From: Kieran Bingham To: gdb-patches@sourceware.org Cc: arnez@linux.vnet.ibm.com, jeffm@suse.com, peter.griffin@linaro.org, lee.jones@linaro.org, yao.qi@linaro.org, russell.wayman@linaro.org, kernel@stlinux.com, Kieran Bingham Subject: [PATCH] squash! gdb/lkd: Add Linux Kernel Awareness target Date: Fri, 26 Feb 2016 11:02:41 +0000 Message-Id: <1456484561-16109-1-git-send-email-kieran.bingham@linaro.org> In-Reply-To: <1456427706-30077-4-git-send-email-kieran.bingham@linaro.org> References: <1456427706-30077-4-git-send-email-kieran.bingham@linaro.org> Apologies for the rookie-mistake here: Remove unused mmu_info structure from lkd-process I can't believe I let this slip. I was sure I tested this build before sending this patchset, but here it is. It fails to build from clean. I clearly missed these two lines from my aggressive code chopping Tag updated to include this commit for anyone who actually looks to try this functionality out. --- gdb/lkd/lkd-process.c | 3 --- 1 file changed, 3 deletions(-) -- 2.5.0 diff --git a/gdb/lkd/lkd-process.c b/gdb/lkd/lkd-process.c index 5f791da9e5e2..ac80141a1d97 100644 --- a/gdb/lkd/lkd-process.c +++ b/gdb/lkd/lkd-process.c @@ -109,8 +109,6 @@ CORE_ADDR rq_idle[MAX_CORES]; /*rq->idle */ static int process_counts[MAX_CORES]; static int last_pid; -struct mmu_infos mmu_info[MAX_CORES]; - static int find_thread_lwp (struct thread_info *tp, void *arg) @@ -715,7 +713,6 @@ lkd_proc_init (void) struct cleanup *cleanup; memset (per_cpu_offset, 0, MAX_CORES * sizeof (uint32_t)); - memset (mmu_info, 0, MAX_CORES * sizeof (struct mmu_infos)); /* ensure thread list from beneath target is up to date */ cleanup = make_cleanup_restore_integer (&print_thread_events);