49ad5180678cac48a0f32feba8bc84cfb020a57b
2 * Copyright (C) - 2017 Philippe Proulx <pproulx@efficios.com>
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 as published by the
6 * Free Software Foundation; version 2.1 of the License.
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
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
20 #include "signal-helper.h"
22 #define TRACEPOINT_DEFINE
25 int main(int argc
, char **argv
)
27 int count
= 0, i
= 0, arg_i
= 0;
29 if (set_signal_handler()) {
34 fprintf(stderr
, "Usage: %s COUNT STRING [STRING]...\n",
40 count
= atoi(argv
[1]);
47 for (i
= 0, arg_i
= 2; i
< count
; i
++) {
48 tracepoint(tp
, the_string
, i
, arg_i
, argv
[arg_i
]);
This page took 0.031211 seconds and 4 git commands to generate.