| 1 | /* |
| 2 | * Copyright (C) 2016 - EfficiOS Inc., Alexandre Montplaisir <alexmonthy@efficios.com> |
| 3 | * |
| 4 | * This library is free software; you can redistribute it and/or modify it |
| 5 | * under the terms of the GNU Lesser General Public License, version 2.1 only, |
| 6 | * as published by the Free Software Foundation. |
| 7 | * |
| 8 | * This library is distributed in the hope that it will be useful, but WITHOUT |
| 9 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 10 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License |
| 11 | * for more details. |
| 12 | * |
| 13 | * You should have received a copy of the GNU Lesser General Public License |
| 14 | * along with this library; if not, write to the Free Software Foundation, |
| 15 | * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 16 | */ |
| 17 | |
| 18 | package org.lttng.ust.agent.jul; |
| 19 | |
| 20 | /** |
| 21 | * Virtual class containing the Java side of the LTTng-JUL JNI API methods. |
| 22 | * |
| 23 | * @author Alexandre Montplaisir |
| 24 | */ |
| 25 | final class LttngJulApi { |
| 26 | |
| 27 | private LttngJulApi() {} |
| 28 | |
| 29 | static native void tracepoint(String msg, |
| 30 | String logger_name, |
| 31 | String class_name, |
| 32 | String method_name, |
| 33 | long millis, |
| 34 | int log_level, |
| 35 | int thread_id); |
| 36 | |
| 37 | static native void tracepointWithContext(String msg, |
| 38 | String logger_name, |
| 39 | String class_name, |
| 40 | String method_name, |
| 41 | long millis, |
| 42 | int log_level, |
| 43 | int thread_id, |
| 44 | byte[] contextEntries, |
| 45 | byte[] contextStrings); |
| 46 | } |