Home
last modified time | relevance | path

Searched refs:e (Results 1 – 25 of 160) sorted by relevance

1234567

/xnu-11215/libkern/libkern/coreanalytics/
H A Dcoreanalytics_internal.h59 #define _f2(fe, e, fo, x, ...) fe(x) e _f1(fe, e, fo, __VA_ARGS__) argument
60 #define _f3(fe, e, fo, x, ...) fo(x) e _f2(fe, e, fo, __VA_ARGS__) argument
61 #define _f4(fe, e, fo, x, ...) fe(x) e _f3(fe, e, fo, __VA_ARGS__) argument
62 #define _f5(fe, e, fo, x, ...) fo(x) e _f4(fe, e, fo, __VA_ARGS__) argument
63 #define _f6(fe, e, fo, x, ...) fe(x) e _f5(fe, e, fo, __VA_ARGS__) argument
64 #define _f7(fe, e, fo, x, ...) fo(x) e _f6(fe, e, fo, __VA_ARGS__) argument
65 #define _f8(fe, e, fo, x, ...) fe(x) e _f7(fe, e, fo, __VA_ARGS__) argument
66 #define _f9(fe, e, fo, x, ...) fo(x) e _f8(fe, e, fo, __VA_ARGS__) argument
67 #define _f10(fe, e, fo, x, ...) fe(x) e _f9(fe, e, fo, __VA_ARGS__) argument
68 #define _f11(fe, e, fo, x, ...) fo(x) e _f10(fe, e, fo, __VA_ARGS__) argument
[all …]
/xnu-11215/tests/
H A Dqueue.c25 struct qe_t2 *e; in check_queue() local
28 queue_iterate(q, e, struct qe_t2 *, link) { in check_queue()
42 struct qe_t2 *e; variable
47 e = &elems[i];
48 e->a = e->b = i + 1;
49 queue_enter(&head, e, struct qe_t2 *, link);
55 T_EXPECT_EQ(e, &elems[0], "removed elem 1");
59 T_EXPECT_EQ(e, &elems[1], "removed elem 2");
63 T_EXPECT_EQ(e, &elems[3], "removed elem 4");
66 e = &elems[2];
[all …]
H A Dtest_strings.c66 T_COMPARE(e, sizeof(e), f, sizeof(f), 0 - 'b');
67 T_COMPARE(f, sizeof(f), e, sizeof(e), 'b' - 0);
74 T_COMPARE(e, sizeof(e) - 1, f, sizeof(f) - 1, 0 - 'b');
75 T_COMPARE(f, sizeof(f) - 1, e, sizeof(e) - 1, 'b' - 0);
102 T_COMPARE(e, sizeof(e), f, 0 - 'b');
110 T_COMPARE(e, sizeof(e) - 1, f, 0 - 'b');
139 T_COMPARE(e, sizeof(e), f, sizeof(f), 0 - 'b');
140 T_COMPARE(f, sizeof(f), e, sizeof(e), 'b' - 0);
147 T_COMPARE(e, sizeof(e) - 1, f, sizeof(f) - 1, 0 - 'b');
176 T_COMPARE(e, sizeof(e), f, 0 - 'b');
[all …]
H A Dperf_exit.c114 ktrace_events_single(session, NEXT_CASE_EVENTID, ^(__unused ktrace_event_t e) {
124 …ce_events_single(session, (BSDDBG_CODE(DBG_BSD_EXCP_SC, 1) | DBG_FUNC_START), ^(ktrace_event_t e) {
125 T_QUIET; T_ASSERT_LE(e->pid, PID_MAX, "pid %d is valid in start tracepoint", e->pid);
126 begin_ts[e->pid] = e->timestamp;
129 …ts_single(session, (BSDDBG_CODE(DBG_BSD_PROC, BSD_PROC_EXIT) | DBG_FUNC_END), ^(ktrace_event_t e) {
130 T_ASSERT_LE(e->pid, PID_MAX, "pid %d is valid in end tracepoint", e->pid);
132 if (begin_ts[e->pid] == 0) {
136 T_QUIET; T_ASSERT_LE(begin_ts[e->pid], e->timestamp, "timestamps are monotonically increasing");
137 dt_stat_mach_time_add(s, e->timestamp - begin_ts[e->pid]);
H A Dpriority_queue.cpp47 struct priority_queue_entry e; member
55 dump_pqueue_entry(priority_queue_entry_sched_t e, int depth) in dump_pqueue_entry() argument
59 printf("%*s [%02d] %p\n", depth * 4, "", e->key, (void *)e); in dump_pqueue_entry()
60 t = pqueue_sched_max_t::unpack_child(e); in dump_pqueue_entry()
64 while (e->next) { in dump_pqueue_entry()
65 e = e->next; in dump_pqueue_entry()
66 dump_pqueue_entry(e, depth); in dump_pqueue_entry()
167 priority_queue_entry_init(&node->e);
169 priority_queue_insert(&pq, &node->e);
176 result = priority_queue_max(&pq, union test_node, e);
[all …]
H A Dperf_vmfault.c388 char *e; in setup_and_run_test() local
394 if ((e = getenv("NTHREADS"))) { in setup_and_run_test()
398 num_threads = (int)strtol(e, NULL, 0); in setup_and_run_test()
401 if ((e = getenv("MEMSIZEMB"))) { in setup_and_run_test()
405 if ((e = getenv("VARIANT"))) { in setup_and_run_test()
426 char *e; variable
430 if ((e = getenv("DT_STAT_NTHREADS"))) {
431 nthreads = (int)strtol(e, NULL, 0);
451 char *e; variable
455 if ((e = getenv("DT_STAT_NTHREADS"))) {
[all …]
H A Dthread_call_race_71455282.c13 #define expect(e) if (-1 == (e)) edie(#e) argument
/xnu-11215/osfmk/vm/
H A Danalytics.c93 e->max_alloced = max_alloced; in report_vm_swapusage()
94 e->max_used = max_used; in report_vm_swapusage()
95 add_trial_uuids(e->trial_treatment_id, e->trial_experiment_id); in report_vm_swapusage()
112 add_trial_uuids(e->trial_treatment_id, e->trial_experiment_id); in report_mlock_failures()
195 e->hour1 = c_buckets[0].count; in report_compressor_age()
196 e->hour6 = c_buckets[1].count; in report_compressor_age()
197 e->hour12 = c_buckets[2].count; in report_compressor_age()
198 e->hour24 = c_buckets[3].count; in report_compressor_age()
199 e->hour36 = c_buckets[4].count; in report_compressor_age()
202 add_trial_uuids(e->trial_treatment_id, e->trial_experiment_id); in report_compressor_age()
[all …]
/xnu-11215/tools/lldbmacros/core/
H A Diterators.py220 return (transform(e) for e in iter_linked_list(
273 return (e for e in iter_linked_list(head_value, next_path, "slh_first"))
279 return (e for e in iter_linked_list(head_value, next_path, "lh_first"))
285 return (e for e in iter_linked_list(head_value, next_path, "stqh_first"))
291 return (e for e in iter_linked_list(head_value, next_path, "tqh_first"))
298 return (e for e in iter_linked_list(head_value, next_path, field))
490 e = self.next(e)
493 while e is not None and cmp(e, max_key) >= 0:
495 e = self.next(e)
524 return (transform(e) for e in iter_linked_list(
[all …]
H A Dkernelcore.py45 return (value(e.AddressOf()) for e in ccol.iter_linked_list(
67 return (value(e.AddressOf()) for e in ccol.iter_linked_list(head, field_name))
88 return (value(e.AddressOf()) for e in ccol.iter_linked_list(
117 return (value(e.AddressOf()) for e in ccol.iter_queue_entries(
140 return (value(e.AddressOf()) for e in ccol.iter_circle_queue(
169 return (value(e.AddressOf()) for e in ccol.iter_queue(
187 return (value(e.AddressOf()) for e in ccol.iter_RB_HEAD(rootelt.GetSBValue(), field_name))
205 return (value(e.AddressOf()) for e in ccol.iter_priority_queue(
224 return (value(e.AddressOf()) for e in ccol.iter_mpsc_queue(
/xnu-11215/osfmk/kern/
H A Dexclaves_memory.c92 CA_EVENT_TYPE(ca_exclaves_allocation_statistics) * e = event->data; in exclaves_memory_report_accounting()
94 e->pages_alloced = os_atomic_load(&exclaves_allocation_statistics.pages_alloced, relaxed); in exclaves_memory_report_accounting()
95 e->pages_freed = os_atomic_load(&exclaves_allocation_statistics.pages_freed, relaxed); in exclaves_memory_report_accounting()
96 e->time_allocating = os_atomic_load(&exclaves_allocation_statistics.time_allocating, relaxed); in exclaves_memory_report_accounting()
97 e->max_alloc_latency = os_atomic_load(&exclaves_allocation_statistics.max_alloc_latency, relaxed); in exclaves_memory_report_accounting()
98e->alloc_latency_highbit0 = os_atomic_load(&exclaves_allocation_statistics.alloc_latency_byhighbit… in exclaves_memory_report_accounting()
99e->alloc_latency_highbit1 = os_atomic_load(&exclaves_allocation_statistics.alloc_latency_byhighbit… in exclaves_memory_report_accounting()
100e->alloc_latency_highbit2 = os_atomic_load(&exclaves_allocation_statistics.alloc_latency_byhighbit… in exclaves_memory_report_accounting()
101e->alloc_latency_highbit3 = os_atomic_load(&exclaves_allocation_statistics.alloc_latency_byhighbit… in exclaves_memory_report_accounting()
102e->alloc_latency_highbit4 = os_atomic_load(&exclaves_allocation_statistics.alloc_latency_byhighbit… in exclaves_memory_report_accounting()
[all …]
H A Dlocks_internal.h95 #define lck_pretestv(p, e, g) ({ \ argument
96 __auto_type __e = (e); \
103 #define lck_pretest(p, e) \ argument
104 (os_atomic_load(p, relaxed) == (e))
106 #define lck_pretestv(p, e, g) 1
107 #define lck_pretest(p, e) 1
116 #define lock_cmpxchg(p, e, v, m) ({ \ argument
118 __auto_type _e = (e); \
128 #define lock_cmpxchgv(p, e, v, g, m) ({ \ argument
130 __auto_type _e = (e); \
H A Dhost_notify.c148 queue_entry_t e; in host_notify_all() local
154 qe_foreach_safe(e, &host_notify_queue[notify_type]) { in host_notify_all()
155 entry = (host_notify_t)e; in host_notify_all()
162 remqueue(e); in host_notify_all()
163 enqueue_tail(&send_queue, e); in host_notify_all()
186 qe_foreach_safe(e, &send_queue) { in host_notify_all()
187 entry = (host_notify_t)e; in host_notify_all()
/xnu-11215/bsd/sys/
H A Dkdebug_kernel.h331 #define KERNEL_DEBUG_CONSTANT(x, a, b, c, d, e) do {} while (0) argument
332 #define KERNEL_DEBUG_CONSTANT1(x, a, b, c, d, e) do {} while (0) argument
343 #define KERNEL_DEBUG_CONSTANT_RELEASE(x, a, b, c, d, e) \ argument
355 #define KERNEL_DEBUG_CONSTANT_IST1(x, a, b, c, d, e) \ argument
370 #define KERNEL_DEBUG_CONSTANT_IST(type, x, a, b, c, d, e) do {} while (0) argument
371 #define KERNEL_DEBUG_CONSTANT_IST1(x, a, b, c, d, e) do {} while (0) argument
382 #define KERNEL_DEBUG_CONSTANT_DEBUG(x, a, b, c, d, e) \ argument
383 KERNEL_DEBUG(x, a, b, c, d, e)
389 #define KERNEL_DEBUG(x, a, b, c, d, e) \ argument
412 #define KERNEL_DEBUG(x, a, b, c, d, e) do {} while (0) argument
[all …]
/xnu-11215/tools/tests/personas/
H A Dpersona_test.h194 char *s, *e; in parse_groupspec() local
199 s = e = spec; in parse_groupspec()
202 e = s; in parse_groupspec()
203 while (*e && *e != ',') { in parse_groupspec()
204 e++; in parse_groupspec()
206 if (*e) { in parse_groupspec()
209 *e = 0; in parse_groupspec()
212 *e = ','; in parse_groupspec()
213 s = e + 1; in parse_groupspec()
215 s = e; in parse_groupspec()
/xnu-11215/tools/lldbmacros/usertaskdebugging/
H A Dgdbserver.py32 except Exception as e:
33 logging.warn("found exception in read %s" % (str(e)))
147 except Exception as e:
167 except Exception as e:
168 logging.error("Failed to get register information query: %s error: %s" % (query, e))
177 except Exception as e:
189 except Exception as e:
190 logging.warn('Failed to read data %s' % str(e))
205 except Exception as e:
214 except Exception as e:
[all …]
/xnu-11215/san/memory/
H A Dkasan_dynamic_blacklist.c214 e->base = seg->vmaddr; in kasan_dybl_load_kext()
215 e->size = seg->vmsize; in kasan_dybl_load_kext()
216 e->bundleid = kextname; in kasan_dybl_load_kext()
217 e->mh = mh; in kasan_dybl_load_kext()
252 struct range_tree_entry *e; in kasan_dybl_unload_kext() local
256 if (e) { in kasan_dybl_unload_kext()
258 if (e->accessed) { in kasan_dybl_unload_kext()
406 if (!e) { in kasan_is_blacklisted()
413 if (e->bundleid) { in kasan_is_blacklisted()
418 kextname = e->bundleid; in kasan_is_blacklisted()
[all …]
/xnu-11215/tests/sched/
H A Dthread_group_flags.c224 ret = ktrace_print_trace_point(stdout, read_session, e, KTP_KIND_CSV, in search_for_workload_id_tg_flags_tracepoints()
228 uint64_t tg_id = e->arg1; in search_for_workload_id_tg_flags_tracepoints()
229 uint64_t tg_flags = e->arg2; in search_for_workload_id_tg_flags_tracepoints()
239 ret = ktrace_print_trace_point(stdout, read_session, e, KTP_KIND_CSV, in search_for_workload_id_tg_flags_tracepoints()
243 uint64_t tg_id = e->arg1; in search_for_workload_id_tg_flags_tracepoints()
244 uint64_t tg_flags = e->arg2; in search_for_workload_id_tg_flags_tracepoints()
255 uint64_t new_tg_id = e->arg2; in search_for_workload_id_tg_flags_tracepoints()
345 ret = ktrace_print_trace_point(stdout, read_session, e, KTP_KIND_CSV, in search_for_pid_based_tg_flags_tracepoints()
349 uint64_t tg_id = e->arg1; in search_for_pid_based_tg_flags_tracepoints()
350 uint64_t new_tg_flags = e->arg2; in search_for_pid_based_tg_flags_tracepoints()
[all …]
/xnu-11215/tools/lldbmacros/
H A Dutils.py335 for e in ty.get_enum_members_array():
337 d[e.GetName()] = e.GetValueAsSigned()
339 d[e.GetName()] = e.GetValueAsUnsigned()
378 for e in ty.get_enum_members_array():
380 ty_dict[e.GetValueAsSigned()] = e.GetName()
382 ty_dict[e.GetValueAsUnsigned()] = e.GetName()
412 for e in ty.get_enum_members_array():
414 ty_dict[e.GetValueAsSigned()] = e.GetName()
416 ty_dict[e.GetValueAsUnsigned()] = e.GetName()
/xnu-11215/libkern/c++/
H A Dpriority_queue.cpp130 pack_child(entry_t e, const entry_t child) in pack_child()
133 e->tag = vm_memtag_extract_tag((vm_offset_t)child); in pack_child()
135 e->child = (long)child; in pack_child()
139 unpack_child(entry_t e) in unpack_child()
142 return (entry_t)(vm_memtag_add_ptr_tag(e->child, e->tag)); in unpack_child()
144 return (entry_t)e->child; in unpack_child()
237 list_clear(entry_t e) in list_clear()
239 e->next = e->prev = NULL; in list_clear()
330 destroy(queue_t que, uintptr_t offset, void (^callback)(void *e))
420 _priority_queue_destroy(queue_t que, uintptr_t offset, void (^cb)(void *e)) \
/xnu-11215/osfmk/prng/
H A Dentropy.c224 entropy_cpu_data_t *e = PERCPU_GET(entropy_cpu_data); in entropy_collect() local
226 uint32_t sample_count = os_atomic_load(&e->sample_count, relaxed); in entropy_collect()
237 e->samples[sample_count] = sample; in entropy_collect()
242 (void)os_atomic_cmpxchg(&e->sample_count, sample_count, sample_count + 1, release); in entropy_collect()
494 percpu_foreach(e, entropy_cpu_data) { in entropy_provide()
498 uint32_t cpu_sample_count = os_atomic_load(&e->sample_count, acquire); in entropy_provide()
505 …uint32_t filtered_sample_count = entropy_filter(cpu_sample_count, e->samples, ENTROPY_MAX_FILTER_C… in entropy_provide()
515 …health_test_result_t cpu_health_test_result = entropy_health_test(cpu_sample_count, e->samples, EN… in entropy_provide()
523 SHA512_Update(&entropy_data.sha512_ctx, e->samples, cpu_sample_count * sizeof(e->samples[0])); in entropy_provide()
526 os_atomic_store(&e->sample_count, 0, relaxed); in entropy_provide()
/xnu-11215/bsd/dev/dtrace/
H A Dlockstat.c44 #define PROBE_ARGS0(a, b, c, d, e) "\000" argument
45 #define PROBE_ARGS1(a, b, c, d, e) a "\000" argument
46 #define PROBE_ARGS2(a, b, c, d, e) a "\000" b "\000" argument
47 #define PROBE_ARGS3(a, b, c, d, e) a "\000" b "\000" c "\000" argument
48 #define PROBE_ARGS4(a, b, c, d, e) a "\000" b "\000" c "\000" d "\000" argument
49 #define PROBE_ARGS5(a, b, c, d, e) a "\000" b "\000" c "\000" d "\000" e "\000" argument
50 #define PROBE_ARGS_(a, b, c, d, e, n, ...) PROBE_ARGS##n(a, b, c, d, e) argument
/xnu-11215/libkern/os/
H A Datomic_private.h634 #define os_atomic_cmpxchg(p, e, v, m) ({ \ argument
635 os_atomic_basetypeof(p) _r = (e); int _b; \
678 #define os_atomic_cmpxchgv(p, e, v, g, m) ({ \ argument
679 os_atomic_basetypeof(p) _r = (e); int _b; \
838 #define os_atomic_inject_dependency(p, e) \ argument
839 ((typeof(*(p)) *)((p) + _os_atomic_auto_dependency(e).__opaque_zero))
867 #define os_atomic_load_with_dependency_on(p, e) \ argument
868 os_atomic_load(os_atomic_inject_dependency(p, e), dependency)
/xnu-11215/osfmk/ipc/
H A Dipc_importance.h93 #define IIE_TYPE(e) (os_atomic_load(&(e)->iie_bits, relaxed) & IIE_TYPE_MASK) argument
94 #define IIE_REFS(e) (os_ref_get_count_mask(&(e)->iie_bits, IIE_TYPE_BITS)) argument
96 #define IIE_EXTERN(e) ((e)->iie_externcnt - (e)->iie_externdrop) argument
/xnu-11215/pexpert/pexpert/arm64/
H A Dplatform.h52 #define COMBINE5(a, b, c, d, e) NOQUOTE(a)NOQUOTE(b)NOQUOTE(c)NOQUOTE(d)NOQUOTE(e) argument
53 #define COMBINE7(a, b, c, d, e, f, g) NOQUOTE(a)NOQUOTE(b)NOQUOTE(c)NOQUOTE(d)NOQUOTE(e)N… argument

1234567