From patchwork Wed Jul 17 08:53:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yordan Karadzhov X-Patchwork-Id: 11047475 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4AE80138B for ; Wed, 17 Jul 2019 08:53:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2C3D6286AC for ; Wed, 17 Jul 2019 08:53:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1C4EA28716; Wed, 17 Jul 2019 08:53:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C8298286AC for ; Wed, 17 Jul 2019 08:53:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726188AbfGQIxg (ORCPT ); Wed, 17 Jul 2019 04:53:36 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:54832 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725890AbfGQIxg (ORCPT ); Wed, 17 Jul 2019 04:53:36 -0400 Received: by mail-wm1-f65.google.com with SMTP id p74so21266507wme.4 for ; Wed, 17 Jul 2019 01:53:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=b3GT1b5uvh7uZiyHBocSd/6MDhzcL8hqUa4RJ2qQG1E=; b=MjqvzOIVMWwCg/Y243ooC5bODl0y8MskpCD9mnEyKUGOkUOrN6m149g12O+Hb8RsE+ 3HRWfhot3GHKeyV0cZ8Cg9Dv7YDz55FN+mUR6H7vS2gLOPea+GHYaUGvoAO77PUPuGMt yy8BHgHCqyWnlNySbfBdNGEZAIRLRBXu5ZLOLF35wE9y67EcbfdnGPKu00yUjLhJ30q4 B31ym2HyRtJ8y0lAnIm5T1wqgUz5PWFcl590W8FtZFunOi+jaPQrfZKNCPR5n+d8+pCJ mg5kvccQc0Ip5YyGJ+NYXDc+/8loTqI16/lgyPtnRKCoFDAgu1PvEULDE0nyTjfW1ePT C8lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=b3GT1b5uvh7uZiyHBocSd/6MDhzcL8hqUa4RJ2qQG1E=; b=pL34y1EquBtHjGENL7SXPypwn195682rsGCkMJLRoNhnVhao2CxrSyhurmuBJo7ta8 6x7w1YOx0aVd4LOS7d0fqEp08p8Z10n2A4f6mgzntLP4spwst+e/6kDB4KY9NUGFRy6a ULeolgcVBteq6U9rYr2mNOlSxPA6l/uvKlsp8UsO8qAzAcoOAwlhDmoYGpu6kIsUsyGs cR2ciBh4SvDNGYbvoJY19LBpWjvx7vQFUPZWUoda6ffPZYxgyqKjkgqIUf9rMd2U+Y6F /d0h2MFYRxJWqwSn4Ts+HYpx6SRFID1WGpAUb8bOVvHF0zDGWvob49wQJ3bevgZ126M7 Nc8w== X-Gm-Message-State: APjAAAUD2OTcesrwJmqIXnPWo6nsrAin3hrVRPqP3Sbthf5MNrIQf/qS k+nn4GvbaScYgCS9ijb9UbM= X-Google-Smtp-Source: APXvYqyAxQmPW/KQ4FEpNlBzUPJ0SUyRLpI0Gudfv9kL+t/XUiF4RMqGpmQKs0ye2kf19KvIRLzfZA== X-Received: by 2002:a7b:c933:: with SMTP id h19mr36589676wml.52.1563353614627; Wed, 17 Jul 2019 01:53:34 -0700 (PDT) Received: from mamba.eng.vmware.com ([146.247.46.5]) by smtp.gmail.com with ESMTPSA id w23sm24102127wmi.45.2019.07.17.01.53.33 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 17 Jul 2019 01:53:34 -0700 (PDT) From: "Yordan Karadzhov (VMware)" To: rostedt@goodmis.org Cc: linux-trace-devel@vger.kernel.org, "Yordan Karadzhov (VMware)" Subject: [PATCH 0/2] Fixes for KS 1.0 Date: Wed, 17 Jul 2019 11:53:04 +0300 Message-Id: <20190717085306.12393-1-y.karadz@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-trace-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-trace-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP It turns that there are number of ways to crash the GUI if you click buttons or play with the mouse before any data is loaded. This patch-set tries to get this fixed. Yordan Karadzhov (VMware) (2): kernel-shark: Initialize the data-related fields of the model kernel-shark: Always check if data is loaded before changing the graphs kernel-shark/src/KsGLWidget.cpp | 22 ++++++++++++++++++++-- kernel-shark/src/KsGLWidget.hpp | 2 ++ kernel-shark/src/KsTraceGraph.cpp | 9 +++++++++ kernel-shark/src/libkshark-model.c | 3 +++ 4 files changed, 34 insertions(+), 2 deletions(-)