1*4ab6de23Sjmcneill /* $NetBSD: tprof_noarch.c,v 1.3 2018/07/14 15:38:59 jmcneill Exp $ */
2a087cb3cSmaxv
3a087cb3cSmaxv /*
4a087cb3cSmaxv * Copyright (c) 2018 The NetBSD Foundation, Inc.
5a087cb3cSmaxv * All rights reserved.
6a087cb3cSmaxv *
7a087cb3cSmaxv * This code is derived from software contributed to The NetBSD Foundation
8a087cb3cSmaxv * by Maxime Villard.
9a087cb3cSmaxv *
10a087cb3cSmaxv * Redistribution and use in source and binary forms, with or without
11a087cb3cSmaxv * modification, are permitted provided that the following conditions
12a087cb3cSmaxv * are met:
13a087cb3cSmaxv * 1. Redistributions of source code must retain the above copyright
14a087cb3cSmaxv * notice, this list of conditions and the following disclaimer.
15a087cb3cSmaxv * 2. Redistributions in binary form must reproduce the above copyright
16a087cb3cSmaxv * notice, this list of conditions and the following disclaimer in the
17a087cb3cSmaxv * documentation and/or other materials provided with the distribution.
18a087cb3cSmaxv *
19a087cb3cSmaxv * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20a087cb3cSmaxv * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21a087cb3cSmaxv * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22a087cb3cSmaxv * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23a087cb3cSmaxv * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24a087cb3cSmaxv * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25a087cb3cSmaxv * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26a087cb3cSmaxv * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27a087cb3cSmaxv * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28a087cb3cSmaxv * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29a087cb3cSmaxv * POSSIBILITY OF SUCH DAMAGE.
30a087cb3cSmaxv */
31a087cb3cSmaxv
32a087cb3cSmaxv #include <sys/cdefs.h>
33a087cb3cSmaxv #include <stdio.h>
34a087cb3cSmaxv #include <stdlib.h>
35a087cb3cSmaxv #include <stdbool.h>
36a087cb3cSmaxv #include <string.h>
37a087cb3cSmaxv #include <unistd.h>
38a087cb3cSmaxv #include <err.h>
39a087cb3cSmaxv #include <dev/tprof/tprof_ioctl.h>
40a087cb3cSmaxv #include "../tprof.h"
41a087cb3cSmaxv
42a087cb3cSmaxv int tprof_event_init(uint32_t);
43a087cb3cSmaxv void tprof_event_list(void);
44a087cb3cSmaxv void tprof_event_lookup(const char *, struct tprof_param *);
45a087cb3cSmaxv
46*4ab6de23Sjmcneill __dead int
tprof_event_init(uint32_t ident)47a087cb3cSmaxv tprof_event_init(uint32_t ident)
48a087cb3cSmaxv {
49a087cb3cSmaxv errx(EXIT_FAILURE, "architecture not supported");
50a087cb3cSmaxv }
51a087cb3cSmaxv
52*4ab6de23Sjmcneill __dead void
tprof_event_list(void)53a087cb3cSmaxv tprof_event_list(void)
54a087cb3cSmaxv {
55a087cb3cSmaxv errx(EXIT_FAILURE, "architecture not supported");
56a087cb3cSmaxv }
57a087cb3cSmaxv
58*4ab6de23Sjmcneill __dead void
tprof_event_lookup(const char * name,struct tprof_param * param)59a087cb3cSmaxv tprof_event_lookup(const char *name, struct tprof_param *param)
60a087cb3cSmaxv {
61a087cb3cSmaxv errx(EXIT_FAILURE, "architecture not supported");
62a087cb3cSmaxv }
63