|
Packit |
c04fcb |
/*
|
|
Packit |
c04fcb |
* Copyright (C) 2014 - David Goulet <dgoulet@efficios.com>
|
|
Packit |
c04fcb |
*
|
|
Packit |
c04fcb |
* This library is free software; you can redistribute it and/or modify it
|
|
Packit |
c04fcb |
* under the terms of the GNU Lesser General Public License as published by the
|
|
Packit |
c04fcb |
* Free Software Foundation; version 2.1 of the License.
|
|
Packit |
c04fcb |
*
|
|
Packit |
c04fcb |
* This library is distributed in the hope that it will be useful, but WITHOUT
|
|
Packit |
c04fcb |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
Packit |
c04fcb |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
|
Packit |
c04fcb |
* for more details.
|
|
Packit |
c04fcb |
*
|
|
Packit |
c04fcb |
* You should have received a copy of the GNU Lesser General Public License
|
|
Packit |
c04fcb |
* along with this library; if not, write to the Free Software Foundation,
|
|
Packit |
c04fcb |
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
Packit |
c04fcb |
*/
|
|
Packit |
c04fcb |
|
|
Packit |
c04fcb |
#define TRACEPOINT_DEFINE
|
|
Packit |
c04fcb |
#define TRACEPOINT_CREATE_PROBES
|
|
Packit |
c04fcb |
#include "lttng_ust_python.h"
|
|
Packit |
c04fcb |
|
|
Packit |
c04fcb |
/*
|
|
Packit |
c04fcb |
* The tracepoint fired by the agent.
|
|
Packit |
c04fcb |
*/
|
|
Packit |
c04fcb |
|
|
Packit |
c04fcb |
void py_tracepoint(const char *asctime, const char *msg,
|
|
Packit |
c04fcb |
const char *logger_name, const char *funcName, unsigned int lineno,
|
|
Packit |
c04fcb |
unsigned int int_loglevel, unsigned int thread, const char *threadName)
|
|
Packit |
c04fcb |
{
|
|
Packit |
c04fcb |
tracepoint(lttng_python, event, asctime, msg, logger_name, funcName,
|
|
Packit |
c04fcb |
lineno, int_loglevel, thread, threadName);
|
|
Packit |
c04fcb |
}
|