/kernel/linux/linux-5.10/arch/mips/kernel/ |
H A D | watch.c | 20 struct mips3264_watch_reg_state *watches = &t->thread.watch.mips3264; in mips_install_watch_registers() local 28 write_c0_watchlo3(watches->watchlo[3]); in mips_install_watch_registers() 29 write_c0_watchhi3(watchhi | watches->watchhi[3]); in mips_install_watch_registers() 32 write_c0_watchlo2(watches->watchlo[2]); in mips_install_watch_registers() 33 write_c0_watchhi2(watchhi | watches->watchhi[2]); in mips_install_watch_registers() 36 write_c0_watchlo1(watches->watchlo[1]); in mips_install_watch_registers() 37 write_c0_watchhi1(watchhi | watches->watchhi[1]); in mips_install_watch_registers() 40 write_c0_watchlo0(watches->watchlo[0]); in mips_install_watch_registers() 41 write_c0_watchhi0(watchhi | watches->watchhi[0]); in mips_install_watch_registers() 52 struct mips3264_watch_reg_state *watches in mips_read_watch_registers() local [all...] |
/kernel/linux/linux-6.6/arch/mips/kernel/ |
H A D | watch.c | 20 struct mips3264_watch_reg_state *watches = &t->thread.watch.mips3264; in mips_install_watch_registers() local 28 write_c0_watchlo3(watches->watchlo[3]); in mips_install_watch_registers() 29 write_c0_watchhi3(watchhi | watches->watchhi[3]); in mips_install_watch_registers() 32 write_c0_watchlo2(watches->watchlo[2]); in mips_install_watch_registers() 33 write_c0_watchhi2(watchhi | watches->watchhi[2]); in mips_install_watch_registers() 36 write_c0_watchlo1(watches->watchlo[1]); in mips_install_watch_registers() 37 write_c0_watchhi1(watchhi | watches->watchhi[1]); in mips_install_watch_registers() 40 write_c0_watchlo0(watches->watchlo[0]); in mips_install_watch_registers() 41 write_c0_watchhi0(watchhi | watches->watchhi[0]); in mips_install_watch_registers() 52 struct mips3264_watch_reg_state *watches in mips_read_watch_registers() local [all...] |
/kernel/linux/linux-5.10/arch/loongarch/kernel/ |
H A D | watch.c | 445 struct loongarch_watch_reg_state *watches = &t->thread.watch; in loongarch_install_watch_registers() local 451 if (watches->irw[i] & (LA_WATCH_R | LA_WATCH_W)) { in loongarch_install_watch_registers() 452 if ((watches->irw[i] & LA_WATCH_R)) in loongarch_install_watch_registers() 454 if ((watches->irw[i] & LA_WATCH_W)) in loongarch_install_watch_registers() 457 watch_csrwr(watches->addr[i], LOONGARCH_CSR_DB0ADDR + 8*i); in loongarch_install_watch_registers() 458 watch_csrwr(watches->mask[i], LOONGARCH_CSR_DB0MASK + 8*i); in loongarch_install_watch_registers() 462 } else if (watches->irw[i] & LA_WATCH_I) { in loongarch_install_watch_registers() 463 if ((task_pt_regs(t)->csr_era & ~watches->mask[i]) in loongarch_install_watch_registers() 464 == (watches->addr[i] & ~watches in loongarch_install_watch_registers() 508 struct loongarch_watch_reg_state *watches = ¤t->thread.watch; loongarch_read_watch_registers() local 546 struct loongarch_watch_reg_state *watches = &t->thread.watch; loongarch_update_watch_registers() local [all...] |
H A D | traps.c | 794 struct loongarch_watch_reg_state *watches = ¤t->thread.watch; in do_watch() local 800 info.si_addr = (void __user *)watches->addr[i]; in do_watch()
|
/kernel/linux/linux-5.10/kernel/ |
H A D | audit_watch.c | 42 struct list_head wlist; /* entry in parent->watches list */ 47 struct list_head watches; /* anchor for audit_watch->wlist */ member 60 WARN_ON(!list_empty(&parent->watches)); in audit_free_parent() 146 INIT_LIST_HEAD(&parent->watches); in audit_init_parent() 253 /* Run all of the watches on this parent looking for the one that in audit_update_watch() 255 list_for_each_entry_safe(owatch, nextw, &parent->watches, wlist) { in audit_update_watch() 315 list_add(&nwatch->wlist, &parent->watches); in audit_update_watch() 320 /* Remove all watches & rules associated with a parent that is going away. */ 328 list_for_each_entry_safe(w, nextw, &parent->watches, wlist) { in audit_remove_parent_watches() 346 /* Get path information necessary for adding watches [all...] |
H A D | watch_queue.c | 483 hlist_add_head(&watch->queue_node, &wqueue->watches); in add_one_watch() 521 * remove_watch_from_object - Remove a watch or all watches from an object. 527 * Remove a specific watch or all watches from an object. A notification is 597 * Remove all the watches that are contributory to a queue. This has the 598 * potential to race with removal of the watches by the destruction of the 613 while (!hlist_empty(&wqueue->watches)) { in watch_queue_clear() 614 watch = hlist_entry(wqueue->watches.first, struct watch, queue_node); in watch_queue_clear() 700 INIT_HLIST_HEAD(&wqueue->watches); in watch_queue_init()
|
/kernel/linux/linux-6.6/kernel/ |
H A D | audit_watch.c | 42 struct list_head wlist; /* entry in parent->watches list */ 47 struct list_head watches; /* anchor for audit_watch->wlist */ member 60 WARN_ON(!list_empty(&parent->watches)); in audit_free_parent() 146 INIT_LIST_HEAD(&parent->watches); in audit_init_parent() 254 /* Run all of the watches on this parent looking for the one that in audit_update_watch() 256 list_for_each_entry_safe(owatch, nextw, &parent->watches, wlist) { in audit_update_watch() 316 list_add(&nwatch->wlist, &parent->watches); in audit_update_watch() 321 /* Remove all watches & rules associated with a parent that is going away. */ 329 list_for_each_entry_safe(w, nextw, &parent->watches, wlist) { in audit_remove_parent_watches() 347 /* Get path information necessary for adding watches [all...] |
H A D | watch_queue.c | 476 hlist_add_head(&watch->queue_node, &wqueue->watches); in add_one_watch() 514 * remove_watch_from_object - Remove a watch or all watches from an object. 520 * Remove a specific watch or all watches from an object. A notification is 590 * Remove all the watches that are contributory to a queue. This has the 591 * potential to race with removal of the watches by the destruction of the 609 while (!hlist_empty(&wqueue->watches)) { in watch_queue_clear() 610 watch = hlist_entry(wqueue->watches.first, struct watch, queue_node); in watch_queue_clear() 696 INIT_HLIST_HEAD(&wqueue->watches); in watch_queue_init()
|
/kernel/linux/linux-6.6/tools/counter/ |
H A D | counter_example.c | 19 static struct counter_watch watches[2] = { variable 56 ret = ioctl(fd, COUNTER_ADD_WATCH_IOCTL, watches + i); in main() 58 fprintf(stderr, "Error adding watches[%d]: %s\n", i, in main()
|
/kernel/linux/linux-5.10/drivers/xen/xenbus/ |
H A D | xenbus_dev_frontend.c | 92 * the "transactions" and "watches" lists, and the partial 104 /* Active watches. */ 105 struct list_head watches; member 326 list_for_each_entry_safe(watch, tmp_watch, &u->watches, list) { in xenbus_worker() 530 list_add(&watch->list, &u->watches); in xenbus_write_watch() 532 list_for_each_entry(watch, &u->watches, list) { in xenbus_write_watch() 665 INIT_LIST_HEAD(&u->watches); in xenbus_file_open()
|
H A D | xenbus_xs.c | 59 * New watch events happening in this time can be ignored by firing all watches 77 /* List of registered watches, and a lock to protect it. */ 78 static LIST_HEAD(watches); 690 list_for_each_entry(i, &watches, list) in find_watch() 778 list_add(&watch->list, &watches); in register_xenbus_watch() 859 list_for_each_entry(watch, &watches, list) { in xs_resume() 952 /* shutdown watches for kexec boot */ in xs_init()
|
/kernel/linux/linux-6.6/drivers/xen/xenbus/ |
H A D | xenbus_dev_frontend.c | 92 * the "transactions" and "watches" lists, and the partial 104 /* Active watches. */ 105 struct list_head watches; member 326 list_for_each_entry_safe(watch, tmp_watch, &u->watches, list) { in xenbus_worker() 530 list_add(&watch->list, &u->watches); in xenbus_write_watch() 532 list_for_each_entry(watch, &u->watches, list) { in xenbus_write_watch() 665 INIT_LIST_HEAD(&u->watches); in xenbus_file_open()
|
H A D | xenbus_xs.c | 59 * New watch events happening in this time can be ignored by firing all watches 77 /* List of registered watches, and a lock to protect it. */ 78 static LIST_HEAD(watches); 690 list_for_each_entry(i, &watches, list) in find_watch() 778 list_add(&watch->list, &watches); in register_xenbus_watch() 859 list_for_each_entry(watch, &watches, list) { in xs_resume() 952 /* shutdown watches for kexec boot */ in xs_init()
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | watch_queue.h | 42 struct hlist_head watches; /* Contributory watches */ member 60 struct hlist_node queue_node; /* Link in queue->watches */ 70 * List of watches on an object.
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | watch_queue.h | 42 struct hlist_head watches; /* Contributory watches */ member 61 struct hlist_node queue_node; /* Link in queue->watches */ 71 * List of watches on an object.
|