hwpmc_powerpc.c revision 185168
1147191Sjkoshy/*-
2147191Sjkoshy * Copyright (c) 2005, Joseph Koshy
3147191Sjkoshy * All rights reserved.
4147191Sjkoshy *
5147191Sjkoshy * Redistribution and use in source and binary forms, with or without
6147191Sjkoshy * modification, are permitted provided that the following conditions
7147191Sjkoshy * are met:
8147191Sjkoshy * 1. Redistributions of source code must retain the above copyright
9147191Sjkoshy *    notice, this list of conditions and the following disclaimer.
10147191Sjkoshy * 2. Redistributions in binary form must reproduce the above copyright
11147191Sjkoshy *    notice, this list of conditions and the following disclaimer in the
12147191Sjkoshy *    documentation and/or other materials provided with the distribution.
13147191Sjkoshy *
14147191Sjkoshy * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15147191Sjkoshy * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16147191Sjkoshy * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17147191Sjkoshy * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18147191Sjkoshy * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19147191Sjkoshy * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20147191Sjkoshy * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21147191Sjkoshy * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22147191Sjkoshy * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23147191Sjkoshy * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24147191Sjkoshy * SUCH DAMAGE.
25147191Sjkoshy *
26147191Sjkoshy */
27147191Sjkoshy
28147191Sjkoshy#include <sys/cdefs.h>
29147191Sjkoshy__FBSDID("$FreeBSD: head/sys/dev/hwpmc/hwpmc_powerpc.c 185168 2008-11-22 12:34:49Z jkoshy $");
30147191Sjkoshy
31147191Sjkoshy#include <sys/param.h>
32147191Sjkoshy#include <sys/pmc.h>
33147191Sjkoshy
34147191Sjkoshy#include <machine/pmc_mdep.h>
35147191Sjkoshy
36147191Sjkoshystruct pmc_mdep *
37147191Sjkoshypmc_md_initialize()
38147191Sjkoshy{
39147191Sjkoshy	return NULL;
40147191Sjkoshy}
41174410Sjkoshy
42185168Sjkoshyvoid
43185168Sjkoshypmc_md_finalize(struct pmc_mdep *md)
44185168Sjkoshy{
45185168Sjkoshy	(void) md;
46185168Sjkoshy}
47185168Sjkoshy
48174410Sjkoshyint
49174410Sjkoshypmc_save_kernel_callchain(uintptr_t *cc, int maxsamples,
50174410Sjkoshy    struct trapframe *tf)
51174410Sjkoshy{
52174410Sjkoshy	(void) cc;
53174410Sjkoshy	(void) maxsamples;
54174410Sjkoshy	(void) tf;
55174410Sjkoshy	return (0);
56174410Sjkoshy}
57174410Sjkoshy
58174410Sjkoshyint
59174410Sjkoshypmc_save_user_callchain(uintptr_t *cc, int maxsamples,
60174410Sjkoshy    struct trapframe *tf)
61174410Sjkoshy{
62174410Sjkoshy	(void) cc;
63174410Sjkoshy	(void) maxsamples;
64174410Sjkoshy	(void) tf;
65174410Sjkoshy	return (0);
66174410Sjkoshy}
67