Home
last modified time | relevance | path

Searched refs:ct (Results 1 – 25 of 793) sorted by relevance

12345678910>>...32

/external/bcc/src/python/bcc/
Dlibbcc.py15 import ctypes as ct namespace
17 lib = ct.CDLL("libbcc.so.0", use_errno=True)
20 lib.bpf_module_create_b.restype = ct.c_void_p
21 lib.bpf_module_create_b.argtypes = [ct.c_char_p, ct.c_char_p, ct.c_uint]
22 lib.bpf_module_create_c.restype = ct.c_void_p
23 lib.bpf_module_create_c.argtypes = [ct.c_char_p, ct.c_uint,
24 ct.POINTER(ct.c_char_p), ct.c_int]
25 lib.bpf_module_create_c_from_string.restype = ct.c_void_p
26 lib.bpf_module_create_c_from_string.argtypes = [ct.c_char_p, ct.c_uint,
27 ct.POINTER(ct.c_char_p), ct.c_int]
[all …]
Dperf.py15 import ctypes as ct namespace
20 class perf_event_attr(ct.Structure):
22 ('type', ct.c_uint),
23 ('size', ct.c_uint),
24 ('config', ct.c_ulong),
25 ('sample_period', ct.c_ulong),
26 ('sample_type', ct.c_ulong),
27 ('read_format', ct.c_ulong),
28 ('flags', ct.c_ulong),
29 ('wakeup_events', ct.c_uint),
[all …]
/external/libnetfilter_conntrack/src/conntrack/
Dgetter.c12 static const void *get_attr_orig_ipv4_src(const struct nf_conntrack *ct) in get_attr_orig_ipv4_src() argument
14 return &ct->head.orig.src.v4; in get_attr_orig_ipv4_src()
17 static const void *get_attr_orig_ipv4_dst(const struct nf_conntrack *ct) in get_attr_orig_ipv4_dst() argument
19 return &ct->head.orig.dst.v4; in get_attr_orig_ipv4_dst()
22 static const void *get_attr_repl_ipv4_src(const struct nf_conntrack *ct) in get_attr_repl_ipv4_src() argument
24 return &ct->repl.src.v4; in get_attr_repl_ipv4_src()
27 static const void *get_attr_repl_ipv4_dst(const struct nf_conntrack *ct) in get_attr_repl_ipv4_dst() argument
29 return &ct->repl.dst.v4; in get_attr_repl_ipv4_dst()
32 static const void *get_attr_orig_ipv6_src(const struct nf_conntrack *ct) in get_attr_orig_ipv6_src() argument
34 return &ct->head.orig.src.v6; in get_attr_orig_ipv6_src()
[all …]
Dbuild_mnl.c114 nfct_build_protoinfo(struct nlmsghdr *nlh, const struct nf_conntrack *ct) in nfct_build_protoinfo() argument
118 switch(ct->head.orig.protonum) { in nfct_build_protoinfo()
123 if (!(test_bit(ATTR_TCP_STATE, ct->head.set) || in nfct_build_protoinfo()
124 test_bit(ATTR_TCP_FLAGS_ORIG, ct->head.set) || in nfct_build_protoinfo()
125 test_bit(ATTR_TCP_FLAGS_REPL, ct->head.set) || in nfct_build_protoinfo()
126 test_bit(ATTR_TCP_MASK_ORIG, ct->head.set) || in nfct_build_protoinfo()
127 test_bit(ATTR_TCP_MASK_REPL, ct->head.set) || in nfct_build_protoinfo()
128 test_bit(ATTR_TCP_WSCALE_ORIG, ct->head.set) || in nfct_build_protoinfo()
129 test_bit(ATTR_TCP_WSCALE_REPL, ct->head.set))) { in nfct_build_protoinfo()
134 if (test_bit(ATTR_TCP_STATE, ct->head.set)) { in nfct_build_protoinfo()
[all …]
Dobjopt.c12 static void __autocomplete(struct nf_conntrack *ct, int dir) in __autocomplete() argument
18 this = &ct->head.orig; in __autocomplete()
19 other = &ct->repl; in __autocomplete()
22 this = &ct->repl; in __autocomplete()
23 other = &ct->head.orig; in __autocomplete()
50 ct->head.set[0] |= TS_ORIG | TS_REPL; in __autocomplete()
53 static void setobjopt_undo_snat(struct nf_conntrack *ct) in setobjopt_undo_snat() argument
55 switch (ct->head.orig.l3protonum) { in setobjopt_undo_snat()
57 ct->snat.min_ip.v4 = ct->repl.dst.v4; in setobjopt_undo_snat()
58 ct->snat.max_ip.v4 = ct->snat.min_ip.v4; in setobjopt_undo_snat()
[all …]
Dsetter.c41 set_attr_orig_ipv4_src(struct nf_conntrack *ct, const void *value, size_t len) in set_attr_orig_ipv4_src() argument
43 ct->head.orig.src.v4 = *((uint32_t *) value); in set_attr_orig_ipv4_src()
47 set_attr_orig_ipv4_dst(struct nf_conntrack *ct, const void *value, size_t len) in set_attr_orig_ipv4_dst() argument
49 ct->head.orig.dst.v4 = *((uint32_t *) value); in set_attr_orig_ipv4_dst()
53 set_attr_repl_ipv4_src(struct nf_conntrack *ct, const void *value, size_t len) in set_attr_repl_ipv4_src() argument
55 ct->repl.src.v4 = *((uint32_t *) value); in set_attr_repl_ipv4_src()
59 set_attr_repl_ipv4_dst(struct nf_conntrack *ct, const void *value, size_t len) in set_attr_repl_ipv4_dst() argument
61 ct->repl.dst.v4 = *((uint32_t *) value); in set_attr_repl_ipv4_dst()
65 set_attr_orig_ipv6_src(struct nf_conntrack *ct, const void *value, size_t len) in set_attr_orig_ipv6_src() argument
67 memcpy(&ct->head.orig.src.v6, value, sizeof(uint32_t)*4); in set_attr_orig_ipv6_src()
[all …]
Dbuild.c107 const struct nf_conntrack *ct) in __build_protoinfo() argument
111 switch(ct->head.orig.protonum) { in __build_protoinfo()
116 if (!(test_bit(ATTR_TCP_STATE, ct->head.set) || in __build_protoinfo()
117 test_bit(ATTR_TCP_FLAGS_ORIG, ct->head.set) || in __build_protoinfo()
118 test_bit(ATTR_TCP_FLAGS_REPL, ct->head.set) || in __build_protoinfo()
119 test_bit(ATTR_TCP_MASK_ORIG, ct->head.set) || in __build_protoinfo()
120 test_bit(ATTR_TCP_MASK_REPL, ct->head.set) || in __build_protoinfo()
121 test_bit(ATTR_TCP_WSCALE_ORIG, ct->head.set) || in __build_protoinfo()
122 test_bit(ATTR_TCP_WSCALE_REPL, ct->head.set))) { in __build_protoinfo()
127 if (test_bit(ATTR_TCP_STATE, ct->head.set)) in __build_protoinfo()
[all …]
Dgrp_getter.c12 static void get_attr_grp_orig_ipv4(const struct nf_conntrack *ct, void *data) in get_attr_grp_orig_ipv4() argument
15 this->src = ct->head.orig.src.v4; in get_attr_grp_orig_ipv4()
16 this->dst = ct->head.orig.dst.v4; in get_attr_grp_orig_ipv4()
19 static void get_attr_grp_repl_ipv4(const struct nf_conntrack *ct, void *data) in get_attr_grp_repl_ipv4() argument
22 this->src = ct->repl.src.v4; in get_attr_grp_repl_ipv4()
23 this->dst = ct->repl.dst.v4; in get_attr_grp_repl_ipv4()
26 static void get_attr_grp_orig_ipv6(const struct nf_conntrack *ct, void *data) in get_attr_grp_orig_ipv6() argument
29 memcpy(this->src, &ct->head.orig.src.v6, sizeof(uint32_t)*4); in get_attr_grp_orig_ipv6()
30 memcpy(this->dst, &ct->head.orig.dst.v6, sizeof(uint32_t)*4); in get_attr_grp_orig_ipv6()
33 static void get_attr_grp_repl_ipv6(const struct nf_conntrack *ct, void *data) in get_attr_grp_repl_ipv6() argument
[all …]
Dsnprintf_default.c14 const struct nf_conntrack *ct) in __snprintf_l3protocol() argument
17 l3proto2str[ct->head.orig.l3protonum] == NULL ? in __snprintf_l3protocol()
18 "unknown" : l3proto2str[ct->head.orig.l3protonum], in __snprintf_l3protocol()
19 ct->head.orig.l3protonum)); in __snprintf_l3protocol()
24 const struct nf_conntrack *ct) in __snprintf_protocol() argument
27 proto2str[ct->head.orig.protonum] == NULL ? in __snprintf_protocol()
28 "unknown" : proto2str[ct->head.orig.protonum], in __snprintf_protocol()
29 ct->head.orig.protonum)); in __snprintf_protocol()
34 const struct nf_conntrack *ct) in __snprintf_timeout() argument
36 return snprintf(buf, len, "%u ", ct->timeout); in __snprintf_timeout()
[all …]
Dparse.c209 struct nf_conntrack *ct) in __parse_protoinfo_tcp() argument
216 ct->protoinfo.tcp.state = in __parse_protoinfo_tcp()
218 set_bit(ATTR_TCP_STATE, ct->head.set); in __parse_protoinfo_tcp()
222 memcpy(&ct->protoinfo.tcp.wscale[__DIR_ORIG], in __parse_protoinfo_tcp()
225 set_bit(ATTR_TCP_WSCALE_ORIG, ct->head.set); in __parse_protoinfo_tcp()
229 memcpy(&ct->protoinfo.tcp.wscale[__DIR_REPL], in __parse_protoinfo_tcp()
232 set_bit(ATTR_TCP_WSCALE_REPL, ct->head.set); in __parse_protoinfo_tcp()
236 memcpy(&ct->protoinfo.tcp.flags[0], in __parse_protoinfo_tcp()
239 set_bit(ATTR_TCP_FLAGS_ORIG, ct->head.set); in __parse_protoinfo_tcp()
240 set_bit(ATTR_TCP_MASK_ORIG, ct->head.set); in __parse_protoinfo_tcp()
[all …]
Dgrp_setter.c40 static void set_attr_grp_orig_ipv4(struct nf_conntrack *ct, const void *value) in set_attr_grp_orig_ipv4() argument
43 ct->head.orig.src.v4 = this->src; in set_attr_grp_orig_ipv4()
44 ct->head.orig.dst.v4 = this->dst; in set_attr_grp_orig_ipv4()
45 ct->head.orig.l3protonum = AF_INET; in set_attr_grp_orig_ipv4()
48 static void set_attr_grp_repl_ipv4(struct nf_conntrack *ct, const void *value) in set_attr_grp_repl_ipv4() argument
51 ct->repl.src.v4 = this->src; in set_attr_grp_repl_ipv4()
52 ct->repl.dst.v4 = this->dst; in set_attr_grp_repl_ipv4()
53 ct->repl.l3protonum = AF_INET; in set_attr_grp_repl_ipv4()
56 static void set_attr_grp_orig_ipv6(struct nf_conntrack *ct, const void *value) in set_attr_grp_orig_ipv6() argument
59 memcpy(&ct->head.orig.src.v6, this->src, sizeof(uint32_t)*4); in set_attr_grp_orig_ipv6()
[all …]
Dparse_mnl.c330 nfct_parse_protoinfo_tcp(const struct nlattr *attr, struct nf_conntrack *ct) in nfct_parse_protoinfo_tcp() argument
338 ct->protoinfo.tcp.state = in nfct_parse_protoinfo_tcp()
340 set_bit(ATTR_TCP_STATE, ct->head.set); in nfct_parse_protoinfo_tcp()
344 memcpy(&ct->protoinfo.tcp.wscale[__DIR_ORIG], in nfct_parse_protoinfo_tcp()
347 set_bit(ATTR_TCP_WSCALE_ORIG, ct->head.set); in nfct_parse_protoinfo_tcp()
351 memcpy(&ct->protoinfo.tcp.wscale[__DIR_REPL], in nfct_parse_protoinfo_tcp()
354 set_bit(ATTR_TCP_WSCALE_REPL, ct->head.set); in nfct_parse_protoinfo_tcp()
358 memcpy(&ct->protoinfo.tcp.flags[0], in nfct_parse_protoinfo_tcp()
361 set_bit(ATTR_TCP_FLAGS_ORIG, ct->head.set); in nfct_parse_protoinfo_tcp()
362 set_bit(ATTR_TCP_MASK_ORIG, ct->head.set); in nfct_parse_protoinfo_tcp()
[all …]
Dsnprintf_xml.c164 const struct nf_conntrack *ct, in __snprintf_counters_xml() argument
171 (unsigned long long)ct->counters[type].packets); in __snprintf_counters_xml()
175 (unsigned long long)ct->counters[type].bytes); in __snprintf_counters_xml()
183 const struct nf_conntrack *ct) in __snprintf_timestamp_start() argument
189 (unsigned long long)ct->timestamp.start); in __snprintf_timestamp_start()
197 const struct nf_conntrack *ct) in __snprintf_timestamp_stop() argument
203 (unsigned long long)ct->timestamp.stop); in __snprintf_timestamp_stop()
211 const struct nf_conntrack *ct) in __snprintf_deltatime_now() argument
218 delta_time = now - (time_t)(ct->timestamp.start / NSEC_PER_SEC); in __snprintf_deltatime_now()
228 __snprintf_deltatime(char *buf, unsigned int len, const struct nf_conntrack *ct) in __snprintf_deltatime() argument
[all …]
Dapi.c77 struct nf_conntrack *ct; in nfct_new() local
79 ct = malloc(sizeof(struct nf_conntrack)); in nfct_new()
80 if (!ct) in nfct_new()
83 memset(ct, 0, sizeof(struct nf_conntrack)); in nfct_new()
85 return ct; in nfct_new()
92 void nfct_destroy(struct nf_conntrack *ct) in nfct_destroy() argument
94 assert(ct != NULL); in nfct_destroy()
95 if (ct->secctx) in nfct_destroy()
96 free(ct->secctx); in nfct_destroy()
97 if (ct->helper_info) in nfct_destroy()
[all …]
/external/tensorflow/tensorflow/tools/test/
Dgpu_info_lib.py21 import ctypes as ct namespace
46 class CUDADeviceProperties(ct.Structure):
50 ("name", ct.c_char * 256),
51 ("totalGlobalMem", ct.c_size_t),
52 ("sharedMemPerBlock", ct.c_size_t),
53 ("regsPerBlock", ct.c_int),
54 ("warpSize", ct.c_int),
55 ("memPitch", ct.c_size_t),
56 ("maxThreadsPerBlock", ct.c_int),
57 ("maxThreadsDim", ct.c_int * 3),
[all …]
/external/libnl/lib/netfilter/
Dct_obj.c60 struct nfnl_ct *ct = (struct nfnl_ct *) c; in ct_free_data() local
62 if (ct == NULL) in ct_free_data()
65 nl_addr_put(ct->ct_orig.src); in ct_free_data()
66 nl_addr_put(ct->ct_orig.dst); in ct_free_data()
67 nl_addr_put(ct->ct_repl.src); in ct_free_data()
68 nl_addr_put(ct->ct_repl.dst); in ct_free_data()
121 static void dump_icmp(struct nl_dump_params *p, struct nfnl_ct *ct, int reply) in dump_icmp() argument
123 if (nfnl_ct_test_icmp_type(ct, reply)) in dump_icmp()
124 nl_dump(p, "icmp type %d ", nfnl_ct_get_icmp_type(ct, reply)); in dump_icmp()
126 if (nfnl_ct_test_icmp_code(ct, reply)) in dump_icmp()
[all …]
Dct.c119 static int ct_parse_ip(struct nfnl_ct *ct, int repl, struct nlattr *attr) in ct_parse_ip() argument
133 err = nfnl_ct_set_src(ct, repl, addr); in ct_parse_ip()
142 err = nfnl_ct_set_dst(ct, repl, addr); in ct_parse_ip()
151 err = nfnl_ct_set_src(ct, repl, addr); in ct_parse_ip()
160 err = nfnl_ct_set_dst(ct, repl, addr); in ct_parse_ip()
174 static int ct_parse_proto(struct nfnl_ct *ct, int repl, struct nlattr *attr) in ct_parse_proto() argument
184 nfnl_ct_set_proto(ct, nla_get_u8(tb[CTA_PROTO_NUM])); in ct_parse_proto()
186 nfnl_ct_set_src_port(ct, repl, in ct_parse_proto()
189 nfnl_ct_set_dst_port(ct, repl, in ct_parse_proto()
192 if (ct->ct_family == AF_INET) { in ct_parse_proto()
[all …]
/external/grpc-grpc/test/core/gpr/
Dcpu_test.cc68 struct cpu_test* ct = static_cast<struct cpu_test*>(arg); in worker_thread() local
81 GPR_ASSERT(cpu < ct->ncores); in worker_thread()
82 gpr_mu_lock(&ct->mu); in worker_thread()
83 ct->used[cpu] = 1; in worker_thread()
84 for (j = 0; j < ct->ncores; j++) { in worker_thread()
85 if (!ct->used[j]) break; in worker_thread()
87 gpr_mu_unlock(&ct->mu); in worker_thread()
88 if (j == ct->ncores) { in worker_thread()
92 gpr_mu_lock(&ct->mu); in worker_thread()
93 ct->r = r; /* make it look like we care about r's value... */ in worker_thread()
[all …]
/external/perfetto/src/trace_processor/
Dclock_tracker_unittest.cc38 ClockTracker ct(&context); in TEST() local
40 EXPECT_EQ(ct.ToTraceTime(ClockDomain::kRealTime, 0), base::nullopt); in TEST()
42 ct.SyncClocks(ClockDomain::kRealTime, 10, 10010); in TEST()
43 ct.SyncClocks(ClockDomain::kRealTime, 20, 20220); in TEST()
44 ct.SyncClocks(ClockDomain::kRealTime, 30, 30030); in TEST()
45 ct.SyncClocks(ClockDomain::kMonotonic, 1000, 100000); in TEST()
47 EXPECT_EQ(ct.ToTraceTime(ClockDomain::kRealTime, 0), 10000); in TEST()
48 EXPECT_EQ(ct.ToTraceTime(ClockDomain::kRealTime, 1), 10001); in TEST()
49 EXPECT_EQ(ct.ToTraceTime(ClockDomain::kRealTime, 9), 10009); in TEST()
50 EXPECT_EQ(ct.ToTraceTime(ClockDomain::kRealTime, 10), 10010); in TEST()
[all …]
/external/boringssl/src/third_party/wycheproof_testvectors/
Dkw_test.txt10 ct = 9de453ced5d4ab46a5601708eeefefb5e593e6ae8e86b26b
16 ct = 8c3aba85cc0ae1ae10b36658b068f595baf8caafb745ef3c
22 ct = 1de093654826f18fcd0f3fd499416ff22ed75ee12fe0b624
29 ct = 9c3ddc23827b7b3c13105f9e8b11523baccdfb6c8b7e7825496e7a840bd32aec
36 ct = afb744aaf746dcc0b57f8b378c404cbe877f44cf3d45140d60814eda3f541f01
43 ct = cff98cd64cb51ab99b81aee82cee4274d0df3e1b6a4943d39236ea989846d0cc
50 ct = 58dcfb0e7ec4d3bc8003418d865fbd520c6b24b2bde35b1be5b1c5ff32a130f33d035e5932616083
57 ct = 4ee47bd68d418586c447a39111e2ec1502ff0f1726ea91c5d97370409d89b8e66e889b638ac40ced
64 ct = d3b093fd822ce454ebc251c6f21fa71c3858ee7e623ecbfbbf887398a30b40c55d0565c7a15e4015
71 ct = 222deadde6efb760cae42fa188310e0c07e7d557529766444a9efb330907d42f0dd8f3d17b3a38bf40d68c095a9cce…
[all …]
Daes_gcm_siv_test.txt14 ct =
24 ct = b5d839330ac7b786
34 ct = 7323ea61d05932260047d942
44 ct = 743f7c8077ab25f8624e2e948579cf77
54 ct = 84e07e62ba83a6585417245d7ec413a9fe427d6315c09b57ce45f2e3936a9445
64 ct = 3fd24ce1f5a67b75bf2351f181a475c7b800a5b4d3dcf70106b1eea82fa1d64df42bf7226122fa92e17a40eeaac120…
74 ct = 2433668f1058190f6d43e360f4f35cd8e475127cfca7028ea8ab5c20f7ab2af02516a2bdcbc08d521be37ff28c152b…
84 ct = 1e6daba35669f427
94 ct = 296c7889fd99f41917f44620
104 ct = e2b0c5da79a901c1745f700525cb335b
[all …]
Dchacha20_poly1305_test.txt14 ct = d31a8d34648e60db7b86afbc53ef7ec2a4aded51296e08fea9e2b5a736ee62d63dbea45e8ca9671282fafb69da9272…
23 ct =
32 ct =
41 ct = 3a
50 ct = c4
59 ct = 4d13
68 ct = b60d
77 ct = 5dfe3440dbb3c3
86 ct = 4bd47212941ce3
95 ct = 8e9439a56eeec817
[all …]
/external/libnl/src/lib/
Dct.c24 struct nfnl_ct *ct; in nl_cli_ct_alloc() local
26 ct = nfnl_ct_alloc(); in nl_cli_ct_alloc()
27 if (!ct) in nl_cli_ct_alloc()
30 return ct; in nl_cli_ct_alloc()
38 void nl_cli_ct_parse_family(struct nfnl_ct *ct, char *arg) in nl_cli_ct_parse_family() argument
47 nfnl_ct_set_family(ct, family); in nl_cli_ct_parse_family()
50 void nl_cli_ct_parse_protocol(struct nfnl_ct *ct, char *arg) in nl_cli_ct_parse_protocol() argument
59 nfnl_ct_set_proto(ct, proto); in nl_cli_ct_parse_protocol()
62 void nl_cli_ct_parse_mark(struct nfnl_ct *ct, char *arg) in nl_cli_ct_parse_mark() argument
65 nfnl_ct_set_mark(ct, mark); in nl_cli_ct_parse_mark()
[all …]
/external/libnetfilter_conntrack/utils/
Dconntrack_master.c14 struct nf_conntrack *ct, *expected; in main() local
17 ct = nfct_new(); in main()
18 if (!ct) { in main()
23 nfct_set_attr_u8(ct, ATTR_L3PROTO, AF_INET); in main()
24 nfct_set_attr_u32(ct, ATTR_IPV4_SRC, inet_addr("1.1.1.1")); in main()
25 nfct_set_attr_u32(ct, ATTR_IPV4_DST, inet_addr("2.2.2.2")); in main()
27 nfct_set_attr_u8(ct, ATTR_L4PROTO, IPPROTO_TCP); in main()
28 nfct_set_attr_u16(ct, ATTR_PORT_SRC, htons(20)); in main()
29 nfct_set_attr_u16(ct, ATTR_PORT_DST, htons(10)); in main()
31 nfct_setobjopt(ct, NFCT_SOPT_SETUP_REPLY); in main()
[all …]
/external/bcc/tools/
Dtcpdrop.py26 import ctypes as ct namespace
155 class Data_ipv4(ct.Structure):
157 ("pid", ct.c_uint),
158 ("ip", ct.c_ulonglong),
159 ("saddr", ct.c_uint),
160 ("daddr", ct.c_uint),
161 ("sport", ct.c_ushort),
162 ("dport", ct.c_ushort),
163 ("state", ct.c_ubyte),
164 ("tcpflags", ct.c_ubyte),
[all …]

12345678910>>...32