| /freebsd/sys/dev/hwt/ |
| H A D | hwt_backend.h | 33 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 D | hwt_backend.c | 66 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 D | hwt_context.h | 37 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 D | hwt_record.h | 37 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 D | hwt_context.c | 92 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 D | hwt_contexthash.c | 67 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 D | hwt_owner.c | 63 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 D | hwt_thread.h | 36 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 D | hwt_record.c | 125 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 D | hwt_contexthash.h | 32 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 D | hwt_cpu.h | 41 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 D | hwt_owner.h | 35 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 D | hwt_cpu.c | 78 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 D | hwt_hook.c | 62 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 D | hwt_thread.c | 72 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 D | hwt_config.h | 32 int hwt_config_set(struct thread *td, struct hwt_context *ctx, 34 void hwt_config_free(struct hwt_context *ctx);
|
| H A D | hwt_config.c | 62 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 D | hwt_vm.h | 39 struct hwt_context *ctx;
|
| H A D | hwt_ioctl.c | 135 struct hwt_context *ctx, *ctx1; in hwt_ioctl_alloc_mode_thread() 290 struct hwt_context *ctx; in hwt_ioctl_alloc_mode_cpu()
|
| H A D | hwt_vm.c | 204 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 D | arm_spe_backend.c | 118 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 D | arm_spe_dev.h | 62 int spe_backend_disable_smp(struct hwt_context *ctx); 84 struct hwt_context *ctx;
|
| H A D | arm_spe_dev.c | 310 struct hwt_context *ctx = arg; in arm_spe_error()
|
| /freebsd/sys/amd64/pt/ |
| H A D | pt.c | 125 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 D | Makefile | 10 hwt_context.c \
|