xref: /freebsd/sys/dev/hwpmc/hwpmc_arm.c (revision c85e8dcf1806fd9b1bb156b0b1f5ee0ce96c5f95)
1f263522aSJoseph Koshy /*-
2f263522aSJoseph Koshy  * Copyright (c) 2005, Joseph Koshy
3f263522aSJoseph Koshy  * All rights reserved.
4f263522aSJoseph Koshy  *
5f263522aSJoseph Koshy  * Redistribution and use in source and binary forms, with or without
6f263522aSJoseph Koshy  * modification, are permitted provided that the following conditions
7f263522aSJoseph Koshy  * are met:
8f263522aSJoseph Koshy  * 1. Redistributions of source code must retain the above copyright
9f263522aSJoseph Koshy  *    notice, this list of conditions and the following disclaimer.
10f263522aSJoseph Koshy  * 2. Redistributions in binary form must reproduce the above copyright
11f263522aSJoseph Koshy  *    notice, this list of conditions and the following disclaimer in the
12f263522aSJoseph Koshy  *    documentation and/or other materials provided with the distribution.
13f263522aSJoseph Koshy  *
14f263522aSJoseph Koshy  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15f263522aSJoseph Koshy  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16f263522aSJoseph Koshy  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17f263522aSJoseph Koshy  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18f263522aSJoseph Koshy  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19f263522aSJoseph Koshy  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20f263522aSJoseph Koshy  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21f263522aSJoseph Koshy  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22f263522aSJoseph Koshy  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23f263522aSJoseph Koshy  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24f263522aSJoseph Koshy  * SUCH DAMAGE.
25f263522aSJoseph Koshy  *
26f263522aSJoseph Koshy  */
27f263522aSJoseph Koshy 
28f263522aSJoseph Koshy #include <sys/cdefs.h>
29f263522aSJoseph Koshy __FBSDID("$FreeBSD$");
30f263522aSJoseph Koshy 
31f263522aSJoseph Koshy #include <sys/param.h>
32f263522aSJoseph Koshy #include <sys/pmc.h>
33f263522aSJoseph Koshy 
34f263522aSJoseph Koshy #include <machine/pmc_mdep.h>
35f263522aSJoseph Koshy 
36f263522aSJoseph Koshy struct pmc_mdep *
37f263522aSJoseph Koshy pmc_md_initialize()
38f263522aSJoseph Koshy {
39f263522aSJoseph Koshy 	return NULL;
40f263522aSJoseph Koshy }
419596916cSJoseph Koshy 
42c85e8dcfSJoseph Koshy void
43c85e8dcfSJoseph Koshy pmc_md_finalize(struct pmc_mdep *md)
44c85e8dcfSJoseph Koshy {
45c85e8dcfSJoseph Koshy 	(void) md;
46c85e8dcfSJoseph Koshy }
47c85e8dcfSJoseph Koshy 
489596916cSJoseph Koshy int
499596916cSJoseph Koshy pmc_save_kernel_callchain(uintptr_t *cc, int maxsamples,
509596916cSJoseph Koshy     struct trapframe *tf)
519596916cSJoseph Koshy {
529596916cSJoseph Koshy 	(void) cc;
539596916cSJoseph Koshy 	(void) maxsamples;
549596916cSJoseph Koshy 	(void) tf;
559596916cSJoseph Koshy 	return (0);
569596916cSJoseph Koshy }
579596916cSJoseph Koshy 
589596916cSJoseph Koshy int
599596916cSJoseph Koshy pmc_save_user_callchain(uintptr_t *cc, int maxsamples,
609596916cSJoseph Koshy     struct trapframe *tf)
619596916cSJoseph Koshy {
629596916cSJoseph Koshy 	(void) cc;
639596916cSJoseph Koshy 	(void) maxsamples;
649596916cSJoseph Koshy 	(void) tf;
659596916cSJoseph Koshy 	return (0);
669596916cSJoseph Koshy }
67