Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176139
b: refs/heads/master
c: 3540ce8
h: refs/heads/master
i:
  176137: 400e573
  176135: e8fc597
v: v3
  • Loading branch information
John Williams authored and Michal Simek committed Dec 14, 2009
1 parent f4ac687 commit 839a4f6
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 33d9ff5985ff015cbaaef85285d19fe580487cf3
refs/heads/master: 3540ce8238c2d29a2a20a1876575c0064d0da23e
2 changes: 2 additions & 0 deletions trunk/arch/microblaze/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ config MICROBLAZE
select HAVE_FTRACE_MCOUNT_RECORD
select USB_ARCH_HAS_EHCI
select ARCH_WANT_OPTIONAL_GPIOLIB
select HAVE_OPROFILE
select TRACING_SUPPORT

config SWAP
def_bool n
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/microblaze/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ core-y += arch/microblaze/kernel/
core-y += arch/microblaze/mm/
core-y += arch/microblaze/platform/

drivers-$(CONFIG_OPROFILE) += arch/microblaze/oprofile/

boot := arch/microblaze/boot

# Are we making a simpleImage.<boardname> target? If so, crack out the boardname
Expand Down
13 changes: 13 additions & 0 deletions trunk/arch/microblaze/oprofile/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#
# arch/microblaze/oprofile/Makefile
#

obj-$(CONFIG_OPROFILE) += oprofile.o

DRIVER_OBJS := $(addprefix ../../../drivers/oprofile/, \
oprof.o cpu_buffer.o buffer_sync.o \
event_buffer.o oprofile_files.o \
oprofilefs.o oprofile_stats.o \
timer_int.o )

oprofile-y := $(DRIVER_OBJS) microblaze_oprofile.o
22 changes: 22 additions & 0 deletions trunk/arch/microblaze/oprofile/microblaze_oprofile.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* Microblaze oprofile code
*
* Copyright (C) 2009 Michal Simek <monstr@monstr.eu>
* Copyright (C) 2009 PetaLogix
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*/

#include <linux/oprofile.h>
#include <linux/init.h>

int __init oprofile_arch_init(struct oprofile_operations *ops)
{
return -1;
}

void oprofile_arch_exit(void)
{
}

0 comments on commit 839a4f6

Please sign in to comment.