Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2420472pxu; Fri, 18 Dec 2020 12:51:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJx/WwhvT/MO3a/4ZlN5tf7Kah0Q/LdrINPTR28A5rcdnkH10vsj1lG9Uu+ZPNm81Kwe+/PQ X-Received: by 2002:a17:906:1a4e:: with SMTP id j14mr5761723ejf.507.1608324675596; Fri, 18 Dec 2020 12:51:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608324675; cv=none; d=google.com; s=arc-20160816; b=ScsmKncS9uHEBTUklYAu+fVuuEDe2DToLEbyRgAI9g92i5qKVQKmFKhcc2OJdW8TUF S/L47qZC4i1NXEMGojMqVkMAEGxvsR4zhF6Vey4BX3C1kKo6meX/kOeHxhTJWX1Pr5Pf 3W9ztVifWkgeflo5zXK7x/XNg4J0NUhnzrcUBrD5Ohsuudss0oGt+WWGEzT0DyWWVBoh /Xt3CT83k1+chbSw/EPkEeNzCWrYeZy06thq5OppkOkqX/hTJ7S6ePeeJ6ufbhYmmIhR SbU6I5BGURIEB+d4B9RiPh9rc8jK0NeQ2Bp9x4Dyeqq923bWPqLYd15Ldhtcde4unljr m8yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=h5j5/xV2pbOpdG2BBGCtsw2z0PV21PcVqfX1sCFjv0s=; b=NvEwJo70ic88zVoVoqDks2nmb6y1RPmumRLWH+LnGJJgJE7ToLf674mTDsfUOuBvXV gZ8CA/qRY46wDtv5O3Du9dX6vbxOzF5bddQ65qCbOSyJtH3PGlDi30/rG2B98t6xF7aH adaAAKzH4mRrC5DVUNd/M5Bc6vgCVy5UKnxQE7klUQU+ykWNIAw6qHZS4CwlighcBtII KCmJNIe1QD2PXMdTqv/5LQkR9QhiJivZcZaEAtIjb6jcnv/m7u5bpdO9YKAap08wyvon ABXjtROCQfynfwezYnjoync6bMMypESKMzzvKQRg9/BPr/wH344k+ny1K32uoDO0hWxC aT0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HnOaYzgQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y26si5252127ejb.149.2020.12.18.12.50.53; Fri, 18 Dec 2020 12:51:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HnOaYzgQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726039AbgLRTcY (ORCPT + 99 others); Fri, 18 Dec 2020 14:32:24 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:34118 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725907AbgLRTcX (ORCPT ); Fri, 18 Dec 2020 14:32:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1608319857; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=h5j5/xV2pbOpdG2BBGCtsw2z0PV21PcVqfX1sCFjv0s=; b=HnOaYzgQozaeGagCw6vs4DcyLdBwl+0vx3oPzIsfiFUQKLgZFxjMVQEtQKD2N1hWZf7GC9 bFIPhBjNRa99JkwpTJBDh2dlxKYsWYOqgW4hASs6a1SvZCu7/73LF2wuoxh223oG3d/TvW 8dq+S4Z+wEsjeZASOcQwRRK4Pl89o/E= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-254-8nlXG9VNN0iWic-1WH4Ldg-1; Fri, 18 Dec 2020 14:30:53 -0500 X-MC-Unique: 8nlXG9VNN0iWic-1WH4Ldg-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 008E4107ACE6; Fri, 18 Dec 2020 19:30:51 +0000 (UTC) Received: from krava (unknown [10.40.192.37]) by smtp.corp.redhat.com (Postfix) with SMTP id 937AF3AA2; Fri, 18 Dec 2020 19:30:47 +0000 (UTC) Date: Fri, 18 Dec 2020 20:30:46 +0100 From: Jiri Olsa To: Namhyung Kim Cc: Alexei Budankov , Jiri Olsa , Arnaldo Carvalho de Melo , lkml , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Michael Petlan , Ian Rogers , Stephane Eranian Subject: Re: [PATCH 4/8] perf daemon: Add daemon command Message-ID: <20201218193046.GD105234@krava> References: <20201212104358.412065-1-jolsa@kernel.org> <20201212104358.412065-5-jolsa@kernel.org> <1e467abe-4613-765f-5138-6215b711f9fb@huawei.com> <20201215194354.GH698181@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 18, 2020 at 10:25:06PM +0900, Namhyung Kim wrote: SNIP > > > > so the current way is, that following creates daemon: > > > > # perf daemon --config > > > > and any other 'non --config' option' is used to 'query/control' daemon: > > > > # perf daemon > > # perf daemon --signal > > # perf daemon --stop > > ... > > My opinion is that it'd be better having sub-commands for essential > operations like start, stop. Also daemons tend to have 'status' or > 'reload' operations too. > > # perf daemon start --config ... > # perf daemon stop ok, seems better > > As a system daemon, I agree it should follow the standard location > for the default base directory and config file. currently we have this order: 1. custom perfconfig if specified 2. system perf config /etc/perfconfig if exists 3. $HOME/.perfconfig if exists I think we should keep that, when there's a perf systemd service config file for this, it can use --config 'whatever' jirka