~ubuntu-branches/ubuntu/wily/ust/wily-proposed

« back to all changes in this revision

Viewing changes to liblttng-ust-java-agent/jni/log4j/lttng_ust_log4j.h

  • Committer: Package Import Robot
  • Author(s): Artur Rona
  • Date: 2015-06-24 14:18:03 UTC
  • mfrom: (11.2.11 sid)
  • Revision ID: package-import@ubuntu.com-20150624141803-zfj6xzpr7dlxiysg
Tags: 2.6.2-1ubuntu1
* Merge from Debian unstable. (LP: #1468345) Remaining changes:
  - debian/control, debian/patches/use-python3.patch:
    + Switch to use python3. (Closes: #789790)
* Drop following changes, fixed in Debian / upstream:
  - debian/patches/0001-Add-aarch64-host-cpu-in-configure.ac.patch:
    + Add arm64 host_cpu stanzas in configure.ac
  - debian/liblttng-ust0.symbols:
    + Update symbols file.
  - debian/control:
    + Enable builds on arm64 and ppc64el.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#undef TRACEPOINT_PROVIDER
 
2
#define TRACEPOINT_PROVIDER lttng_log4j
 
3
 
 
4
#if !defined(_TRACEPOINT_LTTNG_UST_LOG4J_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
 
5
#define _TRACEPOINT_LTTNG_UST_LOG4J_H
 
6
 
 
7
/*
 
8
 * Copyright (C) 2011  Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
 
9
 *
 
10
 * This library is free software; you can redistribute it and/or
 
11
 * modify it under the terms of the GNU Lesser General Public
 
12
 * License as published by the Free Software Foundation; version 2.1 of
 
13
 * the License.
 
14
 *
 
15
 * This library is distributed in the hope that it will be useful,
 
16
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
18
 * Lesser General Public License for more details.
 
19
 *
 
20
 * You should have received a copy of the GNU Lesser General Public
 
21
 * License along with this library; if not, write to the Free Software
 
22
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
 
23
 */
 
24
 
 
25
#include <lttng/tracepoint.h>
 
26
 
 
27
/*
 
28
 * Privileged tracepoint meaning that this is only enable and fired by the root
 
29
 * session daemon.
 
30
 */
 
31
TRACEPOINT_EVENT(lttng_log4j, sys_event,
 
32
        TP_ARGS(
 
33
                const char *, msg,
 
34
                const char *, logger_name,
 
35
                const char *, class_name,
 
36
                const char *, method_name,
 
37
                const char *, file_name,
 
38
                int, line_number,
 
39
                long, timestamp,
 
40
                int, log_level,
 
41
                const char *, thread_name),
 
42
        TP_FIELDS(
 
43
                ctf_string(msg, msg)
 
44
                ctf_string(logger_name, logger_name)
 
45
                ctf_string(class_name, class_name)
 
46
                ctf_string(method_name, method_name)
 
47
                ctf_string(filename, file_name)
 
48
                ctf_integer(int, line_number, line_number)
 
49
                ctf_integer(long, timestamp, timestamp)
 
50
                ctf_integer(int, int_loglevel, log_level)
 
51
                ctf_string(thread_name, thread_name)
 
52
        )
 
53
)
 
54
 
 
55
/*
 
56
 * User tracepoint meaning that this is only enable and fired by a non root
 
57
 * session daemon.
 
58
 */
 
59
TRACEPOINT_EVENT(lttng_log4j, user_event,
 
60
        TP_ARGS(
 
61
                const char *, msg,
 
62
                const char *, logger_name,
 
63
                const char *, class_name,
 
64
                const char *, method_name,
 
65
                const char *, file_name,
 
66
                int, line_number,
 
67
                long, timestamp,
 
68
                int, log_level,
 
69
                const char *, thread_name),
 
70
        TP_FIELDS(
 
71
                ctf_string(msg, msg)
 
72
                ctf_string(logger_name, logger_name)
 
73
                ctf_string(class_name, class_name)
 
74
                ctf_string(method_name, method_name)
 
75
                ctf_string(filename, file_name)
 
76
                ctf_integer(int, line_number, line_number)
 
77
                ctf_integer(long, timestamp, timestamp)
 
78
                ctf_integer(int, int_loglevel, log_level)
 
79
                ctf_string(thread_name, thread_name)
 
80
        )
 
81
)
 
82
 
 
83
#endif /* _TRACEPOINT_LTTNG_UST_LOG4J_H */
 
84
 
 
85
#undef TRACEPOINT_INCLUDE
 
86
#define TRACEPOINT_INCLUDE "./lttng_ust_log4j.h"
 
87
 
 
88
/* This part must be outside protection */
 
89
#include <lttng/tracepoint-event.h>