hwpmc_powerpc.c revision 174410
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 174410 2007-12-07 17:21:53Z 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 42174410Sjkoshyint 43174410Sjkoshypmc_save_kernel_callchain(uintptr_t *cc, int maxsamples, 44174410Sjkoshy struct trapframe *tf) 45174410Sjkoshy{ 46174410Sjkoshy (void) cc; 47174410Sjkoshy (void) maxsamples; 48174410Sjkoshy (void) tf; 49174410Sjkoshy return (0); 50174410Sjkoshy} 51174410Sjkoshy 52174410Sjkoshyint 53174410Sjkoshypmc_save_user_callchain(uintptr_t *cc, int maxsamples, 54174410Sjkoshy struct trapframe *tf) 55174410Sjkoshy{ 56174410Sjkoshy (void) cc; 57174410Sjkoshy (void) maxsamples; 58174410Sjkoshy (void) tf; 59174410Sjkoshy return (0); 60174410Sjkoshy} 61