Skip to content

Commit e97fd13

Browse files
tzstoyanovacmel
authored andcommitted
libtraceevent: Change users plugin directory
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 <chutzpah@gentoo.org> Signed-off-by: Tzvetomir Stoyanov <tstoyanov@vmware.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Patrick McLean <chutzpah@gentoo.org> 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) <rostedt@goodmis.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 5d6552a commit e97fd13

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎tools/lib/traceevent/Makefile‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ set_plugin_dir := 1
6262

6363
# Set plugin_dir to preffered global plugin location
6464
# If we install under $HOME directory we go under
65-
# $(HOME)/.traceevent/plugins
65+
# $(HOME)/.local/lib/traceevent/plugins
6666
#
6767
# We dont set PLUGIN_DIR in case we install under $HOME
6868
# directory, because by default the code looks under:
69-
# $(HOME)/.traceevent/plugins by default.
69+
# $(HOME)/.local/lib/traceevent/plugins by default.
7070
#
7171
ifeq ($(plugin_dir),)
7272
ifeq ($(prefix),$(HOME))
73-
override plugin_dir = $(HOME)/.traceevent/plugins
73+
override plugin_dir = $(HOME)/.local/lib/traceevent/plugins
7474
set_plugin_dir := 0
7575
else
7676
override plugin_dir = $(libdir)/traceevent/plugins

‎tools/lib/traceevent/event-plugin.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include "event-utils.h"
1919
#include "trace-seq.h"
2020

21-
#define LOCAL_PLUGIN_DIR ".traceevent/plugins"
21+
#define LOCAL_PLUGIN_DIR ".local/lib/traceevent/plugins/"
2222

2323
static struct registered_plugin_options {
2424
struct registered_plugin_options *next;

0 commit comments

Comments
 (0)