Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121101
b: refs/heads/master
c: 2b7d039
h: refs/heads/master
i:
  121099: 483b376
v: v3
  • Loading branch information
Ingo Molnar committed Nov 12, 2008
1 parent defc049 commit c22f882
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f88c4ae9f8c3939bee4337c75c7a673b5de7a8a7
refs/heads/master: 2b7d0390a6d6d595f43ea3806639664afe5b9ebe
9 changes: 2 additions & 7 deletions trunk/arch/x86/kernel/vsyscall_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,8 @@
* want per guest time just set the kernel.vsyscall64 sysctl to 0.
*/

/* Protect userspace from profiling */
#ifdef CONFIG_TRACE_UNLIKELY_PROFILE
# undef likely
# undef unlikely
# define likely(x) likely_notrace(x)
# define unlikely(x) unlikely_notrace(x)
#endif
/* Disable profiling for userspace code: */
#define DISABLE_UNLIKELY_PROFILE

#include <linux/time.h>
#include <linux/init.h>
Expand Down
3 changes: 3 additions & 0 deletions trunk/arch/x86/vdso/vclock_gettime.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
* Also alternative() doesn't work.
*/

/* Disable profiling for userspace code: */
#define DISABLE_UNLIKELY_PROFILE

#include <linux/kernel.h>
#include <linux/posix-timers.h>
#include <linux/time.h>
Expand Down
6 changes: 5 additions & 1 deletion trunk/include/linux/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ extern void __chk_io_ptr(const volatile void __iomem *);
* specific implementations come from the above header files
*/

#ifdef CONFIG_TRACE_UNLIKELY_PROFILE
/*
* Note: DISABLE_UNLIKELY_PROFILE can be used by special lowlevel code
* to disable branch tracing on a per file basis.
*/
#if defined(CONFIG_TRACE_UNLIKELY_PROFILE) && !defined(DISABLE_UNLIKELY_PROFILE)
struct ftrace_likely_data {
const char *func;
const char *file;
Expand Down

0 comments on commit c22f882

Please sign in to comment.