tprof_noarch.c revision 1.1
11.1Smaxv/*	$NetBSD: tprof_noarch.c,v 1.1 2018/07/13 07:56:29 maxv 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 <machine/specialreg.h>
401.1Smaxv#include <dev/tprof/tprof_ioctl.h>
411.1Smaxv#include "../tprof.h"
421.1Smaxv
431.1Smaxvint tprof_event_init(uint32_t);
441.1Smaxvvoid tprof_event_list(void);
451.1Smaxvvoid tprof_event_lookup(const char *, struct tprof_param *);
461.1Smaxv
471.1Smaxvint
481.1Smaxvtprof_event_init(uint32_t ident)
491.1Smaxv{
501.1Smaxv	errx(EXIT_FAILURE, "architecture not supported");
511.1Smaxv}
521.1Smaxv
531.1Smaxvvoid
541.1Smaxvtprof_event_list(void)
551.1Smaxv{
561.1Smaxv	errx(EXIT_FAILURE, "architecture not supported");
571.1Smaxv}
581.1Smaxv
591.1Smaxvvoid
601.1Smaxvtprof_event_lookup(const char *name, struct tprof_param *param)
611.1Smaxv{
621.1Smaxv	errx(EXIT_FAILURE, "architecture not supported");
631.1Smaxv}
64