Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fd6da696 authored by Ingo Molnar's avatar Ingo Molnar
Browse files

Merge tag 'perf-urgent-for-mingo' of...

Merge tag 'perf-urgent-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux

 into perf/urgent

Pull perf/urgent fixes from Arnaldo Carvalho de Melo:

 - Don't build 'perf kvm stat" on non-x86 arches, fix from Xiao Guangrong.

 - UAPI fixes to get perf building again in non-x86 arches, from David Howells.

Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parents 18423d35 7321090f
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -1321,10 +1321,12 @@ kernelversion:


# Clear a bunch of variables before executing the submake
# Clear a bunch of variables before executing the submake
tools/: FORCE
tools/: FORCE
	$(Q)$(MAKE) LDFLAGS= MAKEFLAGS= -C $(src)/tools/
	$(Q)mkdir -p $(objtree)/tools
	$(Q)$(MAKE) LDFLAGS= MAKEFLAGS= O=$(objtree) subdir=tools -C $(src)/tools/


tools/%: FORCE
tools/%: FORCE
	$(Q)$(MAKE) LDFLAGS= MAKEFLAGS= -C $(src)/tools/ $*
	$(Q)mkdir -p $(objtree)/tools
	$(Q)$(MAKE) LDFLAGS= MAKEFLAGS= O=$(objtree) subdir=tools -C $(src)/tools/ $*


# Single targets
# Single targets
# ---------------------------------------------------------------------------
# ---------------------------------------------------------------------------
+3 −0
Original line number Original line Diff line number Diff line
@@ -12,6 +12,7 @@ header-y += mce.h
header-y += msr-index.h
header-y += msr-index.h
header-y += msr.h
header-y += msr.h
header-y += mtrr.h
header-y += mtrr.h
header-y += perf_regs.h
header-y += posix_types_32.h
header-y += posix_types_32.h
header-y += posix_types_64.h
header-y += posix_types_64.h
header-y += posix_types_x32.h
header-y += posix_types_x32.h
@@ -19,8 +20,10 @@ header-y += prctl.h
header-y += processor-flags.h
header-y += processor-flags.h
header-y += ptrace-abi.h
header-y += ptrace-abi.h
header-y += sigcontext32.h
header-y += sigcontext32.h
header-y += svm.h
header-y += ucontext.h
header-y += ucontext.h
header-y += vm86.h
header-y += vm86.h
header-y += vmx.h
header-y += vsyscall.h
header-y += vsyscall.h


genhdr-y += unistd_32.h
genhdr-y += unistd_32.h
+1 −30
Original line number Original line Diff line number Diff line
#ifndef _LINUX_HW_BREAKPOINT_H
#ifndef _LINUX_HW_BREAKPOINT_H
#define _LINUX_HW_BREAKPOINT_H
#define _LINUX_HW_BREAKPOINT_H


enum {
	HW_BREAKPOINT_LEN_1 = 1,
	HW_BREAKPOINT_LEN_2 = 2,
	HW_BREAKPOINT_LEN_4 = 4,
	HW_BREAKPOINT_LEN_8 = 8,
};

enum {
	HW_BREAKPOINT_EMPTY	= 0,
	HW_BREAKPOINT_R		= 1,
	HW_BREAKPOINT_W		= 2,
	HW_BREAKPOINT_RW	= HW_BREAKPOINT_R | HW_BREAKPOINT_W,
	HW_BREAKPOINT_X		= 4,
	HW_BREAKPOINT_INVALID   = HW_BREAKPOINT_RW | HW_BREAKPOINT_X,
};

enum bp_type_idx {
	TYPE_INST 	= 0,
#ifdef CONFIG_HAVE_MIXED_BREAKPOINTS_REGS
	TYPE_DATA	= 0,
#else
	TYPE_DATA	= 1,
#endif
	TYPE_MAX
};

#ifdef __KERNEL__

#include <linux/perf_event.h>
#include <linux/perf_event.h>
#include <uapi/linux/hw_breakpoint.h>


#ifdef CONFIG_HAVE_HW_BREAKPOINT
#ifdef CONFIG_HAVE_HW_BREAKPOINT


@@ -151,6 +124,4 @@ static inline struct arch_hw_breakpoint *counter_arch_bp(struct perf_event *bp)
}
}


#endif /* CONFIG_HAVE_HW_BREAKPOINT */
#endif /* CONFIG_HAVE_HW_BREAKPOINT */
#endif /* __KERNEL__ */

#endif /* _LINUX_HW_BREAKPOINT_H */
#endif /* _LINUX_HW_BREAKPOINT_H */
+1 −0
Original line number Original line Diff line number Diff line
@@ -415,3 +415,4 @@ header-y += wireless.h
header-y += x25.h
header-y += x25.h
header-y += xattr.h
header-y += xattr.h
header-y += xfrm.h
header-y += xfrm.h
header-y += hw_breakpoint.h
+30 −0
Original line number Original line Diff line number Diff line
#ifndef _UAPI_LINUX_HW_BREAKPOINT_H
#define _UAPI_LINUX_HW_BREAKPOINT_H

enum {
	HW_BREAKPOINT_LEN_1 = 1,
	HW_BREAKPOINT_LEN_2 = 2,
	HW_BREAKPOINT_LEN_4 = 4,
	HW_BREAKPOINT_LEN_8 = 8,
};

enum {
	HW_BREAKPOINT_EMPTY	= 0,
	HW_BREAKPOINT_R		= 1,
	HW_BREAKPOINT_W		= 2,
	HW_BREAKPOINT_RW	= HW_BREAKPOINT_R | HW_BREAKPOINT_W,
	HW_BREAKPOINT_X		= 4,
	HW_BREAKPOINT_INVALID   = HW_BREAKPOINT_RW | HW_BREAKPOINT_X,
};

enum bp_type_idx {
	TYPE_INST 	= 0,
#ifdef CONFIG_HAVE_MIXED_BREAKPOINTS_REGS
	TYPE_DATA	= 0,
#else
	TYPE_DATA	= 1,
#endif
	TYPE_MAX
};

#endif /* _UAPI_LINUX_HW_BREAKPOINT_H */
Loading