X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Fuserspace-probe.h;h=5a6fa51a0318d8d1cf07e30d36692ea463bb1ab2;hp=cedb7d8b8fc7e260f85350592a0cc3599295ac82;hb=21a4b05678c20899ad0aa1d3efb565d47d56ecf4;hpb=9d3981b5c746b87954c46218b2c7c6e76ae7ed46 diff --git a/include/lttng/userspace-probe.h b/include/lttng/userspace-probe.h index cedb7d8b8..5a6fa51a0 100644 --- a/include/lttng/userspace-probe.h +++ b/include/lttng/userspace-probe.h @@ -1,18 +1,8 @@ /* - * Copyright (C) 2017 - Jérémie Galarneau + * Copyright (C) 2017 Jérémie Galarneau * - * This library is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License, version 2.1 only, - * as published by the Free Software Foundation. + * SPDX-License-Identifier: LGPL-2.1-only * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License - * for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this library; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef LTTNG_USERSPACE_PROBE_H @@ -130,7 +120,7 @@ extern const char *lttng_userspace_probe_location_function_get_function_name( /* * Get the FD to the target binary file to the probe location of the function - * type. + * type. The FD is only valid for the duration of the lifetime of `location`. */ extern int lttng_userspace_probe_location_function_get_binary_fd( const struct lttng_userspace_probe_location *location); @@ -201,7 +191,7 @@ extern const char *lttng_userspace_probe_location_tracepoint_get_provider_name( /* * Get the FD to the target binary file to the probe location of the tracepoint - * type. + * type. The FD is only valid for the duration of the lifetime of `location`. */ extern int lttng_userspace_probe_location_tracepoint_get_binary_fd( const struct lttng_userspace_probe_location *location);