|
| 1 | +/* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | +/* |
| 3 | + * Dynamic Tracing for Linux - profile provider |
| 4 | + * |
| 5 | + * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved. |
| 6 | + * |
| 7 | + * This program is free software; you can redistribute it and/or modify |
| 8 | + * it under the terms of the GNU General Public License as published by |
| 9 | + * the Free Software Foundation; either version 2 of the License, or |
| 10 | + * (at your option) any later version. |
| 11 | + * |
| 12 | + * This program is distributed in the hope that it will be useful, |
| 13 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | + * GNU General Public License for more details. |
| 16 | + */ |
| 17 | + |
| 18 | +#ifndef _PROFILE_H_ |
| 19 | +#define _PROFILE_H_ |
| 20 | + |
| 21 | +extern void profile_provide(void *, const dtrace_probedesc_t *); |
| 22 | +extern int profile_enable(void *, dtrace_id_t, void *); |
| 23 | +extern void profile_disable(void *, dtrace_id_t, void *); |
| 24 | +extern int profile_usermode(void *, dtrace_id_t, void *); |
| 25 | +extern void profile_destroy(void *, dtrace_id_t, void *); |
| 26 | + |
| 27 | +extern dtrace_provider_id_t profile_id; |
| 28 | + |
| 29 | +extern int profile_dev_init(void); |
| 30 | +extern void profile_dev_exit(void); |
| 31 | + |
| 32 | +#endif /* _PROFILE_H_ */ |
0 commit comments