X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=probes%2Flttng-kretprobes.c;h=ab98ff221d85b0f1bd5c7c3242927d747c33f5fb;hb=6065d1e566bbd5c6908ef3d7c84e31a949a1b44a;hp=d25862b1f451cc7b949985e895cc83625da02fab;hpb=1c124020c743254923d8e76ab5dcd1f69709982e;p=lttng-modules.git diff --git a/probes/lttng-kretprobes.c b/probes/lttng-kretprobes.c index d25862b1..ab98ff22 100644 --- a/probes/lttng-kretprobes.c +++ b/probes/lttng-kretprobes.c @@ -1,23 +1,10 @@ -/* -* probes/lttng-kretprobes.c +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) + * + * probes/lttng-kretprobes.c * * LTTng kretprobes integration module. * * Copyright (C) 2009-2012 Mathieu Desnoyers - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; only - * version 2.1 of the License. - * - * 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 */ #include @@ -29,6 +16,7 @@ #include #include #include +#include enum lttng_kretprobe_type { EVENT_ENTRY = 0, @@ -233,7 +221,7 @@ int lttng_kretprobes_register(const char *name, * Well.. kprobes itself puts the page fault handler on the blacklist, * but we can never be too careful. */ - wrapper_vmalloc_sync_all(); + wrapper_vmalloc_sync_mappings(); ret = register_kretprobe(<tng_krp->krp); if (ret)