Granary / granary2

Dynamic binary translation framework for instrumenting x86-64 user space Linux programs
MIT License
39 stars 5 forks source link

Generate the repeated part of Makefile in clients to find allocator-specific symbols. #83

Open renzhengeek opened 9 years ago

renzhengeek commented 9 years ago

This(like here https://github.com/Granary/granary2/blob/data_reactor/clients/data_collider/Makefile#L25) is turning into a repeated pattern in clients. I think it would be nice if we have a way to generalize this. E.g. have a script in clients/user that does all allocator-specific symbol finding. Then, call that here. That way, we can eventually have a same-named script in clients/kernel, and do something like:

FIND_ALLOC := $(GRANARY_CLIENTS_SRC_DIR)/$(GRANARY_WHERE)/find_allocator_offsets.py