kernel code read: perf_config
flex: examples of flex

Usage:

make

./num_lines < makefile

More complicated examples will be posted soon.