From patchwork Fri Mar 8 14:31:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tzvetomir Stoyanov X-Patchwork-Id: 10845015 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 C7B2C139A for ; Fri, 8 Mar 2019 14:31:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B324F2F042 for ; Fri, 8 Mar 2019 14:31:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B13D42F0E8; Fri, 8 Mar 2019 14:31:30 +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=-7.9 required=2.0 tests=BAYES_00,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 A1B852F0C8 for ; Fri, 8 Mar 2019 14:31:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726581AbfCHOb3 (ORCPT ); Fri, 8 Mar 2019 09:31:29 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:39758 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726528AbfCHOb3 (ORCPT ); Fri, 8 Mar 2019 09:31:29 -0500 Received: by mail-wr1-f67.google.com with SMTP id l12so5133640wrp.6 for ; Fri, 08 Mar 2019 06:31:27 -0800 (PST) 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=Elqi1Oc4pysCxtrozQjmSlMTnm5ZVInYLlnHr7RtsiA=; b=sjoucVlPVNn1wg3HOgUjzwUZ+mW84O+6HY+uCzzBvFIaLCVFAenUXxX/jGY6NGiyUr g7xVgWy4iEyl8y8FgNZXGXWvDxJmFE/sdjVLeqJ/hD55DeuNG79lD05Uzto4wJVRoY36 Gr9jQKpcWaYlAMfZ95pTJbDsH3/QBnHp8UilUANRLbPEvAJGYMKHXTzkCYH7mP+nrhYa k9ilia9xznYmYRkcirfNrn6jGcQ1mkP1yt0Az515nh6ZlRzxmdFiSM+wVtpFM4lzvl4W dsX8AmEp/YsbJ9kwRyG9BipVeIZQ6TYemkXSfPwCSaz/A6S87XzuBngmYTPsxFl782bx +xuA== X-Gm-Message-State: APjAAAUFqhctGnM0u7nqFR8/JZOaOzuT8U6/wgz6WfxgEhp45ihNY6tb a4mGv0coyIYMAQqmr9SmiwL8vUJT X-Google-Smtp-Source: APXvYqy0CDtGNV/mbJ+YTAPR6t0F3bRmyAWq1mWfzSeeWTFbufjVyooJETWX1CmSqWdxVNSmqDi/GQ== X-Received: by 2002:adf:f089:: with SMTP id n9mr5574105wro.313.1552055487247; Fri, 08 Mar 2019 06:31:27 -0800 (PST) Received: from oberon.eng.vmware.com ([146.247.46.5]) by smtp.gmail.com with ESMTPSA id t3sm13495654wmc.20.2019.03.08.06.31.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Mar 2019 06:31:26 -0800 (PST) From: Tzvetomir Stoyanov To: rostedt@goodmis.org Cc: linux-trace-devel@vger.kernel.org Subject: [PATCH v3 0/7] trace-cmd reset fixes Date: Fri, 8 Mar 2019 16:31:18 +0200 Message-Id: <20190308143125.31168-1-tstoyanov@vmware.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 [ V3 changes: - Refactored reset_max_latency() and reset_max_latency_instance(), as Steven Rostedt suggested. V2 changes: - Fixed subjects of the patches. - Refactored add_event_pid() and reset_event_pid(), as Steven Rostedt suggested. ] This patch series fixes "trace-cmd reset" command to restore default values of various ftrace configurations: tracng_on, trace_clock, set_event_pid and tracing_max_latency. It also fixes a segfault when the command is executed with "-a -d" options. Tzvetomir Stoyanov (6): trace-cmd: Fix "trace-cmd reset" command to restore "tracng_on" trace-cmd: Fix "trace-cmd reset -a -d" segfault trace-cmd: Fix "trace-cmd reset" command to restore default clock trace-cmd: Reafctored add_event_pid()to utilize write_instance_file() trace-cmd: Fix "trace-cmd reset" command to restore the default value of set_event_pid trace-cmd: Reafctored reset_max_latency() to utilize write_instance_file() Yordan Karadzhov (1): kernel-shark: Fix a bug in ksmodel_set_next_bin_edge() kernel-shark/src/libkshark-model.c | 9 -- tracecmd/trace-record.c | 137 ++++++++++++++++------------- 2 files changed, 75 insertions(+), 71 deletions(-)