-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
microblaze: Core oprofile configs and hooks
Microblaze uses timer interrupt mode. Microblaze don't have any performance counter that's why we use just simple implementation. Signed-off-by: John Williams <john.williams@petalogix.com> Signed-off-by: Michal Simek <monstr@monstr.eu>
- Loading branch information
John Williams
authored and
Michal Simek
committed
Dec 14, 2009
1 parent
33d9ff5
commit 3540ce8
Showing
4 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
{ | ||
} |