tprof_noarch.c revision 1.3
11.3Sjmcneill/*	$NetBSD: tprof_noarch.c,v 1.3 2018/07/14 15:38:59 jmcneill Exp $	*/
21.1Smaxv
31.1Smaxv/*
41.1Smaxv * Copyright (c) 2018 The NetBSD Foundation, Inc.
51.1Smaxv * All rights reserved.
61.1Smaxv *
71.1Smaxv * This code is derived from software contributed to The NetBSD Foundation
81.1Smaxv * by Maxime Villard.
91.1Smaxv *
101.1Smaxv * Redistribution and use in source and binary forms, with or without
111.1Smaxv * modification, are permitted provided that the following conditions
121.1Smaxv * are met:
131.1Smaxv * 1. Redistributions of source code must retain the above copyright
141.1Smaxv *    notice, this list of conditions and the following disclaimer.
151.1Smaxv * 2. Redistributions in binary form must reproduce the above copyright
161.1Smaxv *    notice, this list of conditions and the following disclaimer in the
171.1Smaxv *    documentation and/or other materials provided with the distribution.
181.1Smaxv *
191.1Smaxv * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
201.1Smaxv * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
211.1Smaxv * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
221.1Smaxv * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
231.1Smaxv * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
241.1Smaxv * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
251.1Smaxv * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
261.1Smaxv * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
271.1Smaxv * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
281.1Smaxv * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
291.1Smaxv * POSSIBILITY OF SUCH DAMAGE.
301.1Smaxv */
311.1Smaxv
321.1Smaxv#include <sys/cdefs.h>
331.1Smaxv#include <stdio.h>
341.1Smaxv#include <stdlib.h>
351.1Smaxv#include <stdbool.h>
361.1Smaxv#include <string.h>
371.1Smaxv#include <unistd.h>
381.1Smaxv#include <err.h>
391.1Smaxv#include <dev/tprof/tprof_ioctl.h>
401.1Smaxv#include "../tprof.h"
411.1Smaxv
421.1Smaxvint tprof_event_init(uint32_t);
431.1Smaxvvoid tprof_event_list(void);
441.1Smaxvvoid tprof_event_lookup(const char *, struct tprof_param *);
451.1Smaxv
461.3Sjmcneill__dead int
471.1Smaxvtprof_event_init(uint32_t ident)
481.1Smaxv{
491.1Smaxv	errx(EXIT_FAILURE, "architecture not supported");
501.1Smaxv}
511.1Smaxv
521.3Sjmcneill__dead void
531.1Smaxvtprof_event_list(void)
541.1Smaxv{
551.1Smaxv	errx(EXIT_FAILURE, "architecture not supported");
561.1Smaxv}
571.1Smaxv
581.3Sjmcneill__dead void
591.1Smaxvtprof_event_lookup(const char *name, struct tprof_param *param)
601.1Smaxv{
611.1Smaxv	errx(EXIT_FAILURE, "architecture not supported");
621.1Smaxv}
63