X-Git-Url: http://git.liburcu.org/?p=lttng-modules.git;a=blobdiff_plain;f=lttng-tracker-pid.c;h=747aec20f25aa60dc8dfc013006809dabca1b320;hp=eeee9d55a5b844106178d5186c37ef61012aa2e3;hb=80bb26003945e96a8ade9c8788dab9b2e08cbc08;hpb=f934e302d314d76563484f31caed56ad680eb17b diff --git a/lttng-tracker-pid.c b/lttng-tracker-pid.c index eeee9d55..747aec20 100644 --- a/lttng-tracker-pid.c +++ b/lttng-tracker-pid.c @@ -1,23 +1,10 @@ -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) + * * lttng-tracker-pid.c * - * LTTng Process ID trackering. + * LTTng Process ID tracking. * * Copyright (C) 2014 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 @@ -28,9 +15,10 @@ #include #include -#include "wrapper/tracepoint.h" -#include "wrapper/list.h" -#include "lttng-events.h" +#include +#include +#include +#include /* * Hash table is allocated and freed when there are no possible @@ -59,7 +47,7 @@ bool lttng_pid_tracker_lookup(struct lttng_pid_tracker *lpf, int pid) uint32_t hash = hash_32(pid, 32); head = &lpf->pid_hash[hash & (LTTNG_PID_TABLE_SIZE - 1)]; - lttng_hlist_for_each_entry_rcu_notrace(e, head, hlist) { + lttng_hlist_for_each_entry_rcu(e, head, hlist) { if (pid == e->pid) return 1; /* Found */ }