| 1 | /* |
| 2 | * Copyright 2011 Red Hat Inc., Durham, North Carolina. |
| 3 | * All Rights Reserved. |
| 4 | * |
| 5 | * This library is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU Lesser General Public |
| 7 | * License as published by the Free Software Foundation; either |
| 8 | * version 2.1 of the License, or (at your option) any later version. |
| 9 | * |
| 10 | * This library is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * Lesser General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU Lesser General Public |
| 16 | * License along with this library; if not, write to the Free Software |
| 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 | * |
| 19 | * Authors: |
| 20 | * Daniel Kopecek <[email protected]> |
| 21 | */ |
| 22 | #ifndef ICACHE_H |
| 23 | #define ICACHE_Hcxx . . $ `src/OVAL/probes/probe/icache.h:23:9`! |
| 24 | |
| 25 | #include <stddef.h> |
| 26 | #include <sexp.h>cxx . . $ `<file>/src/OVAL/probes/SEAP/public/sexp.h`/ |
| 27 | #include "../SEAP/generic/rbt/rbt.h"cxx . . $ `<file>/src/OVAL/probes/SEAP/generic/rbt/rbt.h`/ |
| 28 | #include "common/compat_pthread_barrier.h"cxx . . $ `<file>/src/common/compat_pthread_barrier.h`/ |
| 29 | |
| 30 | #ifndef PROBE_IQUEUE_CAPACITY |
| 31 | #define PROBE_IQUEUE_CAPACITYcxx . . $ `src/OVAL/probes/probe/icache.h:31:9`! 1024 |
| 32 | #endif |
| 33 | |
| 34 | typedef structcxx . . $ $anonymous_type_e14da216e1c852e7_0# { |
| 35 | SEXP_tcxx . . $ SEXP_t# *cobjcxx . . $ $anonymous_type_e14da216e1c852e7_0#cobj.; |
| 36 | unioncxx . . $ $anonymous_type_e14da216e1c852e7_0#$anonymous_type_1# { |
| 37 | SEXP_tcxx . . $ SEXP_t# *itemcxx . . $ $anonymous_type_e14da216e1c852e7_0#$anonymous_type_1#item.; |
| 38 | pthread_cond_tcxx . . $ pthread_cond_t# *condcxx . . $ $anonymous_type_e14da216e1c852e7_0#$anonymous_type_1#cond.; |
| 39 | } pcxx . . $ $anonymous_type_e14da216e1c852e7_0#p.; |
| 40 | } probe_iqpair_tcxx . . $ probe_iqpair_t#; |
| 41 | |
| 42 | typedef structcxx . . $ $anonymous_type_e14da216e1c852e7_2# { |
| 43 | rbt_tcxx . . $ rbt_t# *treecxx . . $ $anonymous_type_e14da216e1c852e7_2#tree.; /* XXX: rewrite to extensible or linear hashing */ |
| 44 | pthread_tcxx . . $ pthread_t# thidcxx . . $ $anonymous_type_e14da216e1c852e7_2#thid.; |
| 45 | pthread_barrier_tcxx . . $ pthread_barrier_t# *th_barriercxx . . $ $anonymous_type_e14da216e1c852e7_2#th_barrier.; |
| 46 | |
| 47 | pthread_mutex_tcxx . . $ pthread_mutex_t# queue_mutexcxx . . $ $anonymous_type_e14da216e1c852e7_2#queue_mutex.; |
| 48 | pthread_cond_tcxx . . $ pthread_cond_t# queue_notemptycxx . . $ $anonymous_type_e14da216e1c852e7_2#queue_notempty.; |
| 49 | pthread_cond_tcxx . . $ pthread_cond_t# queue_notfullcxx . . $ $anonymous_type_e14da216e1c852e7_2#queue_notfull.; |
| 50 | |
| 51 | probe_iqpair_tcxx . . $ probe_iqpair_t# queuecxx . . $ $anonymous_type_e14da216e1c852e7_2#queue.[PROBE_IQUEUE_CAPACITYcxx . . $ `src/OVAL/probes/probe/icache.h:31:9`!]; |
| 52 | uint16_tcxx . . $ uint16_t# queue_begcxx . . $ $anonymous_type_e14da216e1c852e7_2#queue_beg.; |
| 53 | uint16_tcxx . . $ uint16_t# queue_endcxx . . $ $anonymous_type_e14da216e1c852e7_2#queue_end.; |
| 54 | uint16_tcxx . . $ uint16_t# queue_cntcxx . . $ $anonymous_type_e14da216e1c852e7_2#queue_cnt.; |
| 55 | uint16_tcxx . . $ uint16_t# queue_maxcxx . . $ $anonymous_type_e14da216e1c852e7_2#queue_max.; |
| 56 | } probe_icache_tcxx . . $ probe_icache_t#; |
| 57 | |
| 58 | typedef structcxx . . $ $anonymous_type_e14da216e1c852e7_3# { |
| 59 | SEXP_tcxx . . $ SEXP_t# **itemcxx . . $ $anonymous_type_e14da216e1c852e7_3#item.; |
| 60 | uint16_tcxx . . $ uint16_t# countcxx . . $ $anonymous_type_e14da216e1c852e7_3#count.; |
| 61 | } probe_citem_tcxx . . $ probe_citem_t#; |
| 62 | |
| 63 | probe_icache_tcxx . . $ probe_icache_t# *probe_icache_newcxx . . $ probe_icache_new(863b34798c379835).(pthread_barrier_tcxx . . $ pthread_barrier_t# *th_barrier); |
| 64 | int probe_icache_addcxx . . $ probe_icache_add(5a71e861ec60878d).(probe_icache_tcxx . . $ probe_icache_t# *cache, SEXP_tcxx . . $ SEXP_t# *cobj, SEXP_tcxx . . $ SEXP_t# *item); |
| 65 | int probe_icache_nopcxx . . $ probe_icache_nop(dc98f03c45e0d51f).(probe_icache_tcxx . . $ probe_icache_t# *cache); |
| 66 | void probe_icache_freecxx . . $ probe_icache_free(b601f10d292cbb66).(probe_icache_tcxx . . $ probe_icache_t# *cache); |
| 67 | |
| 68 | #endif /* ICACHE_H */ |