From patchwork Wed Mar 30 12:00:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 64689 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp2550156lbc; Wed, 30 Mar 2016 05:01:43 -0700 (PDT) X-Received: by 10.107.131.232 with SMTP id n101mr9000001ioi.132.1459339297786; Wed, 30 Mar 2016 05:01:37 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id kd12si6145685pad.15.2016.03.30.05.01.37; Wed, 30 Mar 2016 05:01:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753172AbcC3MBV (ORCPT + 29 others); Wed, 30 Mar 2016 08:01:21 -0400 Received: from mail-wm0-f54.google.com ([74.125.82.54]:33785 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753058AbcC3MBT (ORCPT ); Wed, 30 Mar 2016 08:01:19 -0400 Received: by mail-wm0-f54.google.com with SMTP id r72so96187405wmg.0 for ; Wed, 30 Mar 2016 05:01:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZSB3pehSAQasO6qeB3BaYMuMKSNsubiZjcMgO+z/KZk=; b=WHFAJzcXtK8AB8lQdekzgnZ7XcL1foIompG9zFuBD6cBjbLFLwXkMfCPsryDCdrKx9 IIGGMcwbdyZrfy36MAczNFcg1h6116PnDbuB9wb0HhMFnnb1CGUTUXfVP1duWrBzK8O2 alQnP0bCeDKomgzPVbOeteBzXDLBdR7nR6IeQ= 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=ZSB3pehSAQasO6qeB3BaYMuMKSNsubiZjcMgO+z/KZk=; b=VoNWJg2MEOyWvAHAE9nFaw2wJMJcEOjJj6D60PLDVNr/8Ni3dvdxqECeKxGjf+GmoU XVgs5gQwocU9ggp8PigqLUCpyMgMg2YIGx3Mu+c/tGpVPaj4dKhIHVsukkMzqddRCfUS XPO/9804lIqJ7dU/quy9l0XVAM3EseQPVEDGgTrE16IB1E6aW3N2z/VDhXuW9rLGq0bW 7HHUm56Fq3vlrodPLbe+0KHXVBChnhM/0SY5O6vM440YXP0MRAFt74moj21AtNlK0Ckh 9T47FRKRQZ4pHErZ7WymmHUFf6pTbY6qMVh9or+tF81Zbga9bNbS8GrZnY0l33zNqXKY 0Y4g== X-Gm-Message-State: AD7BkJIOMAK4v5Tfkwnj4Nqw7Izuhy4j/TUjcxEYSJmGDy+8N6OtK76W0csOQAk1J2v0Gepk X-Received: by 10.194.78.83 with SMTP id z19mr8941657wjw.5.1459339276807; Wed, 30 Mar 2016 05:01:16 -0700 (PDT) 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 e190sm1175530wma.15.2016.03.30.05.01.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Mar 2016 05:01:16 -0700 (PDT) From: Kieran Bingham To: jan.kiszka@siemens.com, linux-kernel@vger.kernel.org Cc: lee.jones@linaro.org, peter.griffin@linaro.org, maxime.coquelin@st.com, Kieran Bingham , Jonathan Corbet , linux-doc@vger.kernel.org Subject: [PATCHv4 11/12] scripts/gdb: Add documentation example for radix tree Date: Wed, 30 Mar 2016 13:00:50 +0100 Message-Id: <1459339251-29611-12-git-send-email-kieran.bingham@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1459339251-29611-1-git-send-email-kieran.bingham@linaro.org> References: <1459339251-29611-1-git-send-email-kieran.bingham@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Provide a worked example for utilising the lx_radix_tree_lookup function Cc: Jonathan Corbet Cc: linux-doc@vger.kernel.org Signed-off-by: Kieran Bingham --- Documentation/gdb-kernel-debugging.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) -- 2.5.0 diff --git a/Documentation/gdb-kernel-debugging.txt b/Documentation/gdb-kernel-debugging.txt index 7050ce8794b9..4ab7d43d0754 100644 --- a/Documentation/gdb-kernel-debugging.txt +++ b/Documentation/gdb-kernel-debugging.txt @@ -139,6 +139,27 @@ Examples of using the Linux-provided gdb helpers start_comm = "swapper/2\000\000\000\000\000\000" } + o Dig into a radix tree data structure, such as the IRQ descriptors: + (gdb) print (struct irq_desc)$lx_radix_tree_lookup(irq_desc_tree, 18) + $6 = { + irq_common_data = { + state_use_accessors = 67584, + handler_data = 0x0 <__vectors_start>, + msi_desc = 0x0 <__vectors_start>, + affinity = {{ + bits = {65535} + }} + }, + irq_data = { + mask = 0, + irq = 18, + hwirq = 27, + common = 0xee803d80, + chip = 0xc0eb0854 , + domain = 0xee808000, + parent_data = 0x0 <__vectors_start>, + chip_data = 0xc0eb0854 + } <... trimmed ...> List of commands and functions ------------------------------