Skip to content

Instantly share code, notes, and snippets.

@hausdorff
Last active August 29, 2015 14:25
Show Gist options
  • Select an option

  • Save hausdorff/adbd43f4525257c37b8d to your computer and use it in GitHub Desktop.

Select an option

Save hausdorff/adbd43f4525257c37b8d to your computer and use it in GitHub Desktop.
# Looks through object files for the containerizer tests, gets all the symbols,
# and looks for the ones with the string "process::". Then, we prettify and
# put everythign in stdout. We run this from our root build folder.
#
# The containerizer object files are:
# ./src/tests/mesos_tests-external_containerizer_test.o
# ./src/tests/mesos_tests-containerizer_tests.o
# ./src/tests/mesos_tests-docker_containerizer_tests.o
# ./src/tests/mesos_tests-containerizer.o
# ./src/tests/mesos_tests-composing_containerizer_tests.o
functions=""
for f in ./src/tests/mesos_tests-containerizer.o ./src/tests/mesos_tests-containerizer_tests.o ./src/tests/mesos_tests-composing_containerizer_tests.o ./src/tests/mesos_tests-external_containerizer_test.o
do
tmp=$(nm -P $f | c++filt | grep "process::" | sort)
functions="$functions\n$tmp"
done
#echo "$functions"
result=$(echo "$functions" | sort | uniq)
echo "$result"
#nm -P tests-io_tests.o | c++filt | grep "process::" | sort | less
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment