b2c19927f2dff0da3ecf6abb113d3477a8ce62a6
2 * Copyright (C) - 2009 Pierre-Marc Fournier
3 * Copyright (C) - 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
4 * Copyright (C) - 2012 David Goulet <dgoulet@efficios.com>
6 * This library is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU Lesser General Public License as published by the
8 * Free Software Foundation; version 2.1 of the License.
10 * This library is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this library; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 #include <arpa/inet.h>
29 #include <sys/types.h>
32 #define TRACEPOINT_DEFINE
33 #include "ust_gen_nevents.h"
35 int main(int argc
, char **argv
)
38 long values
[] = { 1, 2, 3 };
39 char text
[10] = "test";
42 unsigned int nr_iter
= 100;
45 nr_iter
= atoi(argv
[1]);
48 for (i
= 0; i
< nr_iter
; i
++) {
50 tracepoint(ust_gen_nevents
, tptest
, i
, netint
, values
, text
,
51 strlen(text
), dbl
, flt
);
This page took 0.031142 seconds and 3 git commands to generate.