f24a1717277ab99c2c81f1aa6b47bc290fb9c5fd
2 * Copyright (C) 2013 Paul Woegerer <paul_woegerer@mentor.com>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 #include <sys/types.h>
35 #define TRACEPOINT_DEFINE
36 #include "ust_baddr.h"
39 lttng_ust_push_baddr(void *so_base
, const char *so_name
)
41 char resolved_path
[PATH_MAX
];
44 if (!realpath(so_name
, resolved_path
)) {
45 ERR("could not resolve path '%s'", so_name
);
49 if (stat(resolved_path
, &sostat
)) {
50 ERR("could not access file status for %s", resolved_path
);
54 tracepoint(ust_baddr
, push
,
55 so_base
, resolved_path
, sostat
.st_size
, sostat
.st_mtime
);
60 lttng_ust_pop_baddr(void *so_base
)
62 tracepoint(ust_baddr
, pop
, so_base
);
This page took 0.030429 seconds and 4 git commands to generate.