From patchwork Tue Jun 19 05:25:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Neuling X-Patchwork-Id: 931377 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 418xJW1Dysz9s4v for ; Tue, 19 Jun 2018 15:26:03 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=neuling.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 418xJV55qLzDrcd for ; Tue, 19 Jun 2018 15:26:02 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=neuling.org X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 418xJ52nCQzF0fX for ; Tue, 19 Jun 2018 15:25:41 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=neuling.org Received: from localhost.localdomain (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 418xJ44MSkz9s4w; Tue, 19 Jun 2018 15:25:40 +1000 (AEST) Received: by localhost.localdomain (Postfix, from userid 1000) id 6BFB4EE78C1; Tue, 19 Jun 2018 15:25:40 +1000 (AEST) From: Michael Neuling To: alistair@popple.id.au Date: Tue, 19 Jun 2018 15:25:23 +1000 Message-Id: <20180619052535.24043-6-mikey@neuling.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180619052535.24043-1-mikey@neuling.org> References: <20180619052535.24043-1-mikey@neuling.org> Subject: [Pdbg] [PATCH 06/18] htm: Remove trace and analyse X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: grimm@linux.vnet.ibm.com, pdbg@lists.ozlabs.org MIME-Version: 1.0 Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" These don't really make and sense. We are going to make things simpler with start, stop, dump and also add a record commands that does it all. Signed-off-by: Michael Neuling --- src/htm.c | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/src/htm.c b/src/htm.c index 8e99ef2ebb..1103b9c8c9 100644 --- a/src/htm.c +++ b/src/htm.c @@ -211,40 +211,6 @@ static int run_dump(enum htm_type type) return rc; } -static int run_trace(enum htm_type type) -{ - int rc; - - rc = run_reset(type); - if (rc == 0) { - printf("No HTM units were reset.\n"); - printf("It is unlikely anything will start... trying anyway\n"); - } - - rc = run_start(type); - if (rc == 0) - printf("No HTM units were started\n"); - - return rc; -} - -static int run_analyse(enum htm_type type) -{ - int rc; - - rc = run_stop(type); - if (rc == 0) { - printf("No HTM units were stopped.\n"); - printf("It is unlikely anything will dump... trying anyway\n"); - } - - rc = run_dump(type); - if (rc == 0) - printf("No HTM buffers were dumped to file\n"); - - return rc; -} - static struct { const char *name; const char *args; @@ -256,8 +222,6 @@ static struct { { "status", "", "Get %s HTM status", &run_status }, { "reset", "", "Reset %s HTM", &run_reset }, { "dump", "", "Dump %s HTM buffer to file", &run_dump }, - { "trace", "", "Configure and start %s HTM", &run_trace }, - { "analyse","", "Stop and dump %s HTM", &run_analyse}, }; static void print_usage(enum htm_type type)