{"id":769492,"url":"http://patchwork.ozlabs.org/api/1.2/patches/769492/?format=json","web_url":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170601053440.28976-3-rashmica.g@gmail.com/","project":{"id":2,"url":"http://patchwork.ozlabs.org/api/1.2/projects/2/?format=json","name":"Linux PPC development","link_name":"linuxppc-dev","list_id":"linuxppc-dev.lists.ozlabs.org","list_email":"linuxppc-dev@lists.ozlabs.org","web_url":"https://github.com/linuxppc/wiki/wiki","scm_url":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git","webscm_url":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/","list_archive_url":"https://lore.kernel.org/linuxppc-dev/","list_archive_url_format":"https://lore.kernel.org/linuxppc-dev/{}/","commit_url_format":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}"},"msgid":"<20170601053440.28976-3-rashmica.g@gmail.com>","list_archive_url":"https://lore.kernel.org/linuxppc-dev/20170601053440.28976-3-rashmica.g@gmail.com/","date":"2017-06-01T05:34:40","name":"[v3,3/3] Add documentation for the powerpc memtrace debugfs files","commit_ref":"1f84c2624a2d75c9f69214ed83f11dd30a8ae83d","pull_url":null,"state":"accepted","archived":false,"hash":"58380bdba7af3f08b242868bb017d66355c20f1c","submitter":{"id":71056,"url":"http://patchwork.ozlabs.org/api/1.2/people/71056/?format=json","name":"Rashmica Gupta","email":"rashmica.g@gmail.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170601053440.28976-3-rashmica.g@gmail.com/mbox/","series":[],"comments":"http://patchwork.ozlabs.org/api/patches/769492/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/769492/checks/","tags":{},"related":[],"headers":{"Return-Path":"<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>","X-Original-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Delivered-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Received":["from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3wdbkp5V0mz9s89\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu,  1 Jun 2017 15:39:30 +1000 (AEST)","from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3wdbkp4QXfzDqJ6\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu,  1 Jun 2017 15:39:30 +1000 (AEST)","from mail-pf0-x241.google.com (mail-pf0-x241.google.com\n\t[IPv6:2607:f8b0:400e:c00::241])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3wdbdd6xRpzDqGr\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tThu,  1 Jun 2017 15:35:01 +1000 (AEST)","by mail-pf0-x241.google.com with SMTP id n23so6515997pfb.3\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tWed, 31 May 2017 22:35:01 -0700 (PDT)","from rashmica.ozlabs.ibm.com ([122.99.82.10])\n\tby smtp.gmail.com with ESMTPSA id\n\tt17sm29353697pfj.61.2017.05.31.22.34.56\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 31 May 2017 22:34:59 -0700 (PDT)"],"Authentication-Results":["ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"FrH6CjwS\"; dkim-atps=neutral","lists.ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"FrH6CjwS\"; dkim-atps=neutral","lists.ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"FrH6CjwS\"; dkim-atps=neutral"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=wCivM9OnE4JAOW/VXFR8l3lychD2MpvS59KJYZwpp70=;\n\tb=FrH6CjwShVG0XaQ67m8xsrnme5CJTC+mthFboILxjYEl+9jyFiE6iIA6MlXp3lr/ZW\n\tFu5GWCLp5qUtRva9O1S2BObxYfCa3qQut9dPecy1GqIyWW4yPhW1CfZzG+EJEQgz6Lmy\n\tNBX+H4dlServKw31Qfo/vbOPh7FAxhFyKAnvwhEgMmydbWJ0unPLq/hJRP5v7xl+tl7G\n\t/dhw049kcwPmKwCg0O9CJuvb8fg4pSl2EIBRKR4iCH119SUwUTkEwFffqlZJdiDhNM7T\n\tsftv/Xx5CO05cfEB2yTzwVA3g8bo+/0Q23adWk6VOLHb2/5coRrV4iTbwUtE++MnPdaC\n\tTXsQ==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=wCivM9OnE4JAOW/VXFR8l3lychD2MpvS59KJYZwpp70=;\n\tb=JlDOVnSig2HX/41HZsK4b9zsS6hyV7ack7+PmNm4DZ9ThbVjhmOFBlICFxfhHeU+1Y\n\tA6k/0FuWBDGersvT5800plWnDasU9L13Kq5wWB5oh2tuOyZE3dqtMCcjcSreM8hedthY\n\tFGmmgNk45rjiVTcwYKfkTOaEOLySedz+cppn5/T5HoDBNOOkCzGl2y2smqA5/s1Vqixh\n\tvRgC+V/Bk9lPrms91wkGQkohgmC8b549sXf4mrXFUZEQp2yfuiJum3CvRhwr9JzcLDRy\n\tSM+2dVJLoTcR7zxGH3vLVxeTCDvQnabUK5doa0pLRt8vnpo2m3QLks2hSygLBc/zrw3V\n\tb89g==","X-Gm-Message-State":"AODbwcALsLpNDuuxqriz7/o4A6Z2/ddrxnsIoYhmkxE+VxLvTyoU9kN7\n\tYJdqO07rGyvwlWA6","X-Received":"by 10.99.122.21 with SMTP id v21mr37520426pgc.98.1496295300179; \n\tWed, 31 May 2017 22:35:00 -0700 (PDT)","From":"Rashmica Gupta <rashmica.g@gmail.com>","To":"linuxppc-dev@lists.ozlabs.org, mpe@ellerman.id.au, anton@samba.org,\n\tnpiggin@gmail.com, bsingharora@gmail.com, oohall@gmail.com,\n\tkhandual@linux.vnet.ibm.com","Subject":"[PATCH v3 3/3] Add documentation for the powerpc memtrace debugfs\n\tfiles","Date":"Thu,  1 Jun 2017 15:34:40 +1000","Message-Id":"<20170601053440.28976-3-rashmica.g@gmail.com>","X-Mailer":"git-send-email 2.9.3","In-Reply-To":"<20170601053440.28976-1-rashmica.g@gmail.com>","References":"<20170601053440.28976-1-rashmica.g@gmail.com>","X-BeenThere":"linuxppc-dev@lists.ozlabs.org","X-Mailman-Version":"2.1.23","Precedence":"list","List-Id":"Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>","List-Unsubscribe":"<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>","List-Archive":"<http://lists.ozlabs.org/pipermail/linuxppc-dev/>","List-Post":"<mailto:linuxppc-dev@lists.ozlabs.org>","List-Help":"<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>","List-Subscribe":"<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>","Cc":"Rashmica Gupta <rashmica.g@gmail.com>","Errors-To":"linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org","Sender":"\"Linuxppc-dev\"\n\t<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>"},"content":"CONFIG_PPC64_HARDWARE_TRACING must be set to use this feature. This can only\nbe used on powernv platforms.\n\nSigned-off-by: Rashmica Gupta <rashmica.g@gmail.com>\n---\n Documentation/ABI/testing/ppc-memtrace | 45 ++++++++++++++++++++++++++++++++++\n 1 file changed, 45 insertions(+)\n create mode 100644 Documentation/ABI/testing/ppc-memtrace","diff":"diff --git a/Documentation/ABI/testing/ppc-memtrace b/Documentation/ABI/testing/ppc-memtrace\nnew file mode 100644\nindex 0000000..f7eff02\n--- /dev/null\n+++ b/Documentation/ABI/testing/ppc-memtrace\n@@ -0,0 +1,45 @@\n+What:\t\t/sys/kernel/debug/powerpc/memtrace\n+Date:\t\tMay 2017\n+KernelVersion:\t4.13?\n+Contact:\tlinuxppc-dev@lists.ozlabs.org\n+Description:\tThis folder contains the relevant debugfs files for the\n+\t\thardware trace macro to use. CONFIG_PPC64_HARDWARE_TRACING\n+\t\tmust be set.\n+\n+What:\t\t/sys/kernel/debug/powerpc/memtrace/enable\n+Date:\t\tMay 2017\n+KernelVersion:\t4.13?\n+Contact:\tlinuxppc-dev@lists.ozlabs.org\n+Description:\tWrite an integer containing the size of the memory you want\n+\t\tremoved from each NUMA node to this file - it must be\n+\t\taligned to the memblock size. This amount of RAM will be\n+\t\tremoved from the kernel mappings and the following debugfs\n+\t\tfiles will be created. This can only be successfully done\n+\t\tonce per boot. Once memory is successfully removed from\n+\t\teach node, the following files are created.\n+\n+What:\t\t/sys/kernel/debug/powerpc/memtrace/<node-id>\n+Date:\t\tMay 2017\n+KernelVersion:\t4.13?\n+Contact:\tlinuxppc-dev@lists.ozlabs.org\n+Description:\tThis directory contains information about the removed memory\n+\t\tfrom the specific NUMA node.\n+\n+What:\t\t/sys/kernel/debug/powerpc/memtrace/<node-id>/size\n+Date:\t\tMay 2017\n+KernelVersion:\t4.13?\n+Contact:\tlinuxppc-dev@lists.ozlabs.org\n+Description:\tThis contains the size of the memory removed from the node.\n+\n+What:\t\t/sys/kernel/debug/powerpc/memtrace/<node-id>/start\n+Date:\t\tMay 2017\n+KernelVersion:\t4.13?\n+Contact:\tlinuxppc-dev@lists.ozlabs.org\n+Description:\tThis contains the start address of the removed memory.\n+\n+What:\t\t/sys/kernel/debug/powerpc/memtrace/<node-id>/trace\n+Date:\t\tMay 2017\n+KernelVersion:\t4.13?\n+Contact:\tlinuxppc-dev@lists.ozlabs.org\n+Description:\tThis is where the hardware trace macro will output the trace\n+\t\tit generates.\n","prefixes":["v3","3/3"]}