#include <gio/gio.h>
#include <pkgmgr-info.h>
#include <bundle_internal.h>
+#include <sys/prctl.h>
#include "aul.h"
#include "aul_svc.h"
#define APP_TYPE_SERVICE "svcapp"
#define INOTIFY_BUF (1024 * ((sizeof(struct inotify_event)) + 16))
+#ifndef PR_TASK_PERF_USER_TRACE
+#define PR_TASK_PERF_USER_TRACE 666
+#endif
+
struct launch_arg {
char *appid;
bundle *b;
}
};
+static void __print_hwc_messages(const char *format, ...)
+{
+ char buf[1024];
+ va_list ap;
+
+ va_start(ap, format);
+ vsnprintf(buf, sizeof(buf), format, ap);
+ va_end(ap);
+
+ prctl(PR_TASK_PERF_USER_TRACE, buf, strlen(buf));
+}
+
static GOptionGroup *__get_opt_group(void)
{
GOptionGroup *group;
GError *error = NULL;
struct launch_arg *launch_arg;
+ __print_hwc_messages("%d|main start", getpid());
+
context = g_option_context_new(NULL);
g_option_context_add_main_entries(context, cmd_entries, NULL);