Diff Detail
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
sys/dev/hwpmc/hwpmc_vm.c | ||
---|---|---|
76 | Did you looked at OSD, sys/osd.h ? OSD_THREAD should remove the ugly side-list of threads. | |
79 | What protects the map->obj from the parallel dereference ? | |
103 | This should be CPU_FOREACH(). Or instead, just allocate the whole array by one malloc(). | |
110 | You should use make_dev_s(), to guard againts si_drv1 races. |
Comment Actions
Use:
- osd(9)
- CPU_FOREACH macro
- make_dev_s instead of make_dev
- mtx_lock around map->obj dereferencing
Comment Actions
- in pt_buffer_deallocate() @ https://reviews.freebsd.org/D15091
- in coresight_buffer_deallocate() @ https://reviews.freebsd.org/D15090
sys/dev/hwpmc/hwpmc_vm.c | ||
---|---|---|
145 | I think the appropriate order here would be to destroy the device first. |
sys/modules/hwpmc/Makefile | ||
---|---|---|
13 | these two chunks are not related to VM, but I am lazy to edit the patch every time I submit changes. |