xref: /netbsd-src/external/cddl/osnet/dist/lib/libdtrace/mips/dt_isadep.c (revision 3227e6cf668bd374971740bd6660f43cee4417ac)
1*3227e6cfSchs /*
2*3227e6cfSchs  * CDDL HEADER START
3*3227e6cfSchs  *
4*3227e6cfSchs  * The contents of this file are subject to the terms of the
5*3227e6cfSchs  * Common Development and Distribution License, Version 1.0 only
6*3227e6cfSchs  * (the "License").  You may not use this file except in compliance
7*3227e6cfSchs  * with the License.
8*3227e6cfSchs  *
9*3227e6cfSchs  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*3227e6cfSchs  * or http://www.opensolaris.org/os/licensing.
11*3227e6cfSchs  * See the License for the specific language governing permissions
12*3227e6cfSchs  * and limitations under the License.
13*3227e6cfSchs  *
14*3227e6cfSchs  * When distributing Covered Code, include this CDDL HEADER in each
15*3227e6cfSchs  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*3227e6cfSchs  * If applicable, add the following below this CDDL HEADER, with the
17*3227e6cfSchs  * fields enclosed by brackets "[]" replaced with your own identifying
18*3227e6cfSchs  * information: Portions Copyright [yyyy] [name of copyright owner]
19*3227e6cfSchs  *
20*3227e6cfSchs  * CDDL HEADER END
21*3227e6cfSchs  */
22*3227e6cfSchs /*
23*3227e6cfSchs  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24*3227e6cfSchs  * Use is subject to license terms.
25*3227e6cfSchs  */
26*3227e6cfSchs 
27*3227e6cfSchs #pragma ident	"%Z%%M%	%I%	%E% SMI"
28*3227e6cfSchs 
29*3227e6cfSchs #include <stdlib.h>
30*3227e6cfSchs #include <assert.h>
31*3227e6cfSchs #include <errno.h>
32*3227e6cfSchs #include <string.h>
33*3227e6cfSchs #include <libgen.h>
34*3227e6cfSchs 
35*3227e6cfSchs #include <dt_impl.h>
36*3227e6cfSchs #include <dt_pid.h>
37*3227e6cfSchs 
38*3227e6cfSchs /*ARGSUSED*/
39*3227e6cfSchs int
dt_pid_create_entry_probe(struct ps_prochandle * P,dtrace_hdl_t * dtp,fasttrap_probe_spec_t * ftp,const GElf_Sym * symp)40*3227e6cfSchs dt_pid_create_entry_probe(struct ps_prochandle *P, dtrace_hdl_t *dtp,
41*3227e6cfSchs     fasttrap_probe_spec_t *ftp, const GElf_Sym *symp)
42*3227e6cfSchs {
43*3227e6cfSchs 
44*3227e6cfSchs 	dt_dprintf("%s: unimplemented\n", __func__);
45*3227e6cfSchs 	return (DT_PROC_ERR);
46*3227e6cfSchs }
47*3227e6cfSchs 
48*3227e6cfSchs int
dt_pid_create_return_probe(struct ps_prochandle * P,dtrace_hdl_t * dtp,fasttrap_probe_spec_t * ftp,const GElf_Sym * symp,uint64_t * stret)49*3227e6cfSchs dt_pid_create_return_probe(struct ps_prochandle *P, dtrace_hdl_t *dtp,
50*3227e6cfSchs     fasttrap_probe_spec_t *ftp, const GElf_Sym *symp, uint64_t *stret)
51*3227e6cfSchs {
52*3227e6cfSchs 
53*3227e6cfSchs 	dt_dprintf("%s: unimplemented\n", __func__);
54*3227e6cfSchs 	return (DT_PROC_ERR);
55*3227e6cfSchs }
56*3227e6cfSchs 
57*3227e6cfSchs /*ARGSUSED*/
58*3227e6cfSchs int
dt_pid_create_offset_probe(struct ps_prochandle * P,dtrace_hdl_t * dtp,fasttrap_probe_spec_t * ftp,const GElf_Sym * symp,ulong_t off)59*3227e6cfSchs dt_pid_create_offset_probe(struct ps_prochandle *P, dtrace_hdl_t *dtp,
60*3227e6cfSchs     fasttrap_probe_spec_t *ftp, const GElf_Sym *symp, ulong_t off)
61*3227e6cfSchs {
62*3227e6cfSchs 
63*3227e6cfSchs 	dt_dprintf("%s: unimplemented\n", __func__);
64*3227e6cfSchs 	return (DT_PROC_ERR);
65*3227e6cfSchs }
66*3227e6cfSchs 
67*3227e6cfSchs /*ARGSUSED*/
68*3227e6cfSchs int
dt_pid_create_glob_offset_probes(struct ps_prochandle * P,dtrace_hdl_t * dtp,fasttrap_probe_spec_t * ftp,const GElf_Sym * symp,const char * pattern)69*3227e6cfSchs dt_pid_create_glob_offset_probes(struct ps_prochandle *P, dtrace_hdl_t *dtp,
70*3227e6cfSchs     fasttrap_probe_spec_t *ftp, const GElf_Sym *symp, const char *pattern)
71*3227e6cfSchs {
72*3227e6cfSchs 
73*3227e6cfSchs 	dt_dprintf("%s: unimplemented\n", __func__);
74*3227e6cfSchs 	return (DT_PROC_ERR);
75*3227e6cfSchs }
76