Home
last modified time | relevance | path

Searched refs:hwt_context (Results 1 – 25 of 26) sorted by relevance

12

/freebsd/sys/dev/hwt/
H A Dhwt_backend.h33 int (*hwt_backend_init)(struct hwt_context *);
34 int (*hwt_backend_deinit)(struct hwt_context *);
35 int (*hwt_backend_configure)(struct hwt_context *, int cpu_id,
37 int (*hwt_backend_svc_buf)(struct hwt_context *, void *data,
39 void (*hwt_backend_enable)(struct hwt_context *, int cpu_id);
40 void (*hwt_backend_disable)(struct hwt_context *, int cpu_id);
43 void (*hwt_backend_stop)(struct hwt_context *);
45 int (*hwt_backend_enable_smp)(struct hwt_context *);
46 int (*hwt_backend_disable_smp)(struct hwt_context *);
61 int hwt_backend_init(struct hwt_context *ctx);
[all …]
H A Dhwt_backend.c66 hwt_backend_init(struct hwt_context *ctx) in hwt_backend_init()
78 hwt_backend_deinit(struct hwt_context *ctx) in hwt_backend_deinit()
87 hwt_backend_configure(struct hwt_context *ctx, int cpu_id, int thread_id) in hwt_backend_configure()
100 hwt_backend_enable(struct hwt_context *ctx, int cpu_id) in hwt_backend_enable()
109 hwt_backend_disable(struct hwt_context *ctx, int cpu_id) in hwt_backend_disable()
118 hwt_backend_enable_smp(struct hwt_context *ctx) in hwt_backend_enable_smp()
127 hwt_backend_disable_smp(struct hwt_context *ctx) in hwt_backend_disable_smp()
136 hwt_backend_dump(struct hwt_context *ctx, int cpu_id) in hwt_backend_dump()
145 hwt_backend_read(struct hwt_context *ctx, struct hwt_vm *vm, int *ident, in hwt_backend_read()
240 hwt_backend_stop(struct hwt_context *ctx) in hwt_backend_stop()
[all …]
H A Dhwt_context.h37 struct hwt_context { struct
40 LIST_ENTRY(hwt_context) next_hch; /* Entry in contexthash. */
41 LIST_ENTRY(hwt_context) next_hwts; /* Entry in ho->hwts. */
79 int hwt_ctx_alloc(struct hwt_context **ctx0); argument
80 void hwt_ctx_free(struct hwt_context *ctx);
81 void hwt_ctx_put(struct hwt_context *ctx);
H A Dhwt_record.h37 int hwt_record_send(struct hwt_context *ctx, struct hwt_record_get *record_get);
39 void hwt_record_ctx(struct hwt_context *ctx, struct hwt_record_entry *ent,
43 void hwt_record_kernel_objects(struct hwt_context *ctx);
44 void hwt_record_free_all(struct hwt_context *ctx);
45 void hwt_record_wakeup(struct hwt_context *ctx);
H A Dhwt_context.c92 hwt_ctx_alloc(struct hwt_context **ctx0) in hwt_ctx_alloc()
94 struct hwt_context *ctx; in hwt_ctx_alloc()
97 ctx = malloc(sizeof(struct hwt_context), M_HWT_CTX, M_WAITOK | M_ZERO); in hwt_ctx_alloc()
118 hwt_ctx_free_cpus(struct hwt_context *ctx) in hwt_ctx_free_cpus()
139 hwt_ctx_free_threads(struct hwt_context *ctx) in hwt_ctx_free_threads()
166 hwt_ctx_free(struct hwt_context *ctx) in hwt_ctx_free()
180 hwt_ctx_put(struct hwt_context *ctx) in hwt_ctx_put()
H A Dhwt_contexthash.c67 static LIST_HEAD(hwt_contexthash, hwt_context) *hwt_contexthash; in LIST_HEAD() argument
73 struct hwt_context *
77 struct hwt_context *ctx;
97 hwt_contexthash_insert(struct hwt_context *ctx) in hwt_contexthash_insert()
111 hwt_contexthash_remove(struct hwt_context *ctx) in hwt_contexthash_remove()
H A Dhwt_owner.c63 struct hwt_context *
66 struct hwt_context *ctx; in hwt_owner_lookup_ctx()
81 struct hwt_context *
84 struct hwt_context *ctx;
117 struct hwt_context *ctx; in hwt_owner_shutdown()
H A Dhwt_thread.h36 struct hwt_context *ctx;
55 void hwt_thread_insert(struct hwt_context *ctx, struct hwt_thread *thr, struct hwt_record_entry *en…
56 struct hwt_thread * hwt_thread_first(struct hwt_context *ctx);
57 struct hwt_thread * hwt_thread_lookup(struct hwt_context *ctx,
H A Dhwt_record.c125 hwt_record_ctx(struct hwt_context *ctx, struct hwt_record_entry *ent, int flags) in hwt_record_ctx()
146 struct hwt_context *ctx; in hwt_record_td()
194 hwt_record_grab(struct hwt_context *ctx, in hwt_record_grab()
226 hwt_record_free_all(struct hwt_context *ctx) in hwt_record_free_all()
245 hwt_record_send(struct hwt_context *ctx, struct hwt_record_get *record_get) in hwt_record_send()
278 hwt_record_kernel_objects(struct hwt_context *ctx) in hwt_record_kernel_objects()
299 hwt_record_wakeup(struct hwt_context *ctx) in hwt_record_wakeup()
H A Dhwt_contexthash.h32 struct hwt_context * hwt_contexthash_lookup(struct proc *p);
33 void hwt_contexthash_insert(struct hwt_context *ctx);
34 void hwt_contexthash_remove(struct hwt_context *ctx);
H A Dhwt_cpu.h41 struct hwt_cpu * hwt_cpu_first(struct hwt_context *ctx);
42 struct hwt_cpu * hwt_cpu_get(struct hwt_context *ctx, int cpu_id);
43 void hwt_cpu_insert(struct hwt_context *ctx, struct hwt_cpu *cpu);
H A Dhwt_owner.h35 LIST_HEAD(, hwt_context) hwts; /* Owned HWTs. */
40 struct hwt_context * hwt_owner_lookup_ctx(struct hwt_owner *ho, pid_t pid);
43 struct hwt_context * hwt_owner_lookup_ctx_by_cpu(struct hwt_owner *ho, int cpu);
H A Dhwt_cpu.c78 hwt_cpu_first(struct hwt_context *ctx) in hwt_cpu_first()
92 hwt_cpu_get(struct hwt_context *ctx, int cpu_id) in hwt_cpu_get()
109 hwt_cpu_insert(struct hwt_context *ctx, struct hwt_cpu *cpu) in hwt_cpu_insert()
H A Dhwt_hook.c62 struct hwt_context *ctx; in hwt_switch_in()
98 struct hwt_context *ctx; in hwt_switch_out()
132 struct hwt_context *ctx; in hwt_hook_thread_exit()
165 struct hwt_context *ctx; in hwt_hook_mmap()
209 struct hwt_context *ctx; in hwt_hook_thread_create()
H A Dhwt_thread.c72 hwt_thread_first(struct hwt_context *ctx) in hwt_thread_first()
89 hwt_thread_lookup(struct hwt_context *ctx, struct thread *td) in hwt_thread_lookup()
155 hwt_thread_insert(struct hwt_context *ctx, struct hwt_thread *thr, in hwt_thread_insert()
H A Dhwt_config.h32 int hwt_config_set(struct thread *td, struct hwt_context *ctx,
34 void hwt_config_free(struct hwt_context *ctx);
H A Dhwt_config.c62 hwt_config_set(struct thread *td, struct hwt_context *ctx, in hwt_config_set()
99 hwt_config_free(struct hwt_context *ctx) in hwt_config_free()
H A Dhwt_vm.h39 struct hwt_context *ctx;
H A Dhwt_ioctl.c135 struct hwt_context *ctx, *ctx1; in hwt_ioctl_alloc_mode_thread()
290 struct hwt_context *ctx; in hwt_ioctl_alloc_mode_cpu()
H A Dhwt_vm.c204 hwt_vm_start_cpu_mode(struct hwt_context *ctx) in hwt_vm_start_cpu_mode()
241 struct hwt_context *ctx; in hwt_vm_ioctl()
/freebsd/sys/arm64/spe/
H A Darm_spe_backend.c118 int spe_backend_disable_smp(struct hwt_context *ctx);
136 spe_backend_init_cpu(struct hwt_context *ctx) in spe_backend_init_cpu()
164 spe_backend_init(struct hwt_context *ctx) in spe_backend_init()
221 spe_backend_deinit(struct hwt_context *ctx) in spe_backend_deinit()
297 spe_backend_configure(struct hwt_context *ctx, int cpu_id, int thread_id) in spe_backend_configure()
364 struct hwt_context *ctx = info->sc->ctx; in arm_spe_enable()
420 spe_backend_enable_smp(struct hwt_context *ctx) in spe_backend_enable_smp()
460 struct hwt_context *ctx = info->sc->ctx; in arm_spe_disable_nolock()
503 spe_backend_disable_smp(struct hwt_context *ctx) in spe_backend_disable_smp()
538 spe_backend_enable(struct hwt_context *ctx, int cpu_id) in spe_backend_enable()
[all …]
H A Darm_spe_dev.h62 int spe_backend_disable_smp(struct hwt_context *ctx);
84 struct hwt_context *ctx;
H A Darm_spe_dev.c310 struct hwt_context *ctx = arg; in arm_spe_error()
/freebsd/sys/amd64/pt/
H A Dpt.c125 struct hwt_context *hwt_ctx;
424 pt_backend_configure(struct hwt_context *ctx, int cpu_id, int thread_id) in pt_backend_configure()
514 pt_backend_enable(struct hwt_context *ctx, int cpu_id) in pt_backend_enable()
529 pt_backend_disable(struct hwt_context *ctx, int cpu_id) in pt_backend_disable()
555 pt_backend_enable_smp(struct hwt_context *ctx) in pt_backend_enable_smp()
574 pt_backend_disable_smp(struct hwt_context *ctx) in pt_backend_disable_smp()
607 pt_backend_init(struct hwt_context *ctx) in pt_backend_init()
632 pt_backend_deinit(struct hwt_context *ctx) in pt_backend_deinit()
/freebsd/sys/modules/hwt/
H A DMakefile10 hwt_context.c \

12