Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp96958ybp; Thu, 3 Oct 2019 10:42:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqwdMHCG9CoTvKxU2N/4L732WDxSd6IaDawp9I64Y1zYnP58UJKedxqSYmL9nP9BQtvaK0Oe X-Received: by 2002:a17:906:95cf:: with SMTP id n15mr8760201ejy.183.1570124548833; Thu, 03 Oct 2019 10:42:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570124548; cv=none; d=google.com; s=arc-20160816; b=eLoOiMjFi+zHmhCSdyJhpE1SV8a6E2HUuG83MA6u1l93xp45wkXa2vL4aGXCwFAIEh spW9aEDdFksxcsNvfWMiKyW1uggsaGOwIrQhvDWynNmnNlPCz6pQzJU2IhCh7B/lLMwM kwIgq6tU9opuDqVmX7Thyk7VVLOFIuto2nPm3WPkYyjfuoXWY+g1PI2MCS9n7XuhCN4r Q3aPu+brcstWq+WbaFim8KDrmiuaHGBGmrKTlq92J/l5mazg3w/11lu+CtBX0EznlDFC G0owOVcBiX4rjKEfXMqYPmJlIMilHz6137DvNSPh2ZvHTG5/Qc2gZYpmbgtrV4bP0exg zuXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=LITrsDwKMTwprf8ijbszzTrbz4stPIVUAsEEter7p38=; b=mIA/im2TxWX9GAqX/Z2xp5f3MLywOqK+IuQ4dxCD7B497WgwBQCZqD/Nt66n4/U3yV 3F+tui51BQXgldm8KGR2A8d2Bub55tAUidfPRYOuKs2VtRzU9mijZ4dgVwvykmyf/8xp AuBEXIKRHIu7A/CXew/3n4/B5h0xZM5J/NvB3tRk7JDEQh4c9Irh3ER4/HLo6+904dfg xCO6fWzLy/Jhe6Dq4aWjrhoezz2tIvDM8ppOvTYKhA+ztJ4OcqsnJWMjZSIYjGGYyiTW GQbbpb0XANE5nqBa11KFBRmo/IXU7lCYoCHNrunpyUEIvbulZDbHsyvngE420Zi/7mfL HQ7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="I9/F+duV"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w2si2006604edc.386.2019.10.03.10.42.01; Thu, 03 Oct 2019 10:42:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="I9/F+duV"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390042AbfJCRSO (ORCPT + 99 others); Thu, 3 Oct 2019 13:18:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:49862 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390156AbfJCQVe (ORCPT ); Thu, 3 Oct 2019 12:21:34 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7BC3520659; Thu, 3 Oct 2019 16:21:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570119693; bh=8MmppN0wk6iJ6HlwRzJl5OGpV+msx+sgDG0ZWr1rF/o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=I9/F+duVd4sxMBCwIrCZjp3CyOBoW5b2cP+pB0mc0D6fCOpKmH1MPDlAsxJtnOjD9 K/5BZytGttEXhJWSrEWk6Q4rt1oNZWtrF+MevNy06AqHOmN9/Sy0QMr3GCKE35bbG4 bT/+xAK5usuWV16iAjeGevvFqXAAmLUKKyPN3jLg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Patrick McLean , Tzvetomir Stoyanov , Andrew Morton , Jiri Olsa , Namhyung Kim , linux-trace-devel@vger.kernel.org, "Steven Rostedt (VMware)" , Arnaldo Carvalho de Melo , Sasha Levin Subject: [PATCH 4.19 119/211] libtraceevent: Change users plugin directory Date: Thu, 3 Oct 2019 17:53:05 +0200 Message-Id: <20191003154514.403362132@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191003154447.010950442@linuxfoundation.org> References: <20191003154447.010950442@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tzvetomir Stoyanov [ Upstream commit e97fd1383cd77c467d2aed7fa4e596789df83977 ] To be compliant with XDG user directory layout, the user's plugin directory is changed from ~/.traceevent/plugins to ~/.local/lib/traceevent/plugins/ Suggested-by: Patrick McLean Signed-off-by: Tzvetomir Stoyanov Cc: Andrew Morton Cc: Jiri Olsa Cc: Namhyung Kim Cc: Patrick McLean Cc: linux-trace-devel@vger.kernel.org Link: https://lore.kernel.org/linux-trace-devel/20190313144206.41e75cf8@patrickm/ Link: http://lore.kernel.org/linux-trace-devel/20190801074959.22023-4-tz.stoyanov@gmail.com Link: http://lore.kernel.org/lkml/20190805204355.344622683@goodmis.org Signed-off-by: Steven Rostedt (VMware) Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Sasha Levin --- tools/lib/traceevent/Makefile | 6 +++--- tools/lib/traceevent/event-plugin.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile index 0b4e833088a4d..95a43ccb6dd09 100644 --- a/tools/lib/traceevent/Makefile +++ b/tools/lib/traceevent/Makefile @@ -55,15 +55,15 @@ set_plugin_dir := 1 # Set plugin_dir to preffered global plugin location # If we install under $HOME directory we go under -# $(HOME)/.traceevent/plugins +# $(HOME)/.local/lib/traceevent/plugins # # We dont set PLUGIN_DIR in case we install under $HOME # directory, because by default the code looks under: -# $(HOME)/.traceevent/plugins by default. +# $(HOME)/.local/lib/traceevent/plugins by default. # ifeq ($(plugin_dir),) ifeq ($(prefix),$(HOME)) -override plugin_dir = $(HOME)/.traceevent/plugins +override plugin_dir = $(HOME)/.local/lib/traceevent/plugins set_plugin_dir := 0 else override plugin_dir = $(libdir)/traceevent/plugins diff --git a/tools/lib/traceevent/event-plugin.c b/tools/lib/traceevent/event-plugin.c index f17e25097e1e2..52874eb94acef 100644 --- a/tools/lib/traceevent/event-plugin.c +++ b/tools/lib/traceevent/event-plugin.c @@ -16,7 +16,7 @@ #include "event-parse.h" #include "event-utils.h" -#define LOCAL_PLUGIN_DIR ".traceevent/plugins" +#define LOCAL_PLUGIN_DIR ".local/lib/traceevent/plugins/" static struct registered_plugin_options { struct registered_plugin_options *next; -- 2.20.1