Home
last modified time | relevance | path

Searched refs:session (Results 1 – 25 of 29) sorted by relevance

12

/xnu-11215/bsd/net/
H A Dnetwork_agent.c196 #define NETAGENT_SESSION_LOCK(session) lck_mtx_lock(&session->session_lock) argument
197 #define NETAGENT_SESSION_UNLOCK(session) lck_mtx_unlock(&session->session_lock) argument
334 if (session != NULL) { in netagent_ctl_disconnect()
553 if (session == NULL) { in netagent_send_error_response()
581 if (session == NULL) { in netagent_ctl_send()
662 if (session == NULL) { in netagent_ctl_getopt()
702 if (session == NULL) { in netagent_ctl_setopt()
788 if (session == NULL) { in netagent_create()
794 return session; in netagent_create()
871 if (session != NULL) { in netagent_unregister_session_wrapper()
[all …]
H A Dnetwork_agent.h299 extern void netagent_destroy(netagent_session_t session);
301 extern errno_t netagent_register(netagent_session_t session, struct netagent *agent);
303 extern errno_t netagent_update(netagent_session_t session, struct netagent *agent);
305 extern errno_t netagent_unregister(netagent_session_t session);
H A Dnecp.c1058 if (session == NULL) { in necp_session_open()
1066 fp_set_data(fp, session); in necp_session_open()
1092 if (session != NULL) { in necp_session_op_close()
1392session->session_order = necp_allocate_new_session_order(session->session_priority, session->contr… in necp_session_set_session_priority()
1393 session->dirty = TRUE; in necp_session_set_session_priority()
1492 #pragma unused(session) in necp_session_dump_all()
1744 #pragma unused(session) in necp_session_trie_dump_all()
2509 if (session != NULL) { in necp_delete_session()
3950 session->dirty = TRUE; in necp_policy_create()
4013 session->dirty = TRUE; in necp_policy_mark_for_deletion()
[all …]
/xnu-11215/tests/
H A Dthread_group_set_32261625.c35 ktrace_session_t session = ktrace_session_create(); variable
36 T_WITH_ERRNO; T_ASSERT_NOTNULL(session, "ktrace_session_create");
38 ktrace_set_interactive(session);
40 ktrace_set_completion_handler(session, ^{
41 ktrace_session_destroy(session);
46 ktrace_events_single(session, TEST_EVENTID, ^(__unused ktrace_event_t e) {
49 ktrace_end(session, 1);
52 …ktrace_events_single(session, MACHDBG_CODE(DBG_MACH_THREAD_GROUP, MACH_THREAD_GROUP_SET), ^(ktrace…
58 ktrace_end(session, 0);
61 T_ASSERT_POSIX_SUCCESS(ktrace_start(session, dispatch_get_main_queue()), "ktrace_start");
H A Dperf_exit.c51 static ktrace_session_t session; variable
68 ktrace_end(session, 1); in cleanup()
92 session = ktrace_session_create();
98 ktrace_set_completion_handler(session, ^{
103 ktrace_session_destroy(session);
107 ktrace_set_signal_handler(session);
111 ktrace_filter_process(session, EXIT_BINARY);
112 ktrace_filter_process(session, "perf_exit");
118 ktrace_end(session, 1);
148 int ret = ktrace_start(session, processing_queue);
[all …]
H A Dmemorystatus_zone_test.c76 static ktrace_session_t session = NULL; variable
346 if (session != NULL) { in begin_test_teardown()
348 ktrace_end(session, 1); in begin_test_teardown()
432 if (session != NULL) { in cleanup_and_end_test()
433 ktrace_end(session, 1); in cleanup_and_end_test()
450 session = ktrace_session_create(); in setup_ktrace_session()
453 ktrace_set_interactive(session); in setup_ktrace_session()
455 ktrace_set_dropped_events_handler(session, ^{ in setup_ktrace_session()
459 ktrace_set_completion_handler(session, ^{ in setup_ktrace_session()
460 ktrace_session_destroy(session); in setup_ktrace_session()
[all …]
H A Dstackshot_accuracy.m53 /* ssh won't let the session die if we still have file handles open to its output. */
74 T_ASSERT_POSIX_SUCCESS(setsid(), "session id set");
/xnu-11215/bsd/kern/
H A Dsubr_log_stream.c368 session->lss_ticket = t; in log_session_make()
369 session->lss_stream = ls; in log_session_make()
370 log_stream_snapshot(session->lss_stream, &session->lss_snapshot); in log_session_make()
390 log_stream_commit(session->lss_stream, session->lss_ticket); in log_session_finish()
391 bzero(session, sizeof(*session)); in log_session_finish()
510 log_stream_session_t session; in log_cache_refill() local
530 log_session_finish(&session); in log_cache_refill()
828 log_stream_session_t session; in oslog_stream() local
839 log_session_finish(&session); in oslog_stream()
986 log_stream_session_t session; in oslog_streamopen() local
[all …]
H A Dtty_tty.c92 struct session *sessp; in cttyopen()
257 struct session *sessp; in cttyvp()
H A Dkern_proc.c251 struct session * mysession;
1935 struct session *procsp; in proc_gettty()
2360 struct session *
2363 struct session *sess; in session_alloc()
2425 struct session *
2426 session_ref(struct session *sess) in session_ref()
2547 struct session *procsp; in enterpgrp()
2561 struct session *sess; in enterpgrp()
2670 struct session *sess; in pgrp_destroy()
4056 struct session *
[all …]
H A Dsubr_prf.c134 putchar_args_init(struct putchar_args *pca, struct session *sessp) in putchar_args_init()
190 struct session *sessp; in tprintf_open()
H A Dkern_prot.c1564 struct session *sessp; in getlogin()
1586 struct session *sessp; in setlogin_internal()
H A Dtty.c139 static bool isctty_sp(proc_t p, struct tty *tp, struct session *sessp);
379 struct session *oldsessp; in ttyclose()
1068 struct session *sessp, *oldsessp; in ttioctl_locked()
3371 struct session *sessp; in isctty()
3383 isctty_sp(proc_t p, struct tty *tp, struct session *sessp) in isctty_sp()
H A Dkern_persona.c748 struct session *sessp; in persona_proc_adopt()
H A Dbsd_init.c597 struct session *session0 = session_alloc(kernproc); in bsd_init()
/xnu-11215/tests/sched/
H A Dthread_group_flags.c141 start_test(ktrace_session_t session, pthread_t *threads, int num_threads) in start_test() argument
149 ktrace_end(session, 0); in start_test()
286 ktrace_session_t session = ktrace_session_create(); variable
289 ret = ktrace_events_filter(session, THREAD_GROUP_FILTER, ^(__unused ktrace_event_t event){});
292 ktrace_set_completion_handler(session, ^{
295 ret = ktrace_start_writing_path(session, filepath, 0);
308 start_test(session, threads, num_workload_ids);
396 ktrace_session_t session = ktrace_session_create(); variable
402 ktrace_set_completion_handler(session, ^{
405 ret = ktrace_start_writing_path(session, filepath, 0);
[all …]
H A Doverloaded_runqueue.c267 ktrace_session_t session = ktrace_session_create(); variable
268 T_QUIET; T_WITH_ERRNO; T_ASSERT_NOTNULL(session, "ktrace_session_create");
277 …ret = ktrace_events_filter(session, "C0x01", ^(__unused ktrace_event_t event){}); // records sched…
279 ktrace_set_completion_handler(session, ^{
282 ret = ktrace_start_writing_path(session, filepath, 0);
293 ktrace_end(session, 0);
/xnu-11215/bsd/sys/
H A Dproc_internal.h124 #define SESSION_NULL ((struct session *)NULL)
139 struct session { struct
771 extern LIST_HEAD(sesshashhead, session) * sesshashtbl;
886 extern struct pgrp *proc_pgrp(proc_t, struct session **);
893 extern struct session *session_find_locked(pid_t sessid);
895 extern struct session *session_alloc(struct proc *leader);
896 extern void session_lock(struct session * sess);
897 extern void session_unlock(struct session * sess);
898 extern struct session *session_ref(struct session *sess);
899 extern void session_rele(struct session *sess);
[all …]
H A Dtty.h130 struct session *t_session; /* (TTYL+LL) Enclosing session. */
H A Dproc.h97 struct session;
H A Dsysctl.h987 struct session *e_sess; /* session pointer */
996 struct session *e_tsess; /* tty session pointer */
/xnu-11215/san/tools/
H A Dkstksz36 -- KSANCOV tracing session
214 -- not actually running, so use our ktrace session instead.
/xnu-11215/doc/observability/
H A Drecount.md51 The `recount` macro inspects counters in an LLDB session and is generally useful for retrospective …
/xnu-11215/bsd/vfs/
H A Dvfs_vnops.c1764 struct session *sessp; in vn_ioctl()
/xnu-11215/tools/lldbmacros/
H A DREADME.md190 * now to reload that particular changes without killing your debug session do

12