#include #include #include "tests.h" #include "debug.h" #include "util.h" #include "perf-hooks.h" static void sigsegv_handler(int sig __maybe_unused) { pr_debug("SIGSEGV is observed as expected, try to recover.\n"); perf_hooks__recover(); signal(SIGSEGV, SIG_DFL); raise(SIGSEGV); exit(-1); } static void the_hook(void *_hook_flags) { int *hook_flags = _hook_flags; int *p = NULL; *hook_flags = 1234; /* Generate a segfault, test perf_hooks__recover */ *p = 0; } int test__perf_hooks(int subtest __maybe_unused) { int hook_flags = 0; signal(SIGSEGV, sigsegv_handler); perf_hooks__set_hook("test", the_hook, &hook_flags); perf_hooks__invoke_test(); /* hook is triggered? */ if (hook_flags != 1234) { pr_debug("Setting failed: %d (%p)\n", hook_flags, &hook_flags); return TEST_FAIL; } /* the buggy hook is removed? */ if (perf_hooks__get_hook("test")) return TEST_FAIL; return TEST_OK; } t name='h' onchange='this.form.submit();'> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrzej Hajda <a.hajda@samsung.com>2017-01-17 15:15:19 +0100
committerInki Dae <inki.dae@samsung.com>2017-01-20 16:02:28 +0900
commit1202a096328ed3de59e2a722038c4d80ec59a958 (patch)
tree4e109ea581b8454140180ca46b60ab649adb5abc
parent4151e9a61c26bc86a356edfea713c0f913582760 (diff)
drm/exynos/decon5433: fix CMU programming
DECON_CMU register has reserved bits which should not be zeroed, otherwise IP can behave strangely and cause IOMMU faults. Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r--drivers/gpu/drm/exynos/exynos5433_drm_decon.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c