SYMBOL INDEX (162 symbols across 26 files) FILE: c_src/muontrap.c type option (line 47) | struct option type controller_var (line 65) | struct controller_var { type controller_info (line 71) | struct controller_info { type controller_info (line 80) | struct controller_info function usage (line 101) | static void usage() function microsecs (line 121) | static int microsecs() function sigchild_handler (line 128) | void sigchild_handler(int signum) function enable_signal_handlers (line 135) | void enable_signal_handlers() function disable_signal_handlers (line 148) | void disable_signal_handlers() function fork_exec (line 156) | static int fork_exec(const char *path, char *const *argv) function mkdir_p (line 234) | static int mkdir_p(const char *abspath, int start_index) function create_cgroups (line 260) | static void create_cgroups() function write_file (line 275) | static int write_file(const char *group_path, const char *value) function update_cgroup_settings (line 286) | static void update_cgroup_settings() function move_pid_to_cgroups (line 301) | static void move_pid_to_cgroups(pid_t pid) function destroy_cgroups (line 312) | static void destroy_cgroups() function procfile_killall (line 325) | static int procfile_killall(const char *group_path, int sig) function kill_children (line 343) | static int kill_children(int sig) function read_proc_cmdline (line 354) | static void read_proc_cmdline(int pid, char *cmdline) function procfile_dump_children (line 374) | static void procfile_dump_children(const char *group_path) function dump_all_children_from_cgroups (line 393) | static void dump_all_children_from_cgroups() function finish_controller_init (line 401) | static void finish_controller_init() function wait_for_sigchld (line 409) | static int wait_for_sigchld(pid_t pid_to_match, int timeout_ms) function cleanup_all_children (line 466) | static void cleanup_all_children() function kill_child_nicely (line 500) | static void kill_child_nicely(pid_t child) type controller_info (line 521) | struct controller_info type controller_info (line 524) | struct controller_info type controller_info (line 529) | struct controller_info type controller_info (line 529) | struct controller_info function add_controller_setting (line 539) | static void add_controller_setting(struct controller_info *controller, c... function process_stdio (line 549) | static int process_stdio(int from_fd) function process_stdio (line 568) | static int process_stdio(int from_fd) function child_wait_loop (line 596) | static int child_wait_loop(pid_t child_pid, int *still_running) function main (line 719) | int main(int argc, char *argv[]) FILE: lib/muontrap.ex class MuonTrap (line 6) | defmodule MuonTrap FILE: lib/muontrap/cgroups.ex class MuonTrap.Cgroups (line 5) | defmodule MuonTrap.Cgroups method cgroups_enabled? (line 14) | def cgroups_enabled?() do method get_controllers (line 26) | def get_controllers() do method cgget (line 34) | def cgget(controller, cgroup_path, variable_name) do method cgset (line 43) | def cgset(controller, cgroup_path, variable_name, value) do FILE: lib/muontrap/daemon.ex class MuonTrap.Daemon (line 12) | defmodule MuonTrap.Daemon method child_spec (line 83) | def child_spec([command, args]) do method child_spec (line 87) | def child_spec([command, args, opts]) do method start_link (line 101) | def start_link(command, args, opts \\ []) do method cgget (line 116) | def cgget(server, controller, variable_name) do method cgset (line 124) | def cgset(server, controller, variable_name, value) do method os_pid (line 132) | def os_pid(server) do method statistics (line 144) | def statistics(server) do method init (line 149) | def init([command, args, opts]) do method logger_fun (line 175) | defp logger_fun(%{logger_fun: {m, f, a}}, _command), do: &apply(m, f, ... method logger_fun (line 177) | defp logger_fun(options, command) do method handle_call (line 207) | def handle_call({:cgget, controller, variable_name}, _from, %{cgroup_p... method handle_call (line 213) | def handle_call( method handle_call (line 223) | def handle_call(:os_pid, _from, state) do method handle_call (line 233) | def handle_call(:statistics, _from, state) do method handle_info (line 239) | def handle_info({port, {:data, message}}, %__MODULE__{port: port} = st... method handle_info (line 248) | def handle_info({port, {:exit_status, status}}, %__MODULE__{port: port... method handle_info (line 263) | def handle_info(_message, state) do method split_and_log (line 267) | defp split_and_log(data, state) do method process_data (line 277) | def process_data(data) do method process_lines (line 281) | defp process_lines([leftovers], acc) do method process_lines (line 285) | defp process_lines([line | rest], acc) do method trim_buffer (line 292) | defp trim_buffer(data), do: data FILE: lib/muontrap/options.ex class MuonTrap.Options (line 8) | defmodule MuonTrap.Options method resolve_cgroup_path (line 76) | defp resolve_cgroup_path(%{cgroup_path: _path, cgroup_base: _base}) do method resolve_cgroup_path (line 80) | defp resolve_cgroup_path(%{cgroup_base: base} = options) do method resolve_cgroup_path (line 85) | defp resolve_cgroup_path(other), do: other method random_string (line 88) | defp random_string() do method validate_options (line 92) | defp validate_options(context, cmd, args, opts) do method validate_option (line 101) | defp validate_option(:cmd, {:into, what}, opts), do: Map.put(opts, :in... method validate_option (line 116) | defp validate_option(_any, {:env, enum}, opts), method validate_option (line 120) | defp validate_option(:daemon, {:name, name}, opts), method validate_option (line 147) | defp validate_option(:daemon, {:logger_fun, v}, _opts), method validate_option (line 188) | defp validate_option(_any, {key, val}, _opts), method validate_env (line 191) | defp validate_env(enum) do method assert_no_null_byte! (line 205) | defp assert_no_null_byte!(binary, context) do method operation (line 216) | defp operation(:cmd), do: "MuonTrap.cmd/3" method operation (line 217) | defp operation(:daemon), do: "MuonTrap.Daemon.start_link/3" FILE: lib/muontrap/port.ex class MuonTrap.Port (line 7) | defmodule MuonTrap.Port method muontrap_path (line 11) | def muontrap_path() do method cmd (line 23) | def cmd(options) do method do_cmd (line 42) | defp do_cmd(port, acc, fun, timeout_message) do method port_options (line 58) | def port_options(options, args \\ []) do method muontrap_args (line 68) | defp muontrap_args(options) do method muontrap_arg (line 72) | defp muontrap_arg({:cgroup_path, path}), do: ["--group", path] method muontrap_arg (line 73) | defp muontrap_arg({:delay_to_sigkill, delay}), do: ["--delay-to-sigkil... method muontrap_arg (line 74) | defp muontrap_arg({:uid, id}), do: ["--uid", to_string(id)] method muontrap_arg (line 75) | defp muontrap_arg({:gid, id}), do: ["--gid", to_string(id)] method muontrap_arg (line 76) | defp muontrap_arg({:arg0, arg0}), do: ["--arg0", arg0] method muontrap_arg (line 77) | defp muontrap_arg({:stdio_window, count}), do: ["--stdio-window", to_s... method muontrap_arg (line 78) | defp muontrap_arg({:stderr_to_stdout, true}), do: ["--capture-stderr"] method muontrap_arg (line 79) | defp muontrap_arg({:capture_stderr_only, true}), do: ["--capture-stder... method muontrap_arg (line 84) | defp muontrap_arg({:cgroup_controllers, controllers}) do method muontrap_arg (line 88) | defp muontrap_arg({:cgroup_sets, sets}) do method muontrap_arg (line 94) | defp muontrap_arg(_other), do: [] method port_option (line 96) | defp port_option({:env, env}), do: [{:env, env}] method port_option (line 97) | defp port_option({:cd, bin}), do: [{:cd, bin}] method port_option (line 98) | defp port_option({:arg0, bin}), do: [{:arg0, bin}] method port_option (line 99) | defp port_option({:parallelism, bool}), do: [{:parallelism, bool}] method port_option (line 100) | defp port_option(_other), do: [] method encode_acks_helper (line 124) | defp encode_acks_helper(0, partial_acks), do: <> method encode_acks_helper (line 125) | defp encode_acks_helper(full_acks, 0), do: :binary.copy(<<255>>, full_... method encode_acks_helper (line 127) | defp encode_acks_helper(full_acks, partial_acks), method maybe_start_timer (line 139) | defp maybe_start_timer(_), do: {nil, {:timeout, make_ref()}} method maybe_stop_timer (line 142) | defp maybe_stop_timer(nil, _), do: :ok method maybe_stop_timer (line 144) | defp maybe_stop_timer(timer_ref, timeout_message) do FILE: mix.exs class MuonTrap.MixProject (line 1) | defmodule MuonTrap.MixProject method project (line 7) | def project do method elixirc_paths (line 28) | defp elixirc_paths(:test), do: ["lib", "test/support"] method elixirc_paths (line 29) | defp elixirc_paths(_), do: ["lib"] method application (line 31) | def application do method cli (line 35) | def cli do method deps (line 39) | defp deps() do method docs (line 48) | defp docs do method package (line 57) | defp package() do FILE: test/cgroup_test.exs class CgroupTest (line 5) | defmodule CgroupTest FILE: test/chatty.c function main (line 8) | int main(void) FILE: test/daemon_test.exs class DaemonTest (line 12) | defmodule DaemonTest method daemon_spec (line 19) | defp daemon_spec(cmd, args) do method daemon_spec (line 23) | defp daemon_spec(cmd, args, opts) do method find_child_pid (line 72) | def find_child_pid(os_pid) do method logger_fun_fun (line 290) | def logger_fun_fun(line, prefix \\ "") do method wait_for_output (line 299) | defp wait_for_output(pid, count, time_left) do method s2n (line 440) | defp s2n(name, default) do method s2n_kill_l_name (line 447) | defp s2n_kill_l_name(name) do method s2n_kill_l (line 457) | defp s2n_kill_l(name) do FILE: test/do_nothing.c function main (line 9) | int main(int argc, char **argv) FILE: test/echo_both.c function main (line 9) | int main() FILE: test/echo_junk.c function main (line 9) | int main() FILE: test/echo_stderr.c function main (line 10) | int main() FILE: test/echo_stdio.c function main (line 9) | int main() FILE: test/fork_a_lot.c function do_fork (line 13) | static void do_fork(int left) function main (line 31) | int main(int argc, char **argv) FILE: test/ignore_sigterm.c function main (line 10) | int main(int argc, char **argv) FILE: test/kill_self_with_signal.c function main (line 10) | int main(int argc, char **argv) FILE: test/kill_self_with_sigusr1.c function main (line 11) | int main(int argc, char **argv) FILE: test/muontrap_test.exs class MuonTrapTest (line 8) | defmodule MuonTrapTest method run_muontrap (line 13) | defp run_muontrap(args) do FILE: test/options_test.exs class MuonTrap.OptionsTest (line 7) | defmodule MuonTrap.OptionsTest FILE: test/port_test.exs class MuonTrapPortTest (line 6) | defmodule MuonTrapPortTest method encode_acks (line 183) | defp encode_acks(number) do FILE: test/print_a_lot.c function main (line 10) | int main() FILE: test/succeed_second_time.c function read_counter (line 10) | static int read_counter(const char *filename) function write_counter (line 23) | static void write_counter(const char *filename, int counter) function main (line 30) | int main(int argc, char **argv) FILE: test/support/test_case.ex class MuonTrapTest.Case (line 5) | defmodule MuonTrapTest.Case method test_path (line 19) | def test_path(cmd) do method cpu_cgroup_exists (line 24) | def cpu_cgroup_exists(path) do method memory_cgroup_exists (line 30) | def memory_cgroup_exists(path) do method random_cgroup_path (line 36) | def random_cgroup_path() do method os_pid_around? (line 41) | def os_pid_around?(os_pid) do method assert_os_pid_running (line 47) | def assert_os_pid_running(os_pid) do method assert_os_pid_exited (line 53) | def assert_os_pid_exited(os_pid) do method os_pid (line 59) | def os_pid(port) do method wait_for_close_check (line 65) | def wait_for_close_check(timeout \\ @timeout_before_close_check) do FILE: test/test_helper.exs class MuonTrapTestHelpers (line 8) | defmodule MuonTrapTestHelpers method check_cgroup_support (line 10) | def check_cgroup_support() do method cgroup_excluded? (line 27) | def cgroup_excluded?() do method truthy? (line 33) | defp truthy?("false"), do: false method truthy? (line 34) | defp truthy?(false), do: false method truthy? (line 35) | defp truthy?(nil), do: false method truthy? (line 36) | defp truthy?(_), do: true