Commit e4b4280d authored by Tzvetomir Stoyanov's avatar Tzvetomir Stoyanov Committed by Greg Kroah-Hartman

libtraceevent: Change users plugin directory

[ Upstream commit e97fd138 ]

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: default avatarPatrick McLean <chutzpah@gentoo.org>
Signed-off-by: default avatarTzvetomir 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.orgSigned-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent c55659cd
...@@ -55,15 +55,15 @@ set_plugin_dir := 1 ...@@ -55,15 +55,15 @@ set_plugin_dir := 1
# Set plugin_dir to preffered global plugin location # Set plugin_dir to preffered global plugin location
# If we install under $HOME directory we go under # 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 # We dont set PLUGIN_DIR in case we install under $HOME
# directory, because by default the code looks under: # directory, because by default the code looks under:
# $(HOME)/.traceevent/plugins by default. # $(HOME)/.local/lib/traceevent/plugins by default.
# #
ifeq ($(plugin_dir),) ifeq ($(plugin_dir),)
ifeq ($(prefix),$(HOME)) ifeq ($(prefix),$(HOME))
override plugin_dir = $(HOME)/.traceevent/plugins override plugin_dir = $(HOME)/.local/lib/traceevent/plugins
set_plugin_dir := 0 set_plugin_dir := 0
else else
override plugin_dir = $(libdir)/traceevent/plugins override plugin_dir = $(libdir)/traceevent/plugins
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include "event-parse.h" #include "event-parse.h"
#include "event-utils.h" #include "event-utils.h"
#define LOCAL_PLUGIN_DIR ".traceevent/plugins" #define LOCAL_PLUGIN_DIR ".local/lib/traceevent/plugins/"
static struct registered_plugin_options { static struct registered_plugin_options {
struct registered_plugin_options *next; struct registered_plugin_options *next;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment