/src/systemd/src/basic/string-table.h
Line | Count | Source |
1 | | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
2 | | #pragma once |
3 | | |
4 | | #include <stdio.h> |
5 | | |
6 | | #include "forward.h" |
7 | | |
8 | | const char* string_table_lookup_to_string(const char * const *table, size_t len, ssize_t i) _const_; |
9 | | |
10 | | ssize_t string_table_lookup_from_string(const char * const *table, size_t len, const char *key) _pure_; |
11 | | ssize_t string_table_lookup_from_string_with_boolean(const char * const *table, size_t len, const char *key, ssize_t yes) _pure_; |
12 | | |
13 | | int string_table_lookup_to_string_fallback(const char * const *table, size_t len, ssize_t i, size_t max, char **ret); |
14 | | ssize_t string_table_lookup_from_string_fallback(const char * const *table, size_t len, const char *s, size_t max); |
15 | | |
16 | | /* For basic lookup tables with strictly enumerated entries */ |
17 | | #define _DEFINE_STRING_TABLE_LOOKUP_TO_STRING(name, type, scope) \ |
18 | 30.8M | scope const char* name##_to_string(type i) { \ |
19 | 30.8M | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ |
20 | 30.8M | } Unexecuted instantiation: mac_address_policy_to_string Unexecuted instantiation: irq_affinity_policy_to_string Unexecuted instantiation: resolve_name_timing_to_string Unexecuted instantiation: resolv_conf_mode_to_string Unexecuted instantiation: timezone_mode_to_string Unexecuted instantiation: console_mode_to_string Unexecuted instantiation: user_namespace_ownership_to_string Unexecuted instantiation: storage_to_string Unexecuted instantiation: split_mode_to_string Unexecuted instantiation: ndisc_event_to_string Unexecuted instantiation: ndisc_router_preference_to_string Unexecuted instantiation: resolved-dns-browse-services.c:browse_service_update_event_to_string Unexecuted instantiation: dnssec_result_to_string Unexecuted instantiation: dnssec_verdict_to_string Unexecuted instantiation: dns_scope_origin_to_string Unexecuted instantiation: dns_server_type_to_string Unexecuted instantiation: dns_server_feature_level_to_string Unexecuted instantiation: dns_stub_listener_mode_to_string Unexecuted instantiation: dns_transaction_state_to_string Unexecuted instantiation: dns_transaction_source_to_string Unexecuted instantiation: bare_udp_protocol_to_string Unexecuted instantiation: batadv.c:batadv_routing_algorithm_kernel_to_string Unexecuted instantiation: multicast_router_to_string Unexecuted instantiation: fou_encap_type_to_string Unexecuted instantiation: geneve_df_to_string netdev_local_address_type_to_string Line | Count | Source | 18 | 3 | scope const char* name##_to_string(type i) { \ | 19 | 3 | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 3 | } |
Line | Count | Source | 18 | 3.03k | scope const char* name##_to_string(type i) { \ | 19 | 3.03k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 3.03k | } |
Line | Count | Source | 18 | 12 | scope const char* name##_to_string(type i) { \ | 19 | 12 | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 12 | } |
Unexecuted instantiation: df_to_string Unexecuted instantiation: dhcp_option_data_type_to_string Unexecuted instantiation: dhcp6_client_start_mode_to_string Unexecuted instantiation: use_domains_to_string Unexecuted instantiation: ipv6_link_local_address_gen_mode_to_string Unexecuted instantiation: link_state_to_string Unexecuted instantiation: kernel_operstate_to_string Unexecuted instantiation: lldp_mode_to_string Unexecuted instantiation: keep_configuration_to_string Unexecuted instantiation: activation_policy_to_string Unexecuted instantiation: request_type_to_string Unexecuted instantiation: radv_prefix_delegation_to_string Unexecuted instantiation: route_type_to_string Unexecuted instantiation: networkd-route-util.c:route_table_to_string Unexecuted instantiation: fr_act_type_to_string Unexecuted instantiation: ipv6_privacy_extensions_to_string Unexecuted instantiation: ip_reverse_path_filter_to_string Unexecuted instantiation: ipv4_force_igmp_version_to_string Unexecuted instantiation: network_config_source_to_string Unexecuted instantiation: address_family_to_string Unexecuted instantiation: routing_policy_rule_address_family_to_string Unexecuted instantiation: nexthop_address_family_to_string Unexecuted instantiation: duplicate_address_detection_address_family_to_string Unexecuted instantiation: dhcp_lease_server_type_to_string Unexecuted instantiation: bootp_message_type_to_string Unexecuted instantiation: dhcp_message_type_to_string Unexecuted instantiation: dhcp_option_code_to_string Unexecuted instantiation: dhcp_state_to_string Unexecuted instantiation: dhcp6_state_to_string dhcp6_message_type_to_string Line | Count | Source | 18 | 2.26k | scope const char* name##_to_string(type i) { \ | 19 | 2.26k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 2.26k | } |
dhcp6_message_status_to_string Line | Count | Source | 18 | 2.87k | scope const char* name##_to_string(type i) { \ | 19 | 2.87k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 2.87k | } |
Unexecuted instantiation: duid_type_to_string Unexecuted instantiation: sd-ipv4acd.c:ipv4acd_state_to_string Unexecuted instantiation: lldp_rx_event_to_string Unexecuted instantiation: bond_mode_to_string Unexecuted instantiation: bond_xmit_hash_policy_to_string Unexecuted instantiation: bond_lacp_rate_to_string Unexecuted instantiation: bond_ad_select_to_string Unexecuted instantiation: bond_fail_over_mac_to_string Unexecuted instantiation: bond_arp_validate_to_string Unexecuted instantiation: bond_arp_all_targets_to_string Unexecuted instantiation: bond_primary_reselect_to_string Unexecuted instantiation: boot_entry_token_type_to_string boot_entry_type_description_to_string Line | Count | Source | 18 | 78.7k | scope const char* name##_to_string(type i) { \ | 19 | 78.7k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 78.7k | } |
boot_entry_type_to_string Line | Count | Source | 18 | 78.5k | scope const char* name##_to_string(type i) { \ | 19 | 78.5k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 78.5k | } |
boot_entry_source_description_to_string Line | Count | Source | 18 | 78.7k | scope const char* name##_to_string(type i) { \ | 19 | 78.7k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 78.7k | } |
boot_entry_source_to_string Line | Count | Source | 18 | 78.5k | scope const char* name##_to_string(type i) { \ | 19 | 78.5k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 78.5k | } |
Unexecuted instantiation: bpf_cgroup_attach_type_to_string Unexecuted instantiation: bridge_state_to_string Unexecuted instantiation: bus_transport_to_string condition_result_to_string Line | Count | Source | 18 | 1.42k | scope const char* name##_to_string(type i) { \ | 19 | 1.42k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 1.42k | } |
condition.c:_condition_type_to_string Line | Count | Source | 18 | 610 | scope const char* name##_to_string(type i) { \ | 19 | 610 | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 610 | } |
condition.c:_assert_type_to_string Line | Count | Source | 18 | 812 | scope const char* name##_to_string(type i) { \ | 19 | 812 | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 812 | } |
Unexecuted instantiation: coredump_filter_to_string Unexecuted instantiation: credential_boot_policy_to_string Unexecuted instantiation: image_type_to_string Unexecuted instantiation: discover-image.c:image_dirname_to_string Unexecuted instantiation: discover-image.c:image_class_suffix_to_string Unexecuted instantiation: discover-image.c:image_root_runtime_to_string Unexecuted instantiation: discover-image.c:image_root_to_string dns_svc_param_key_to_string Line | Count | Source | 18 | 1.69k | scope const char* name##_to_string(type i) { \ | 19 | 1.69k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 1.69k | } |
Unexecuted instantiation: dns_rcode_to_string Unexecuted instantiation: dns_ede_rcode_to_string Unexecuted instantiation: dns_protocol_to_string Unexecuted instantiation: duplex_to_string Unexecuted instantiation: port_to_string Unexecuted instantiation: mdi_to_string Unexecuted instantiation: ethtool_link_mode_bit_to_string Unexecuted instantiation: factory_reset_mode_to_string Unexecuted instantiation: nfproto_to_string Unexecuted instantiation: nft_set_source_to_string Unexecuted instantiation: firstboot_mode_to_string partition_designator_to_string Line | Count | Source | 18 | 5.30k | scope const char* name##_to_string(type i) { \ | 19 | 5.30k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 5.30k | } |
Unexecuted instantiation: partition_mountpoint_to_string Unexecuted instantiation: hostname_source_to_string Unexecuted instantiation: import_type_to_string Unexecuted instantiation: import_verify_to_string Unexecuted instantiation: preset_action_past_tense_to_string unit_file_state_to_string Line | Count | Source | 18 | 26 | scope const char* name##_to_string(type i) { \ | 19 | 26 | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 26 | } |
Unexecuted instantiation: install_change_type_to_string unit_file_preset_mode_to_string Line | Count | Source | 18 | 3 | scope const char* name##_to_string(type i) { \ | 19 | 3 | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 3 | } |
Unexecuted instantiation: install.c:install_mode_to_string Unexecuted instantiation: ipvlan_mode_to_string Unexecuted instantiation: ipvlan_flags_to_string Unexecuted instantiation: kernel_image_type_to_string Unexecuted instantiation: logs-show.c:log_id_type_to_string Unexecuted instantiation: image_format_to_string Unexecuted instantiation: read_only_mode_to_string Unexecuted instantiation: disk_type_to_string Unexecuted instantiation: block_driver_to_string Unexecuted instantiation: qemu_device_driver_to_string Unexecuted instantiation: macvlan_mode_to_string Unexecuted instantiation: metric_family_type_to_string Unexecuted instantiation: mstack_mount_type_to_string Unexecuted instantiation: name_policy_to_string Unexecuted instantiation: alternative_names_policy_to_string Unexecuted instantiation: sr_iov_attribute_to_string Unexecuted instantiation: mpol_to_string open_file_flags_to_string Line | Count | Source | 18 | 728 | scope const char* name##_to_string(type i) { \ | 19 | 728 | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 728 | } |
Line | Count | Source | 18 | 16 | scope const char* name##_to_string(type i) { \ | 19 | 16 | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 16 | } |
Unexecuted instantiation: pkcs11_rsa_padding_to_string Unexecuted instantiation: resolve_support_to_string Unexecuted instantiation: dnssec_mode_to_string Unexecuted instantiation: dns_over_tls_mode_to_string Unexecuted instantiation: dns_cache_mode_to_string Unexecuted instantiation: sleep_operation_to_string Unexecuted instantiation: smack-util.c:smack_attr_to_string Unexecuted instantiation: socket_address_bind_ipv6_only_to_string Unexecuted instantiation: volume_type_to_string Unexecuted instantiation: create_mode_to_string Unexecuted instantiation: tpm2_pcr_index_to_string Unexecuted instantiation: user_storage_to_string Unexecuted instantiation: user_disposition_to_string Unexecuted instantiation: auto_resize_mode_to_string Unexecuted instantiation: volatile_mode_to_string Unexecuted instantiation: nl80211_iftype_to_string Unexecuted instantiation: nl80211_cmd_to_string Unexecuted instantiation: color_mode_to_string Line | Count | Source | 18 | 2.81k | scope const char* name##_to_string(type i) { \ | 19 | 2.81k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 2.81k | } |
cgroup_io_limit_type_to_string Line | Count | Source | 18 | 270 | scope const char* name##_to_string(type i) { \ | 19 | 270 | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 270 | } |
cgroup_controller_to_string Line | Count | Source | 18 | 7.15M | scope const char* name##_to_string(type i) { \ | 19 | 7.15M | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 7.15M | } |
managed_oom_mode_to_string Line | Count | Source | 18 | 44.5k | scope const char* name##_to_string(type i) { \ | 19 | 44.5k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 44.5k | } |
managed_oom_preference_to_string Line | Count | Source | 18 | 22.2k | scope const char* name##_to_string(type i) { \ | 19 | 22.2k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 22.2k | } |
Unexecuted instantiation: compression_to_string Unexecuted instantiation: compression_uppercase_to_string Unexecuted instantiation: compression_extension_to_string Unexecuted instantiation: confidential_virtualization_to_string locale_variable_to_string Line | Count | Source | 18 | 532k | scope const char* name##_to_string(type i) { \ | 19 | 532k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 532k | } |
Line | Count | Source | 18 | 39.7k | scope const char* name##_to_string(type i) { \ | 19 | 39.7k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 39.7k | } |
Unexecuted instantiation: image_class_to_string Unexecuted instantiation: sigchld_code_to_string Unexecuted instantiation: pressure_resource_to_string Line | Count | Source | 18 | 871 | scope const char* name##_to_string(type i) { \ | 19 | 871 | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 871 | } |
Line | Count | Source | 18 | 15.8k | scope const char* name##_to_string(type i) { \ | 19 | 15.8k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 15.8k | } |
Unexecuted instantiation: runtime_scope_cmdline_option_to_string signal-util.c:static_signal_to_string Line | Count | Source | 18 | 363 | scope const char* name##_to_string(type i) { \ | 19 | 363 | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 363 | } |
Unexecuted instantiation: signal-util.c:sigill_code_to_string Unexecuted instantiation: signal-util.c:sigfpe_code_to_string Unexecuted instantiation: signal-util.c:sigsegv_code_to_string Unexecuted instantiation: signal-util.c:sigbus_code_to_string Unexecuted instantiation: signal-util.c:sigtrap_code_to_string Unexecuted instantiation: signal-util.c:sigchld_uppercase_code_to_string Unexecuted instantiation: signal-util.c:sigpoll_code_to_string Unexecuted instantiation: signal-util.c:sigsys_code_to_string Unexecuted instantiation: socket_address_type_to_string Line | Count | Source | 18 | 2.27M | scope const char* name##_to_string(type i) { \ | 19 | 2.27M | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 2.27M | } |
timestamp_style_to_string Line | Count | Source | 18 | 6 | scope const char* name##_to_string(type i) { \ | 19 | 6 | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 6 | } |
Line | Count | Source | 18 | 17.5M | scope const char* name##_to_string(type i) { \ | 19 | 17.5M | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 17.5M | } |
unit_load_state_to_string Line | Count | Source | 18 | 55.1k | scope const char* name##_to_string(type i) { \ | 19 | 55.1k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 55.1k | } |
unit_active_state_to_string Line | Count | Source | 18 | 55.1k | scope const char* name##_to_string(type i) { \ | 19 | 55.1k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 55.1k | } |
Line | Count | Source | 18 | 274k | scope const char* name##_to_string(type i) { \ | 19 | 274k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 274k | } |
Line | Count | Source | 18 | 150 | scope const char* name##_to_string(type i) { \ | 19 | 150 | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 150 | } |
automount_state_to_string Line | Count | Source | 18 | 573 | scope const char* name##_to_string(type i) { \ | 19 | 573 | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 573 | } |
Line | Count | Source | 18 | 3.07k | scope const char* name##_to_string(type i) { \ | 19 | 3.07k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 3.07k | } |
Line | Count | Source | 18 | 3.90k | scope const char* name##_to_string(type i) { \ | 19 | 3.90k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 3.90k | } |
Line | Count | Source | 18 | 2.68k | scope const char* name##_to_string(type i) { \ | 19 | 2.68k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 2.68k | } |
Line | Count | Source | 18 | 11.2k | scope const char* name##_to_string(type i) { \ | 19 | 11.2k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 11.2k | } |
Line | Count | Source | 18 | 14.8k | scope const char* name##_to_string(type i) { \ | 19 | 14.8k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 14.8k | } |
Line | Count | Source | 18 | 222k | scope const char* name##_to_string(type i) { \ | 19 | 222k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 222k | } |
Line | Count | Source | 18 | 6.02k | scope const char* name##_to_string(type i) { \ | 19 | 6.02k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 6.02k | } |
Line | Count | Source | 18 | 4.58k | scope const char* name##_to_string(type i) { \ | 19 | 4.58k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 4.58k | } |
Line | Count | Source | 18 | 12.2k | scope const char* name##_to_string(type i) { \ | 19 | 12.2k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 12.2k | } |
Line | Count | Source | 18 | 2.25k | scope const char* name##_to_string(type i) { \ | 19 | 2.25k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 2.25k | } |
unit_dependency_to_string Line | Count | Source | 18 | 159k | scope const char* name##_to_string(type i) { \ | 19 | 159k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 159k | } |
Line | Count | Source | 18 | 49 | scope const char* name##_to_string(type i) { \ | 19 | 49 | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 49 | } |
Line | Count | Source | 18 | 18.6k | scope const char* name##_to_string(type i) { \ | 19 | 18.6k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 18.6k | } |
exec_directory_type_to_string Line | Count | Source | 18 | 150k | scope const char* name##_to_string(type i) { \ | 19 | 150k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 150k | } |
Line | Count | Source | 18 | 491 | scope const char* name##_to_string(type i) { \ | 19 | 491 | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 491 | } |
Unexecuted instantiation: journal_object_type_to_string Unexecuted instantiation: sd-event.c:event_source_type_to_string Unexecuted instantiation: device_action_to_string Unexecuted instantiation: sd_json_variant_type_to_string Unexecuted instantiation: sd-varlink.c:varlink_state_to_string Unexecuted instantiation: link_operstate_to_string Unexecuted instantiation: link_carrier_state_to_string Unexecuted instantiation: link_required_address_family_to_string Unexecuted instantiation: link_address_state_to_string Unexecuted instantiation: link_online_state_to_string automount_result_to_string Line | Count | Source | 18 | 565 | scope const char* name##_to_string(type i) { \ | 19 | 565 | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 565 | } |
Unexecuted instantiation: restrict_filesystem_access_to_string cgroup_device_policy_to_string Line | Count | Source | 18 | 22.2k | scope const char* name##_to_string(type i) { \ | 19 | 22.2k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 22.2k | } |
cpuset_partition_to_string Line | Count | Source | 18 | 7.27k | scope const char* name##_to_string(type i) { \ | 19 | 7.27k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 7.27k | } |
cgroup_pressure_watch_to_string Line | Count | Source | 18 | 66.8k | scope const char* name##_to_string(type i) { \ | 19 | 66.8k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 66.8k | } |
Unexecuted instantiation: cgroup_ip_accounting_metric_to_string Unexecuted instantiation: cgroup_io_accounting_metric_to_string Unexecuted instantiation: cgroup_memory_accounting_metric_to_string Unexecuted instantiation: cgroup_effective_limit_type_to_string cgroup.c:memory_accounting_metric_field_last_to_string Line | Count | Source | 18 | 210 | scope const char* name##_to_string(type i) { \ | 19 | 210 | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 210 | } |
Unexecuted instantiation: cgroup.c:ip_accounting_metric_field_to_string cgroup.c:io_accounting_metric_field_base_to_string Line | Count | Source | 18 | 24.0k | scope const char* name##_to_string(type i) { \ | 19 | 24.0k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 24.0k | } |
cgroup.c:io_accounting_metric_field_last_to_string Line | Count | Source | 18 | 176 | scope const char* name##_to_string(type i) { \ | 19 | 176 | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 176 | } |
emergency_action_to_string Line | Count | Source | 18 | 34 | scope const char* name##_to_string(type i) { \ | 19 | 34 | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 34 | } |
Line | Count | Source | 18 | 15.1k | scope const char* name##_to_string(type i) { \ | 19 | 15.1k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 15.1k | } |
Line | Count | Source | 18 | 30.2k | scope const char* name##_to_string(type i) { \ | 19 | 30.2k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 30.2k | } |
Line | Count | Source | 18 | 15.1k | scope const char* name##_to_string(type i) { \ | 19 | 15.1k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 15.1k | } |
exec_preserve_mode_to_string Line | Count | Source | 18 | 15.1k | scope const char* name##_to_string(type i) { \ | 19 | 15.1k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 15.1k | } |
Unexecuted instantiation: exec_directory_type_symlink_to_string Unexecuted instantiation: exec_directory_type_mode_to_string Unexecuted instantiation: exec_resource_type_to_string exec_keyring_mode_to_string Line | Count | Source | 18 | 15.1k | scope const char* name##_to_string(type i) { \ | 19 | 15.1k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 15.1k | } |
exec_memory_thp_to_string Line | Count | Source | 18 | 15.1k | scope const char* name##_to_string(type i) { \ | 19 | 15.1k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 15.1k | } |
Line | Count | Source | 18 | 656 | scope const char* name##_to_string(type i) { \ | 19 | 656 | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 656 | } |
Line | Count | Source | 18 | 4.71k | scope const char* name##_to_string(type i) { \ | 19 | 4.71k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 4.71k | } |
Unexecuted instantiation: job_result_to_string Line | Count | Source | 18 | 13 | scope const char* name##_to_string(type i) { \ | 19 | 13 | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 13 | } |
Unexecuted instantiation: kill_whom_to_string Unexecuted instantiation: manager_state_to_string manager_objective_to_string Line | Count | Source | 18 | 39.0k | scope const char* name##_to_string(type i) { \ | 19 | 39.0k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 39.0k | } |
manager_timestamp_to_string Line | Count | Source | 18 | 1.31M | scope const char* name##_to_string(type i) { \ | 19 | 1.31M | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 1.31M | } |
mount_exec_command_to_string Line | Count | Source | 18 | 17 | scope const char* name##_to_string(type i) { \ | 19 | 17 | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 17 | } |
Line | Count | Source | 18 | 7.76k | scope const char* name##_to_string(type i) { \ | 19 | 7.76k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 7.76k | } |
Line | Count | Source | 18 | 15.1k | scope const char* name##_to_string(type i) { \ | 19 | 15.1k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 15.1k | } |
protect_hostname_to_string Line | Count | Source | 18 | 15.1k | scope const char* name##_to_string(type i) { \ | 19 | 15.1k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 15.1k | } |
Line | Count | Source | 18 | 15.1k | scope const char* name##_to_string(type i) { \ | 19 | 15.1k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 15.1k | } |
protect_control_groups_to_string Line | Count | Source | 18 | 15.1k | scope const char* name##_to_string(type i) { \ | 19 | 15.1k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 15.1k | } |
Line | Count | Source | 18 | 15.1k | scope const char* name##_to_string(type i) { \ | 19 | 15.1k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 15.1k | } |
Line | Count | Source | 18 | 15.1k | scope const char* name##_to_string(type i) { \ | 19 | 15.1k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 15.1k | } |
Line | Count | Source | 18 | 15.1k | scope const char* name##_to_string(type i) { \ | 19 | 15.1k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 15.1k | } |
Unexecuted instantiation: bpf_delegate_cmd_to_string Unexecuted instantiation: bpf_delegate_map_type_to_string Unexecuted instantiation: bpf_delegate_prog_type_to_string Unexecuted instantiation: bpf_delegate_attach_type_to_string Line | Count | Source | 18 | 30.2k | scope const char* name##_to_string(type i) { \ | 19 | 30.2k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 30.2k | } |
Line | Count | Source | 18 | 15.1k | scope const char* name##_to_string(type i) { \ | 19 | 15.1k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 15.1k | } |
Line | Count | Source | 18 | 15.1k | scope const char* name##_to_string(type i) { \ | 19 | 15.1k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 15.1k | } |
Unexecuted instantiation: namespace.c:mount_mode_to_string Unexecuted instantiation: path_type_to_string Line | Count | Source | 18 | 2.67k | scope const char* name##_to_string(type i) { \ | 19 | 2.67k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 2.67k | } |
Unexecuted instantiation: scope_result_to_string service_restart_to_string Line | Count | Source | 18 | 3 | scope const char* name##_to_string(type i) { \ | 19 | 3 | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 3 | } |
Unexecuted instantiation: service_restart_mode_to_string Line | Count | Source | 18 | 3 | scope const char* name##_to_string(type i) { \ | 19 | 3 | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 3 | } |
Unexecuted instantiation: service_exit_type_to_string Unexecuted instantiation: service_exec_command_to_string Unexecuted instantiation: service_exec_ex_command_to_string Line | Count | Source | 18 | 3 | scope const char* name##_to_string(type i) { \ | 19 | 3 | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 3 | } |
Line | Count | Source | 18 | 44.2k | scope const char* name##_to_string(type i) { \ | 19 | 44.2k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 44.2k | } |
service_timeout_failure_mode_to_string Line | Count | Source | 18 | 6 | scope const char* name##_to_string(type i) { \ | 19 | 6 | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 6 | } |
Line | Count | Source | 18 | 589 | scope const char* name##_to_string(type i) { \ | 19 | 589 | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 589 | } |
Unexecuted instantiation: status_unit_format_to_string socket_exec_command_to_string Line | Count | Source | 18 | 28 | scope const char* name##_to_string(type i) { \ | 19 | 28 | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 28 | } |
Line | Count | Source | 18 | 5.99k | scope const char* name##_to_string(type i) { \ | 19 | 5.99k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 5.99k | } |
Unexecuted instantiation: socket_timestamping_to_string Unexecuted instantiation: socket_defer_trigger_to_string swap_exec_command_to_string Line | Count | Source | 18 | 28 | scope const char* name##_to_string(type i) { \ | 19 | 28 | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 28 | } |
Line | Count | Source | 18 | 4.57k | scope const char* name##_to_string(type i) { \ | 19 | 4.57k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 4.57k | } |
Unexecuted instantiation: timer_base_to_string Line | Count | Source | 18 | 2.24k | scope const char* name##_to_string(type i) { \ | 19 | 2.24k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 2.24k | } |
Line | Count | Source | 18 | 55.1k | scope const char* name##_to_string(type i) { \ | 19 | 55.1k | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 55.1k | } |
unit_mount_dependency_type_to_string Line | Count | Source | 18 | 348 | scope const char* name##_to_string(type i) { \ | 19 | 348 | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 348 | } |
Line | Count | Source | 18 | 3 | scope const char* name##_to_string(type i) { \ | 19 | 3 | return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i); \ | 20 | 3 | } |
|
21 | | |
22 | | #define _DEFINE_STRING_TABLE_LOOKUP_FROM_STRING(name, type, scope) \ |
23 | 109M | scope type name##_from_string(const char *s) { \ |
24 | 109M | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ |
25 | 109M | } mac_address_policy_from_string Line | Count | Source | 23 | 390 | scope type name##_from_string(const char *s) { \ | 24 | 390 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 390 | } |
Unexecuted instantiation: irq_affinity_policy_from_string Unexecuted instantiation: resolve_name_timing_from_string Unexecuted instantiation: console_mode_from_string Unexecuted instantiation: storage_from_string Unexecuted instantiation: split_mode_from_string Unexecuted instantiation: ndisc_event_from_string Unexecuted instantiation: dnssec_result_from_string Unexecuted instantiation: dnssec_verdict_from_string Unexecuted instantiation: dns_scope_origin_from_string Unexecuted instantiation: dns_server_type_from_string Unexecuted instantiation: dns_server_feature_level_from_string Unexecuted instantiation: dns_transaction_state_from_string Unexecuted instantiation: dns_transaction_source_from_string bare_udp_protocol_from_string Line | Count | Source | 23 | 389 | scope type name##_from_string(const char *s) { \ | 24 | 389 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 389 | } |
batadv.c:batadv_gateway_mode_from_string Line | Count | Source | 23 | 388 | scope type name##_from_string(const char *s) { \ | 24 | 388 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 388 | } |
batadv.c:batadv_routing_algorithm_from_string Line | Count | Source | 23 | 390 | scope type name##_from_string(const char *s) { \ | 24 | 390 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 390 | } |
fou_encap_type_from_string Line | Count | Source | 23 | 408 | scope type name##_from_string(const char *s) { \ | 24 | 408 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 408 | } |
Unexecuted instantiation: hsr_protocol_from_string ipoib.c:ipoib_mode_from_string Line | Count | Source | 23 | 389 | scope type name##_from_string(const char *s) { \ | 24 | 389 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 389 | } |
l2tp-tunnel.c:l2tp_encap_type_from_string Line | Count | Source | 23 | 389 | scope type name##_from_string(const char *s) { \ | 24 | 389 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 389 | } |
l2tp-tunnel.c:l2tp_local_address_type_from_string Line | Count | Source | 23 | 1.81k | scope type name##_from_string(const char *s) { \ | 24 | 1.81k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 1.81k | } |
l2tp-tunnel.c:l2tp_l2spec_type_from_string Line | Count | Source | 23 | 397 | scope type name##_from_string(const char *s) { \ | 24 | 397 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 397 | } |
netdev_local_address_type_from_string Line | Count | Source | 23 | 2.71k | scope type name##_from_string(const char *s) { \ | 24 | 2.71k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 2.71k | } |
Line | Count | Source | 23 | 22.5k | scope type name##_from_string(const char *s) { \ | 24 | 22.5k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 22.5k | } |
Line | Count | Source | 23 | 397 | scope type name##_from_string(const char *s) { \ | 24 | 397 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 397 | } |
networkd-bridge-fdb.c:ntf_flags_from_string Line | Count | Source | 23 | 388 | scope type name##_from_string(const char *s) { \ | 24 | 388 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 388 | } |
dhcp_option_data_type_from_string Line | Count | Source | 23 | 27.8k | scope type name##_from_string(const char *s) { \ | 24 | 27.8k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 27.8k | } |
networkd-dhcp-common.c:duid_type_from_string Line | Count | Source | 23 | 18.8k | scope type name##_from_string(const char *s) { \ | 24 | 18.8k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 18.8k | } |
networkd-dhcp-relay.c:dhcp_relay_interface_mode_from_string Line | Count | Source | 23 | 407 | scope type name##_from_string(const char *s) { \ | 24 | 407 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 407 | } |
networkd-dhcp4.c:dhcp_client_identifier_from_string Line | Count | Source | 23 | 389 | scope type name##_from_string(const char *s) { \ | 24 | 389 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 389 | } |
dhcp6_client_start_mode_from_string Line | Count | Source | 23 | 392 | scope type name##_from_string(const char *s) { \ | 24 | 392 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 392 | } |
ipv6_link_local_address_gen_mode_from_string Line | Count | Source | 23 | 391 | scope type name##_from_string(const char *s) { \ | 24 | 391 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 391 | } |
Unexecuted instantiation: link_state_from_string networkd-lldp-tx.c:lldp_multicast_mode_from_string Line | Count | Source | 23 | 412 | scope type name##_from_string(const char *s) { \ | 24 | 412 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 412 | } |
activation_policy_from_string Line | Count | Source | 23 | 437 | scope type name##_from_string(const char *s) { \ | 24 | 437 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 437 | } |
Line | Count | Source | 23 | 2.23k | scope type name##_from_string(const char *s) { \ | 24 | 2.23k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 2.23k | } |
networkd-route-util.c:route_table_from_string Line | Count | Source | 23 | 5.46k | scope type name##_from_string(const char *s) { \ | 24 | 5.46k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 5.46k | } |
Line | Count | Source | 23 | 607 | scope type name##_from_string(const char *s) { \ | 24 | 607 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 607 | } |
ip_reverse_path_filter_from_string Line | Count | Source | 23 | 392 | scope type name##_from_string(const char *s) { \ | 24 | 392 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 392 | } |
Unexecuted instantiation: ipv4_force_igmp_version_from_string Unexecuted instantiation: network_config_source_from_string routing_policy_rule_address_family_from_string Line | Count | Source | 23 | 1.20k | scope type name##_from_string(const char *s) { \ | 24 | 1.20k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 1.20k | } |
Unexecuted instantiation: nexthop_address_family_from_string duplicate_address_detection_address_family_from_string Line | Count | Source | 23 | 1.18k | scope type name##_from_string(const char *s) { \ | 24 | 1.18k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 1.18k | } |
dhcp_deprecated_address_family_from_string Line | Count | Source | 23 | 559 | scope type name##_from_string(const char *s) { \ | 24 | 559 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 559 | } |
Unexecuted instantiation: dhcp_lease_server_type_from_string networkd-util.c:ip_masquerade_address_family_from_string Line | Count | Source | 23 | 388 | scope type name##_from_string(const char *s) { \ | 24 | 388 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 388 | } |
cake.c:cake_compensation_mode_from_string Line | Count | Source | 23 | 388 | scope type name##_from_string(const char *s) { \ | 24 | 388 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 388 | } |
cake.c:cake_flow_isolation_mode_from_string Line | Count | Source | 23 | 461 | scope type name##_from_string(const char *s) { \ | 24 | 461 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 461 | } |
cake.c:cake_priority_queueing_preset_from_string Line | Count | Source | 23 | 393 | scope type name##_from_string(const char *s) { \ | 24 | 393 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 393 | } |
Unexecuted instantiation: dhcp6_message_type_from_string Unexecuted instantiation: dhcp6_message_status_from_string Unexecuted instantiation: lldp_rx_event_from_string Unexecuted instantiation: ask-password-api.c:keyring_from_string Line | Count | Source | 23 | 400 | scope type name##_from_string(const char *s) { \ | 24 | 400 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 400 | } |
bond_xmit_hash_policy_from_string Line | Count | Source | 23 | 389 | scope type name##_from_string(const char *s) { \ | 24 | 389 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 389 | } |
bond_lacp_rate_from_string Line | Count | Source | 23 | 388 | scope type name##_from_string(const char *s) { \ | 24 | 388 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 388 | } |
bond_ad_select_from_string Line | Count | Source | 23 | 389 | scope type name##_from_string(const char *s) { \ | 24 | 389 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 389 | } |
bond_fail_over_mac_from_string Line | Count | Source | 23 | 388 | scope type name##_from_string(const char *s) { \ | 24 | 388 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 388 | } |
bond_arp_validate_from_string Line | Count | Source | 23 | 388 | scope type name##_from_string(const char *s) { \ | 24 | 388 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 388 | } |
bond_arp_all_targets_from_string Line | Count | Source | 23 | 388 | scope type name##_from_string(const char *s) { \ | 24 | 388 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 388 | } |
bond_primary_reselect_from_string Line | Count | Source | 23 | 388 | scope type name##_from_string(const char *s) { \ | 24 | 388 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 388 | } |
Unexecuted instantiation: boot_entry_token_type_from_string Unexecuted instantiation: boot_entry_type_from_string bpf_cgroup_attach_type_from_string Line | Count | Source | 23 | 4.12k | scope type name##_from_string(const char *s) { \ | 24 | 4.12k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 4.12k | } |
Unexecuted instantiation: bridge_state_from_string Unexecuted instantiation: condition_result_from_string Unexecuted instantiation: condition.c:_condition_type_from_string Unexecuted instantiation: condition.c:_assert_type_from_string coredump_filter_from_string Line | Count | Source | 23 | 1.16k | scope type name##_from_string(const char *s) { \ | 24 | 1.16k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 1.16k | } |
Unexecuted instantiation: credential_boot_policy_from_string Unexecuted instantiation: image_type_from_string Unexecuted instantiation: dns_rcode_from_string Unexecuted instantiation: dns_protocol_from_string Line | Count | Source | 23 | 439 | scope type name##_from_string(const char *s) { \ | 24 | 439 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 439 | } |
Line | Count | Source | 23 | 547 | scope type name##_from_string(const char *s) { \ | 24 | 547 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 547 | } |
ethtool_link_mode_bit_from_string Line | Count | Source | 23 | 666 | scope type name##_from_string(const char *s) { \ | 24 | 666 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 666 | } |
Unexecuted instantiation: factory_reset_mode_from_string Line | Count | Source | 23 | 6.11k | scope type name##_from_string(const char *s) { \ | 24 | 6.11k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 6.11k | } |
nft_set_source_from_string Line | Count | Source | 23 | 7.77k | scope type name##_from_string(const char *s) { \ | 24 | 7.77k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 7.77k | } |
partition_designator_from_string Line | Count | Source | 23 | 15.1k | scope type name##_from_string(const char *s) { \ | 24 | 15.1k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 15.1k | } |
Unexecuted instantiation: hostname_source_from_string Unexecuted instantiation: import_type_from_string Unexecuted instantiation: import_verify_from_string Unexecuted instantiation: unit_file_state_from_string Unexecuted instantiation: install_change_type_from_string unit_file_preset_mode_from_string Line | Count | Source | 23 | 297 | scope type name##_from_string(const char *s) { \ | 24 | 297 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 297 | } |
Line | Count | Source | 23 | 388 | scope type name##_from_string(const char *s) { \ | 24 | 388 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 388 | } |
Line | Count | Source | 23 | 388 | scope type name##_from_string(const char *s) { \ | 24 | 388 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 388 | } |
Unexecuted instantiation: image_format_from_string Unexecuted instantiation: read_only_mode_from_string Unexecuted instantiation: disk_type_from_string Unexecuted instantiation: block_driver_from_string Unexecuted instantiation: qemu_device_driver_from_string Line | Count | Source | 23 | 391 | scope type name##_from_string(const char *s) { \ | 24 | 391 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 391 | } |
Line | Count | Source | 23 | 915 | scope type name##_from_string(const char *s) { \ | 24 | 915 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 915 | } |
alternative_names_policy_from_string Line | Count | Source | 23 | 970 | scope type name##_from_string(const char *s) { \ | 24 | 970 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 970 | } |
Line | Count | Source | 23 | 1.26k | scope type name##_from_string(const char *s) { \ | 24 | 1.26k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 1.26k | } |
open_file_flags_from_string Line | Count | Source | 23 | 2.85k | scope type name##_from_string(const char *s) { \ | 24 | 2.85k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 2.85k | } |
Line | Count | Source | 23 | 581 | scope type name##_from_string(const char *s) { \ | 24 | 581 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 581 | } |
pkcs11_rsa_padding_from_string Line | Count | Source | 23 | 406 | scope type name##_from_string(const char *s) { \ | 24 | 406 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 406 | } |
Unexecuted instantiation: sleep_operation_from_string socket_address_bind_ipv6_only_from_string Line | Count | Source | 23 | 74 | scope type name##_from_string(const char *s) { \ | 24 | 74 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 74 | } |
Unexecuted instantiation: volume_type_from_string Unexecuted instantiation: create_mode_from_string Line | Count | Source | 23 | 1.00k | scope type name##_from_string(const char *s) { \ | 24 | 1.00k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 1.00k | } |
user_disposition_from_string Line | Count | Source | 23 | 11.3k | scope type name##_from_string(const char *s) { \ | 24 | 11.3k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 11.3k | } |
auto_resize_mode_from_string Line | Count | Source | 23 | 471 | scope type name##_from_string(const char *s) { \ | 24 | 471 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 471 | } |
nl80211_iftype_from_string Line | Count | Source | 23 | 431 | scope type name##_from_string(const char *s) { \ | 24 | 431 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 431 | } |
Line | Count | Source | 23 | 2.99k | scope type name##_from_string(const char *s) { \ | 24 | 2.99k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 2.99k | } |
cgroup_io_limit_type_from_string Line | Count | Source | 23 | 3.80k | scope type name##_from_string(const char *s) { \ | 24 | 3.80k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 3.80k | } |
cgroup_controller_from_string Line | Count | Source | 23 | 4.12k | scope type name##_from_string(const char *s) { \ | 24 | 4.12k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 4.12k | } |
managed_oom_mode_from_string Line | Count | Source | 23 | 861 | scope type name##_from_string(const char *s) { \ | 24 | 861 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 861 | } |
managed_oom_preference_from_string Line | Count | Source | 23 | 634 | scope type name##_from_string(const char *s) { \ | 24 | 634 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 634 | } |
Unexecuted instantiation: compression_from_string Unexecuted instantiation: compression_uppercase_from_string Unexecuted instantiation: compression_extension_from_string Unexecuted instantiation: confidential_virtualization_from_string Unexecuted instantiation: locale_variable_from_string Line | Count | Source | 23 | 1.30k | scope type name##_from_string(const char *s) { \ | 24 | 1.30k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 1.30k | } |
Unexecuted instantiation: image_class_from_string Unexecuted instantiation: sigchld_code_from_string Unexecuted instantiation: pressure_resource_from_string Line | Count | Source | 23 | 6.69k | scope type name##_from_string(const char *s) { \ | 24 | 6.69k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 6.69k | } |
runtime_scope_from_string Line | Count | Source | 23 | 182 | scope type name##_from_string(const char *s) { \ | 24 | 182 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 182 | } |
signal-util.c:static_signal_from_string Line | Count | Source | 23 | 16.3k | scope type name##_from_string(const char *s) { \ | 24 | 16.3k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 16.3k | } |
Unexecuted instantiation: socket_address_type_from_string Line | Count | Source | 23 | 109M | scope type name##_from_string(const char *s) { \ | 24 | 109M | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 109M | } |
unit_load_state_from_string Line | Count | Source | 23 | 704 | scope type name##_from_string(const char *s) { \ | 24 | 704 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 704 | } |
Unexecuted instantiation: unit_active_state_from_string freezer_state_from_string Line | Count | Source | 23 | 587 | scope type name##_from_string(const char *s) { \ | 24 | 587 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 587 | } |
Line | Count | Source | 23 | 762 | scope type name##_from_string(const char *s) { \ | 24 | 762 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 762 | } |
automount_state_from_string Line | Count | Source | 23 | 389 | scope type name##_from_string(const char *s) { \ | 24 | 389 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 389 | } |
Line | Count | Source | 23 | 417 | scope type name##_from_string(const char *s) { \ | 24 | 417 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 417 | } |
Line | Count | Source | 23 | 451 | scope type name##_from_string(const char *s) { \ | 24 | 451 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 451 | } |
Line | Count | Source | 23 | 402 | scope type name##_from_string(const char *s) { \ | 24 | 402 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 402 | } |
Line | Count | Source | 23 | 537 | scope type name##_from_string(const char *s) { \ | 24 | 537 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 537 | } |
service_state_from_string Line | Count | Source | 23 | 549 | scope type name##_from_string(const char *s) { \ | 24 | 549 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 549 | } |
Line | Count | Source | 23 | 452 | scope type name##_from_string(const char *s) { \ | 24 | 452 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 452 | } |
Line | Count | Source | 23 | 395 | scope type name##_from_string(const char *s) { \ | 24 | 395 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 395 | } |
Line | Count | Source | 23 | 390 | scope type name##_from_string(const char *s) { \ | 24 | 390 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 390 | } |
Line | Count | Source | 23 | 390 | scope type name##_from_string(const char *s) { \ | 24 | 390 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 390 | } |
Line | Count | Source | 23 | 398 | scope type name##_from_string(const char *s) { \ | 24 | 398 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 398 | } |
Unexecuted instantiation: unit_dependency_from_string notify_access_from_string Line | Count | Source | 23 | 868 | scope type name##_from_string(const char *s) { \ | 24 | 868 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 868 | } |
Line | Count | Source | 23 | 626 | scope type name##_from_string(const char *s) { \ | 24 | 626 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 626 | } |
exec_directory_type_from_string Line | Count | Source | 23 | 1.70k | scope type name##_from_string(const char *s) { \ | 24 | 1.70k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 1.70k | } |
Unexecuted instantiation: virtualization_from_string virt.c:container_from_string Line | Count | Source | 23 | 9 | scope type name##_from_string(const char *s) { \ | 24 | 9 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 9 | } |
Unexecuted instantiation: device_action_from_string Unexecuted instantiation: sd_json_variant_type_from_string link_operstate_from_string Line | Count | Source | 23 | 1.58k | scope type name##_from_string(const char *s) { \ | 24 | 1.58k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 1.58k | } |
Unexecuted instantiation: link_carrier_state_from_string link_required_address_family_from_string Line | Count | Source | 23 | 389 | scope type name##_from_string(const char *s) { \ | 24 | 389 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 389 | } |
Unexecuted instantiation: link_address_state_from_string Unexecuted instantiation: link_online_state_from_string automount_result_from_string Line | Count | Source | 23 | 591 | scope type name##_from_string(const char *s) { \ | 24 | 591 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 591 | } |
cgroup_device_policy_from_string Line | Count | Source | 23 | 323 | scope type name##_from_string(const char *s) { \ | 24 | 323 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 323 | } |
cpuset_partition_from_string Line | Count | Source | 23 | 205 | scope type name##_from_string(const char *s) { \ | 24 | 205 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 205 | } |
Unexecuted instantiation: cgroup_ip_accounting_metric_from_string Unexecuted instantiation: cgroup_io_accounting_metric_from_string Unexecuted instantiation: cgroup_memory_accounting_metric_from_string Unexecuted instantiation: cgroup_effective_limit_type_from_string cgroup.c:memory_accounting_metric_field_last_from_string Line | Count | Source | 23 | 99.5k | scope type name##_from_string(const char *s) { \ | 24 | 99.5k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 99.5k | } |
cgroup.c:ip_accounting_metric_field_from_string Line | Count | Source | 23 | 98.8k | scope type name##_from_string(const char *s) { \ | 24 | 98.8k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 98.8k | } |
cgroup.c:io_accounting_metric_field_base_from_string Line | Count | Source | 23 | 98.2k | scope type name##_from_string(const char *s) { \ | 24 | 98.2k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 98.2k | } |
cgroup.c:io_accounting_metric_field_last_from_string Line | Count | Source | 23 | 97.7k | scope type name##_from_string(const char *s) { \ | 24 | 97.7k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 97.7k | } |
emergency_action_from_string Line | Count | Source | 23 | 878 | scope type name##_from_string(const char *s) { \ | 24 | 878 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 878 | } |
Line | Count | Source | 23 | 837 | scope type name##_from_string(const char *s) { \ | 24 | 837 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 837 | } |
Line | Count | Source | 23 | 1.64k | scope type name##_from_string(const char *s) { \ | 24 | 1.64k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 1.64k | } |
exec_utmp_mode_from_string Line | Count | Source | 23 | 295 | scope type name##_from_string(const char *s) { \ | 24 | 295 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 295 | } |
Unexecuted instantiation: exec_directory_type_symlink_from_string Unexecuted instantiation: exec_directory_type_mode_from_string Unexecuted instantiation: exec_resource_type_from_string exec_keyring_mode_from_string Line | Count | Source | 23 | 671 | scope type name##_from_string(const char *s) { \ | 24 | 671 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 671 | } |
exec_memory_thp_from_string Line | Count | Source | 23 | 172 | scope type name##_from_string(const char *s) { \ | 24 | 172 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 172 | } |
Line | Count | Source | 23 | 899 | scope type name##_from_string(const char *s) { \ | 24 | 899 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 899 | } |
Line | Count | Source | 23 | 3.06k | scope type name##_from_string(const char *s) { \ | 24 | 3.06k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 3.06k | } |
Unexecuted instantiation: job_result_from_string Line | Count | Source | 23 | 730 | scope type name##_from_string(const char *s) { \ | 24 | 730 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 730 | } |
Unexecuted instantiation: kill_whom_from_string Unexecuted instantiation: manager_state_from_string manager_objective_from_string Line | Count | Source | 23 | 586 | scope type name##_from_string(const char *s) { \ | 24 | 586 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 586 | } |
Unexecuted instantiation: manager_timestamp_from_string mount_exec_command_from_string Line | Count | Source | 23 | 410 | scope type name##_from_string(const char *s) { \ | 24 | 410 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 410 | } |
Line | Count | Source | 23 | 1.18k | scope type name##_from_string(const char *s) { \ | 24 | 1.18k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 1.18k | } |
Line | Count | Source | 23 | 1.04k | scope type name##_from_string(const char *s) { \ | 24 | 1.04k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 1.04k | } |
Line | Count | Source | 23 | 547 | scope type name##_from_string(const char *s) { \ | 24 | 547 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 547 | } |
Unexecuted instantiation: bpf_delegate_cmd_from_string Unexecuted instantiation: bpf_delegate_map_type_from_string Unexecuted instantiation: bpf_delegate_prog_type_from_string Unexecuted instantiation: bpf_delegate_attach_type_from_string Line | Count | Source | 23 | 1.82k | scope type name##_from_string(const char *s) { \ | 24 | 1.82k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 1.82k | } |
Line | Count | Source | 23 | 597 | scope type name##_from_string(const char *s) { \ | 24 | 597 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 597 | } |
Unexecuted instantiation: scope_result_from_string service_restart_from_string Line | Count | Source | 23 | 413 | scope type name##_from_string(const char *s) { \ | 24 | 413 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 413 | } |
service_restart_mode_from_string Line | Count | Source | 23 | 427 | scope type name##_from_string(const char *s) { \ | 24 | 427 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 427 | } |
Line | Count | Source | 23 | 453 | scope type name##_from_string(const char *s) { \ | 24 | 453 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 453 | } |
service_exit_type_from_string Line | Count | Source | 23 | 265 | scope type name##_from_string(const char *s) { \ | 24 | 265 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 265 | } |
service_exec_command_from_string Line | Count | Source | 23 | 1.33k | scope type name##_from_string(const char *s) { \ | 24 | 1.33k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 1.33k | } |
Unexecuted instantiation: service_exec_ex_command_from_string Line | Count | Source | 23 | 195 | scope type name##_from_string(const char *s) { \ | 24 | 195 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 195 | } |
service_result_from_string Line | Count | Source | 23 | 2.22k | scope type name##_from_string(const char *s) { \ | 24 | 2.22k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 2.22k | } |
service_timeout_failure_mode_from_string Line | Count | Source | 23 | 161 | scope type name##_from_string(const char *s) { \ | 24 | 161 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 161 | } |
Unexecuted instantiation: status_unit_format_from_string socket_exec_command_from_string Line | Count | Source | 23 | 410 | scope type name##_from_string(const char *s) { \ | 24 | 410 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 410 | } |
socket_result_from_string Line | Count | Source | 23 | 590 | scope type name##_from_string(const char *s) { \ | 24 | 590 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 590 | } |
socket_timestamping_from_string Line | Count | Source | 23 | 1.38k | scope type name##_from_string(const char *s) { \ | 24 | 1.38k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 1.38k | } |
swap_exec_command_from_string Line | Count | Source | 23 | 411 | scope type name##_from_string(const char *s) { \ | 24 | 411 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 411 | } |
Line | Count | Source | 23 | 596 | scope type name##_from_string(const char *s) { \ | 24 | 596 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 596 | } |
Unexecuted instantiation: timer_base_from_string Line | Count | Source | 23 | 590 | scope type name##_from_string(const char *s) { \ | 24 | 590 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 590 | } |
Line | Count | Source | 23 | 343 | scope type name##_from_string(const char *s) { \ | 24 | 343 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 343 | } |
unit_mount_dependency_type_from_string Line | Count | Source | 23 | 6.36k | scope type name##_from_string(const char *s) { \ | 24 | 6.36k | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 6.36k | } |
Line | Count | Source | 23 | 422 | scope type name##_from_string(const char *s) { \ | 24 | 422 | return (type) string_table_lookup_from_string(name##_table, ELEMENTSOF(name##_table), s); \ | 25 | 422 | } |
|
26 | | |
27 | | #define _DEFINE_STRING_TABLE_LOOKUP_FROM_STRING_WITH_BOOLEAN(name, type, yes, scope) \ |
28 | 19.2k | scope type name##_from_string(const char *s) { \ |
29 | 19.2k | return (type) string_table_lookup_from_string_with_boolean(name##_table, ELEMENTSOF(name##_table), s, yes); \ |
30 | 19.2k | } resolv_conf_mode_from_string Line | Count | Source | 28 | 495 | scope type name##_from_string(const char *s) { \ | 29 | 495 | return (type) string_table_lookup_from_string_with_boolean(name##_table, ELEMENTSOF(name##_table), s, yes); \ | 30 | 495 | } |
timezone_mode_from_string Line | Count | Source | 28 | 727 | scope type name##_from_string(const char *s) { \ | 29 | 727 | return (type) string_table_lookup_from_string_with_boolean(name##_table, ELEMENTSOF(name##_table), s, yes); \ | 30 | 727 | } |
user_namespace_ownership_from_string Line | Count | Source | 28 | 391 | scope type name##_from_string(const char *s) { \ | 29 | 391 | return (type) string_table_lookup_from_string_with_boolean(name##_table, ELEMENTSOF(name##_table), s, yes); \ | 30 | 391 | } |
Unexecuted instantiation: journald-config.c:audit_set_mode_from_string Unexecuted instantiation: dns_stub_listener_mode_from_string multicast_router_from_string Line | Count | Source | 28 | 389 | scope type name##_from_string(const char *s) { \ | 29 | 389 | return (type) string_table_lookup_from_string_with_boolean(name##_table, ELEMENTSOF(name##_table), s, yes); \ | 30 | 389 | } |
Line | Count | Source | 28 | 758 | scope type name##_from_string(const char *s) { \ | 29 | 758 | return (type) string_table_lookup_from_string_with_boolean(name##_table, ELEMENTSOF(name##_table), s, yes); \ | 30 | 758 | } |
Line | Count | Source | 28 | 914 | scope type name##_from_string(const char *s) { \ | 29 | 914 | return (type) string_table_lookup_from_string_with_boolean(name##_table, ELEMENTSOF(name##_table), s, yes); \ | 30 | 914 | } |
Unexecuted instantiation: networkd-dhcp-server.c:dhcp_server_persist_leases_from_string Line | Count | Source | 28 | 391 | scope type name##_from_string(const char *s) { \ | 29 | 391 | return (type) string_table_lookup_from_string_with_boolean(name##_table, ELEMENTSOF(name##_table), s, yes); \ | 30 | 391 | } |
Line | Count | Source | 28 | 422 | scope type name##_from_string(const char *s) { \ | 29 | 422 | return (type) string_table_lookup_from_string_with_boolean(name##_table, ELEMENTSOF(name##_table), s, yes); \ | 30 | 422 | } |
networkd-ndisc.c:ndisc_start_dhcp6_client_from_string Line | Count | Source | 28 | 519 | scope type name##_from_string(const char *s) { \ | 29 | 519 | return (type) string_table_lookup_from_string_with_boolean(name##_table, ELEMENTSOF(name##_table), s, yes); \ | 30 | 519 | } |
keep_configuration_from_string Line | Count | Source | 28 | 537 | scope type name##_from_string(const char *s) { \ | 29 | 537 | return (type) string_table_lookup_from_string_with_boolean(name##_table, ELEMENTSOF(name##_table), s, yes); \ | 30 | 537 | } |
radv_prefix_delegation_from_string Line | Count | Source | 28 | 570 | scope type name##_from_string(const char *s) { \ | 29 | 570 | return (type) string_table_lookup_from_string_with_boolean(name##_table, ELEMENTSOF(name##_table), s, yes); \ | 30 | 570 | } |
ipv6_privacy_extensions_from_string Line | Count | Source | 28 | 389 | scope type name##_from_string(const char *s) { \ | 29 | 389 | return (type) string_table_lookup_from_string_with_boolean(name##_table, ELEMENTSOF(name##_table), s, yes); \ | 30 | 389 | } |
address_family_from_string Line | Count | Source | 28 | 1.39k | scope type name##_from_string(const char *s) { \ | 29 | 1.39k | return (type) string_table_lookup_from_string_with_boolean(name##_table, ELEMENTSOF(name##_table), s, yes); \ | 30 | 1.39k | } |
cake.c:cake_ack_filter_from_string Line | Count | Source | 28 | 402 | scope type name##_from_string(const char *s) { \ | 29 | 402 | return (type) string_table_lookup_from_string_with_boolean(name##_table, ELEMENTSOF(name##_table), s, yes); \ | 30 | 402 | } |
Unexecuted instantiation: firstboot_mode_from_string resolve_support_from_string Line | Count | Source | 28 | 521 | scope type name##_from_string(const char *s) { \ | 29 | 521 | return (type) string_table_lookup_from_string_with_boolean(name##_table, ELEMENTSOF(name##_table), s, yes); \ | 30 | 521 | } |
Line | Count | Source | 28 | 467 | scope type name##_from_string(const char *s) { \ | 29 | 467 | return (type) string_table_lookup_from_string_with_boolean(name##_table, ELEMENTSOF(name##_table), s, yes); \ | 30 | 467 | } |
dns_over_tls_mode_from_string Line | Count | Source | 28 | 390 | scope type name##_from_string(const char *s) { \ | 29 | 390 | return (type) string_table_lookup_from_string_with_boolean(name##_table, ELEMENTSOF(name##_table), s, yes); \ | 30 | 390 | } |
Unexecuted instantiation: dns_cache_mode_from_string volatile_mode_from_string Line | Count | Source | 28 | 391 | scope type name##_from_string(const char *s) { \ | 29 | 391 | return (type) string_table_lookup_from_string_with_boolean(name##_table, ELEMENTSOF(name##_table), s, yes); \ | 30 | 391 | } |
Unexecuted instantiation: color_mode_from_string Unexecuted instantiation: restrict_filesystem_access_from_string cgroup_pressure_watch_from_string Line | Count | Source | 28 | 981 | scope type name##_from_string(const char *s) { \ | 29 | 981 | return (type) string_table_lookup_from_string_with_boolean(name##_table, ELEMENTSOF(name##_table), s, yes); \ | 30 | 981 | } |
exec_preserve_mode_from_string Line | Count | Source | 28 | 215 | scope type name##_from_string(const char *s) { \ | 29 | 215 | return (type) string_table_lookup_from_string_with_boolean(name##_table, ELEMENTSOF(name##_table), s, yes); \ | 30 | 215 | } |
Line | Count | Source | 28 | 728 | scope type name##_from_string(const char *s) { \ | 29 | 728 | return (type) string_table_lookup_from_string_with_boolean(name##_table, ELEMENTSOF(name##_table), s, yes); \ | 30 | 728 | } |
protect_hostname_from_string Line | Count | Source | 28 | 197 | scope type name##_from_string(const char *s) { \ | 29 | 197 | return (type) string_table_lookup_from_string_with_boolean(name##_table, ELEMENTSOF(name##_table), s, yes); \ | 30 | 197 | } |
protect_system_from_string Line | Count | Source | 28 | 1.43k | scope type name##_from_string(const char *s) { \ | 29 | 1.43k | return (type) string_table_lookup_from_string_with_boolean(name##_table, ELEMENTSOF(name##_table), s, yes); \ | 30 | 1.43k | } |
protect_control_groups_from_string Line | Count | Source | 28 | 663 | scope type name##_from_string(const char *s) { \ | 29 | 663 | return (type) string_table_lookup_from_string_with_boolean(name##_table, ELEMENTSOF(name##_table), s, yes); \ | 30 | 663 | } |
Line | Count | Source | 28 | 505 | scope type name##_from_string(const char *s) { \ | 29 | 505 | return (type) string_table_lookup_from_string_with_boolean(name##_table, ELEMENTSOF(name##_table), s, yes); \ | 30 | 505 | } |
Line | Count | Source | 28 | 1.07k | scope type name##_from_string(const char *s) { \ | 29 | 1.07k | return (type) string_table_lookup_from_string_with_boolean(name##_table, ELEMENTSOF(name##_table), s, yes); \ | 30 | 1.07k | } |
private_users_from_string Line | Count | Source | 28 | 794 | scope type name##_from_string(const char *s) { \ | 29 | 794 | return (type) string_table_lookup_from_string_with_boolean(name##_table, ELEMENTSOF(name##_table), s, yes); \ | 30 | 794 | } |
Line | Count | Source | 28 | 169 | scope type name##_from_string(const char *s) { \ | 29 | 169 | return (type) string_table_lookup_from_string_with_boolean(name##_table, ELEMENTSOF(name##_table), s, yes); \ | 30 | 169 | } |
Line | Count | Source | 28 | 2.37k | scope type name##_from_string(const char *s) { \ | 29 | 2.37k | return (type) string_table_lookup_from_string_with_boolean(name##_table, ELEMENTSOF(name##_table), s, yes); \ | 30 | 2.37k | } |
Unexecuted instantiation: socket_defer_trigger_from_string |
31 | | |
32 | | #define _DEFINE_STRING_TABLE_LOOKUP_TO_STRING_FALLBACK(name, type, max, scope) \ |
33 | 21.4k | scope int name##_to_string_alloc(type i, char **ret) { \ |
34 | 21.4k | return string_table_lookup_to_string_fallback(name##_table, ELEMENTSOF(name##_table), i, max, ret); \ |
35 | 21.4k | } Unexecuted instantiation: route_scope_to_string_alloc Unexecuted instantiation: route_protocol_to_string_alloc Unexecuted instantiation: route_protocol_full_to_string_alloc dnssec_algorithm_to_string_alloc Line | Count | Source | 33 | 161 | scope int name##_to_string_alloc(type i, char **ret) { \ | 34 | 161 | return string_table_lookup_to_string_fallback(name##_table, ELEMENTSOF(name##_table), i, max, ret); \ | 35 | 161 | } |
Unexecuted instantiation: dnssec_digest_to_string_alloc sshfp_algorithm_to_string_alloc Line | Count | Source | 33 | 49 | scope int name##_to_string_alloc(type i, char **ret) { \ | 34 | 49 | return string_table_lookup_to_string_fallback(name##_table, ELEMENTSOF(name##_table), i, max, ret); \ | 35 | 49 | } |
sshfp_key_type_to_string_alloc Line | Count | Source | 33 | 49 | scope int name##_to_string_alloc(type i, char **ret) { \ | 34 | 49 | return string_table_lookup_to_string_fallback(name##_table, ELEMENTSOF(name##_table), i, max, ret); \ | 35 | 49 | } |
Unexecuted instantiation: ioprio_class_to_string_alloc sched_policy_to_string_alloc Line | Count | Source | 33 | 132 | scope int name##_to_string_alloc(type i, char **ret) { \ | 34 | 132 | return string_table_lookup_to_string_fallback(name##_table, ELEMENTSOF(name##_table), i, max, ret); \ | 35 | 132 | } |
Unexecuted instantiation: netlink_family_to_string_alloc Unexecuted instantiation: ip_tos_to_string_alloc log_facility_unshifted_to_string_alloc Line | Count | Source | 33 | 3 | scope int name##_to_string_alloc(type i, char **ret) { \ | 34 | 3 | return string_table_lookup_to_string_fallback(name##_table, ELEMENTSOF(name##_table), i, max, ret); \ | 35 | 3 | } |
log_level_to_string_alloc Line | Count | Source | 33 | 21.1k | scope int name##_to_string_alloc(type i, char **ret) { \ | 34 | 21.1k | return string_table_lookup_to_string_fallback(name##_table, ELEMENTSOF(name##_table), i, max, ret); \ | 35 | 21.1k | } |
|
36 | | |
37 | | #define _DEFINE_STRING_TABLE_LOOKUP_FROM_STRING_FALLBACK(name, type, max, scope) \ |
38 | 11.7k | scope type name##_from_string(const char *s) { \ |
39 | 11.7k | return (type) string_table_lookup_from_string_fallback(name##_table, ELEMENTSOF(name##_table), s, max); \ |
40 | 11.7k | } Line | Count | Source | 38 | 1.89k | scope type name##_from_string(const char *s) { \ | 39 | 1.89k | return (type) string_table_lookup_from_string_fallback(name##_table, ELEMENTSOF(name##_table), s, max); \ | 40 | 1.89k | } |
route_protocol_from_string Line | Count | Source | 38 | 401 | scope type name##_from_string(const char *s) { \ | 39 | 401 | return (type) string_table_lookup_from_string_fallback(name##_table, ELEMENTSOF(name##_table), s, max); \ | 40 | 401 | } |
Unexecuted instantiation: route_protocol_full_from_string Unexecuted instantiation: dnssec_algorithm_from_string Unexecuted instantiation: dnssec_digest_from_string Unexecuted instantiation: sshfp_algorithm_from_string Unexecuted instantiation: sshfp_key_type_from_string Line | Count | Source | 38 | 1.25k | scope type name##_from_string(const char *s) { \ | 39 | 1.25k | return (type) string_table_lookup_from_string_fallback(name##_table, ELEMENTSOF(name##_table), s, max); \ | 40 | 1.25k | } |
Unexecuted instantiation: tpm2_pcr_index_from_string Line | Count | Source | 38 | 1.87k | scope type name##_from_string(const char *s) { \ | 39 | 1.87k | return (type) string_table_lookup_from_string_fallback(name##_table, ELEMENTSOF(name##_table), s, max); \ | 40 | 1.87k | } |
netlink_family_from_string Line | Count | Source | 38 | 726 | scope type name##_from_string(const char *s) { \ | 39 | 726 | return (type) string_table_lookup_from_string_fallback(name##_table, ELEMENTSOF(name##_table), s, max); \ | 40 | 726 | } |
Line | Count | Source | 38 | 1.36k | scope type name##_from_string(const char *s) { \ | 39 | 1.36k | return (type) string_table_lookup_from_string_fallback(name##_table, ELEMENTSOF(name##_table), s, max); \ | 40 | 1.36k | } |
log_facility_unshifted_from_string Line | Count | Source | 38 | 214 | scope type name##_from_string(const char *s) { \ | 39 | 214 | return (type) string_table_lookup_from_string_fallback(name##_table, ELEMENTSOF(name##_table), s, max); \ | 40 | 214 | } |
Line | Count | Source | 38 | 4.01k | scope type name##_from_string(const char *s) { \ | 39 | 4.01k | return (type) string_table_lookup_from_string_fallback(name##_table, ELEMENTSOF(name##_table), s, max); \ | 40 | 4.01k | } |
|
41 | | |
42 | | #define _DEFINE_STRING_TABLE_LOOKUP(name, type, scope) \ |
43 | | _DEFINE_STRING_TABLE_LOOKUP_TO_STRING(name, type, scope) \ |
44 | | _DEFINE_STRING_TABLE_LOOKUP_FROM_STRING(name, type, scope) |
45 | | |
46 | | #define _DEFINE_STRING_TABLE_LOOKUP_WITH_BOOLEAN(name, type, yes, scope) \ |
47 | | _DEFINE_STRING_TABLE_LOOKUP_TO_STRING(name, type, scope) \ |
48 | | _DEFINE_STRING_TABLE_LOOKUP_FROM_STRING_WITH_BOOLEAN(name, type, yes, scope) |
49 | | |
50 | | #define DEFINE_STRING_TABLE_LOOKUP(name, type) _DEFINE_STRING_TABLE_LOOKUP(name, type,) |
51 | | #define DEFINE_STRING_TABLE_LOOKUP_TO_STRING(name, type) _DEFINE_STRING_TABLE_LOOKUP_TO_STRING(name, type,) |
52 | | #define DEFINE_STRING_TABLE_LOOKUP_FROM_STRING(name, type) _DEFINE_STRING_TABLE_LOOKUP_FROM_STRING(name, type,) |
53 | | #define DEFINE_PRIVATE_STRING_TABLE_LOOKUP(name, type) _DEFINE_STRING_TABLE_LOOKUP(name, type, static) |
54 | | #define DEFINE_PRIVATE_STRING_TABLE_LOOKUP_TO_STRING(name, type) _DEFINE_STRING_TABLE_LOOKUP_TO_STRING(name, type, static) |
55 | | #define DEFINE_PRIVATE_STRING_TABLE_LOOKUP_FROM_STRING(name, type) _DEFINE_STRING_TABLE_LOOKUP_FROM_STRING(name, type, static) |
56 | | |
57 | | #define DEFINE_STRING_TABLE_LOOKUP_WITH_BOOLEAN(name, type, yes) _DEFINE_STRING_TABLE_LOOKUP_WITH_BOOLEAN(name, type, yes,) |
58 | | #define DEFINE_PRIVATE_STRING_TABLE_LOOKUP_WITH_BOOLEAN(name, type, yes) _DEFINE_STRING_TABLE_LOOKUP_WITH_BOOLEAN(name, type, yes, static) |
59 | | #define DEFINE_PRIVATE_STRING_TABLE_LOOKUP_FROM_STRING_WITH_BOOLEAN(name, type, yes) \ |
60 | | _DEFINE_STRING_TABLE_LOOKUP_FROM_STRING_WITH_BOOLEAN(name, type, yes, static) |
61 | | |
62 | | /* For string conversions where numbers are also acceptable */ |
63 | | #define DEFINE_STRING_TABLE_LOOKUP_WITH_FALLBACK(name, type, max) \ |
64 | | _DEFINE_STRING_TABLE_LOOKUP_TO_STRING_FALLBACK(name, type, max,) \ |
65 | | _DEFINE_STRING_TABLE_LOOKUP_FROM_STRING_FALLBACK(name, type, max,) |
66 | | #define DEFINE_STRING_TABLE_LOOKUP_FROM_STRING_WITH_FALLBACK(name, type, max) _DEFINE_STRING_TABLE_LOOKUP_FROM_STRING_FALLBACK(name, type, max,) |
67 | | |
68 | | #define DEFINE_PRIVATE_STRING_TABLE_LOOKUP_TO_STRING_FALLBACK(name, type, max) \ |
69 | | _DEFINE_STRING_TABLE_LOOKUP_TO_STRING_FALLBACK(name, type, max, static) |
70 | | #define DEFINE_PRIVATE_STRING_TABLE_LOOKUP_FROM_STRING_FALLBACK(name, type, max) \ |
71 | | _DEFINE_STRING_TABLE_LOOKUP_FROM_STRING_FALLBACK(name, type, max, static) |
72 | | |
73 | | #define DUMP_STRING_TABLE(name, type, max) \ |
74 | 34 | ({ \ |
75 | 34 | flockfile(stdout); \ |
76 | 388 | for (type _k = 0; _k < (max); _k++) { \ |
77 | 354 | const char *_t; \ |
78 | 354 | _t = name##_to_string(_k); \ |
79 | 354 | if (!_t) \ |
80 | 354 | continue; \ |
81 | 354 | fputs_unlocked(_t, stdout); \ |
82 | 353 | fputc_unlocked('\n', stdout); \ |
83 | 353 | } \ |
84 | 34 | funlockfile(stdout); \ |
85 | 34 | 0; \ |
86 | 34 | }) |