zfs
dict
ffmpeg
dict
curl
dict
redis
dict
gcc
dict
wrk
dict
openssh
dict
{ "callees": { "targets": { "aes_encrypt_block": null, "aes_xor_block": null, "count_unflushed_space_cb": null, "ddt_zap_lookup": null, "dsl_dataset_hold": null, "dsl_dataset_hold_obj_string": null, "dump_acl": "", "dump_bpobj": "", "dump_bpobj_subobjs": "", "dump_ddt_zap": "", "dump_dmu_objset": "", "dump_dnode": "", "dump_dsl_dataset": "", "dump_dsl_dir": "", "dump_history_offsets": "", "dump_none": "", "dump_packed_nvlist": "", "dump_sa_attrs": "", "dump_sa_layouts": "", "dump_uint64": "", "dump_uint8": "", "dump_unknown": "", "dump_zap": "", "dump_znode": "", "dump_zpldir": "", "fletcher_4_scalar_native": null, "fletcher_4_superscalar4_native": null, "fletcher_4_superscalar_native": null, "gzip_decompress": null, "load_unflushed_cb": null, "load_unflushed_svr_segs_cb": null, "log_spacemap_obsolete_stats_cb": null, "lz4_decompress_zfs": null, "lzjb_decompress": null, "mul_x1_0": null, "mul_x1_1": null, "mul_x1_10": null, "mul_x1_100": null, "mul_x1_101": null, "mul_x1_102": null, "mul_x1_103": null, "mul_x1_104": null, "mul_x1_105": null, "mul_x1_106": null, "mul_x1_107": null, "mul_x1_108": null, "mul_x1_109": null, "mul_x1_11": null, "mul_x1_110": null, "mul_x1_111": null, "mul_x1_112": null, "mul_x1_113": null, "mul_x1_114": null, "mul_x1_115": null, "mul_x1_116": null, "mul_x1_117": null, "mul_x1_118": null, "mul_x1_119": null, "mul_x1_12": null, "mul_x1_120": null, "mul_x1_121": null, "mul_x1_122": null, "mul_x1_123": null, "mul_x1_124": null, "mul_x1_125": null, "mul_x1_126": null, "mul_x1_127": null, "mul_x1_128": null, "mul_x1_129": null, "mul_x1_13": null, "mul_x1_130": null, "mul_x1_131": null, "mul_x1_132": null, "mul_x1_133": null, "mul_x1_134": null, "mul_x1_135": null, "mul_x1_136": null, "mul_x1_137": null, "mul_x1_138": null, "mul_x1_139": null, "mul_x1_14": null, "mul_x1_140": null, "mul_x1_141": null, "mul_x1_142": null, "mul_x1_143": null, "mul_x1_144": null, "mul_x1_145": null, "mul_x1_146": null, "mul_x1_147": null, "mul_x1_148": null, "mul_x1_149": null, "mul_x1_15": null, "mul_x1_150": null, "mul_x1_151": null, "mul_x1_152": null, "mul_x1_153": null, "mul_x1_154": null, "mul_x1_155": null, "mul_x1_156": null, "mul_x1_157": null, "mul_x1_158": null, "mul_x1_159": null, "mul_x1_16": null, "mul_x1_160": null, "mul_x1_161": null, "mul_x1_162": null, "mul_x1_163": null, "mul_x1_164": null, "mul_x1_165": null, "mul_x1_166": null, "mul_x1_167": null, "mul_x1_168": null, "mul_x1_169": null, "mul_x1_17": null, "mul_x1_170": null, "mul_x1_171": null, "mul_x1_172": null, "mul_x1_173": null, "mul_x1_174": null, "mul_x1_175": null, "mul_x1_176": null, "mul_x1_177": null, "mul_x1_178": null, "mul_x1_179": null, "mul_x1_18": null, "mul_x1_180": null, "mul_x1_181": null, "mul_x1_182": null, "mul_x1_183": null, "mul_x1_184": null, "mul_x1_185": null, "mul_x1_186": null, "mul_x1_187": null, "mul_x1_188": null, "mul_x1_189": null, "mul_x1_19": null, "mul_x1_190": null, "mul_x1_191": null, "mul_x1_192": null, "mul_x1_193": null, "mul_x1_194": null, "mul_x1_195": null, "mul_x1_196": null, "mul_x1_197": null, "mul_x1_198": null, "mul_x1_199": null, "mul_x1_2": null, "mul_x1_20": null, "mul_x1_200": null, "mul_x1_201": null, "mul_x1_202": null, "mul_x1_203": null, "mul_x1_204": null, "mul_x1_205": null, "mul_x1_206": null, "mul_x1_207": null, "mul_x1_208": null, "mul_x1_209": null, "mul_x1_21": null, "mul_x1_210": null, "mul_x1_211": null, "mul_x1_212": null, "mul_x1_213": null, "mul_x1_214": null, "mul_x1_215": null, "mul_x1_216": null, "mul_x1_217": null, "mul_x1_218": null, "mul_x1_219": null, "mul_x1_22": null, "mul_x1_220": null, "mul_x1_221": null, "mul_x1_222": null, "mul_x1_223": null, "mul_x1_224": null, "mul_x1_225": null, "mul_x1_226": null, "mul_x1_227": null, "mul_x1_228": null, "mul_x1_229": null, "mul_x1_23": null, "mul_x1_230": null, "mul_x1_231": null, "mul_x1_232": null, "mul_x1_233": null, "mul_x1_234": null, "mul_x1_235": null, "mul_x1_236": null, "mul_x1_237": null, "mul_x1_238": null, "mul_x1_239": null, "mul_x1_24": null, "mul_x1_240": null, "mul_x1_241": null, "mul_x1_242": null, "mul_x1_243": null, "mul_x1_244": null, "mul_x1_245": null, "mul_x1_246": null, "mul_x1_247": null, "mul_x1_248": null, "mul_x1_249": null, "mul_x1_25": null, "mul_x1_250": null, "mul_x1_251": null, "mul_x1_252": null, "mul_x1_253": null, "mul_x1_254": null, "mul_x1_255": null, "mul_x1_26": null, "mul_x1_27": null, "mul_x1_28": null, "mul_x1_29": null, "mul_x1_3": null, "mul_x1_30": null, "mul_x1_31": null, "mul_x1_32": null, "mul_x1_33": null, "mul_x1_34": null, "mul_x1_35": null, "mul_x1_36": null, "mul_x1_37": null, "mul_x1_38": null, "mul_x1_39": null, "mul_x1_4": null, "mul_x1_40": null, "mul_x1_41": null, "mul_x1_42": null, "mul_x1_43": null, "mul_x1_44": null, "mul_x1_45": null, "mul_x1_46": null, "mul_x1_47": null, "mul_x1_48": null, "mul_x1_49": null, "mul_x1_5": null, "mul_x1_50": null, "mul_x1_51": null, "mul_x1_52": null, "mul_x1_53": null, "mul_x1_54": null, "mul_x1_55": null, "mul_x1_56": null, "mul_x1_57": null, "mul_x1_58": null, "mul_x1_59": null, "mul_x1_6": null, "mul_x1_60": null, "mul_x1_61": null, "mul_x1_62": null, "mul_x1_63": null, "mul_x1_64": null, "mul_x1_65": null, "mul_x1_66": null, "mul_x1_67": null, "mul_x1_68": null, "mul_x1_69": null, "mul_x1_7": null, "mul_x1_70": null, "mul_x1_71": null, "mul_x1_72": null, "mul_x1_73": null, "mul_x1_74": null, "mul_x1_75": null, "mul_x1_76": null, "mul_x1_77": null, "mul_x1_78": null, "mul_x1_79": null, "mul_x1_8": null, "mul_x1_80": null, "mul_x1_81": null, "mul_x1_82": null, "mul_x1_83": null, "mul_x1_84": null, "mul_x1_85": null, "mul_x1_86": null, "mul_x1_87": null, "mul_x1_88": null, "mul_x1_89": null, "mul_x1_9": null, "mul_x1_90": null, "mul_x1_91": null, "mul_x1_92": null, "mul_x1_93": null, "mul_x1_94": null, "mul_x1_95": null, "mul_x1_96": null, "mul_x1_97": null, "mul_x1_98": null, "mul_x1_99": null, "nfs_commit_shares": null, "nfs_copy_entries_cb": null, "nfs_is_shared_cb": null, "sha256_generic": null, "sha512_generic": null, "smb_update_shares": null, "spacemap_check_sm_log_cb": null, "tf_sha256_transform_x64": null, "tf_sha512_transform_x64": null, "vdev_indirect_remap": null, "zfs_ace_fuid_size": null, "zfs_ace_v0_size": null, "zfs_do_allow": null, "zfs_do_bookmark": null, "zfs_do_change_key": null, "zfs_do_channel_program": null, "zfs_do_clone": null, "zfs_do_create": null, "zfs_do_destroy": null, "zfs_do_diff": null, "zfs_do_get": null, "zfs_do_hold": null, "zfs_do_holds": null, "zfs_do_inherit": null, "zfs_do_list": null, "zfs_do_load_key": null, "zfs_do_mount": null, "zfs_do_project": null, "zfs_do_promote": null, "zfs_do_receive": null, "zfs_do_redact": null, "zfs_do_release": null, "zfs_do_rename": null, "zfs_do_rollback": null, "zfs_do_send": null, "zfs_do_set": null, "zfs_do_share": null, "zfs_do_snapshot": null, "zfs_do_unallow": null, "zfs_do_unload_key": null, "zfs_do_unmount": null, "zfs_do_unshare": null, "zfs_do_unzone": null, "zfs_do_upgrade": null, "zfs_do_userspace": null, "zfs_do_version": null, "zfs_do_wait": null, "zfs_do_zone": null, "zfs_fm_close": null, "zfs_ioc_clear": null, "zfs_ioc_clear_fault": null, "zfs_ioc_dataset_list_next": null, "zfs_ioc_destroy": null, "zfs_ioc_diff": null, "zfs_ioc_dsobj_to_dsname": null, "zfs_ioc_error_log": null, "zfs_ioc_events_clear": null, "zfs_ioc_events_next": null, "zfs_ioc_events_seek": null, "zfs_ioc_get_fsacl": null, "zfs_ioc_inherit_prop": null, "zfs_ioc_inject_fault": null, "zfs_ioc_inject_list_next": null, "zfs_ioc_next_obj": null, "zfs_ioc_obj_to_path": null, "zfs_ioc_obj_to_stats": null, "zfs_ioc_objset_recvd_props": null, "zfs_ioc_objset_stats": null, "zfs_ioc_objset_zplprops": null, "zfs_ioc_pool_configs": null, "zfs_ioc_pool_create": null, "zfs_ioc_pool_destroy": null, "zfs_ioc_pool_export": null, "zfs_ioc_pool_freeze": null, "zfs_ioc_pool_get_history": null, "zfs_ioc_pool_get_props": null, "zfs_ioc_pool_import": null, "zfs_ioc_pool_reguid": null, "zfs_ioc_pool_scan": null, "zfs_ioc_pool_set_props": null, "zfs_ioc_pool_stats": null, "zfs_ioc_pool_tryimport": null, "zfs_ioc_pool_upgrade": null, "zfs_ioc_promote": null, "zfs_ioc_recv": null, "zfs_ioc_rename": null, "zfs_ioc_send": null, "zfs_ioc_send_progress": null, "zfs_ioc_set_fsacl": null, "zfs_ioc_set_prop": null, "zfs_ioc_share": null, "zfs_ioc_smb_acl": null, "zfs_ioc_snapshot_list_next": null, "zfs_ioc_space_written": null, "zfs_ioc_tmp_snapshot": null, "zfs_ioc_userspace_many": null, "zfs_ioc_userspace_one": null, "zfs_ioc_userspace_upgrade": null, "zfs_ioc_vdev_add": null, "zfs_ioc_vdev_attach": null, "zfs_ioc_vdev_detach": null, "zfs_ioc_vdev_remove": null, "zfs_ioc_vdev_set_state": null, "zfs_ioc_vdev_setfru": null, "zfs_ioc_vdev_setpath": null, "zfs_ioc_vdev_split": null, "zfs_zstd_decompress": null, "zle_decompress": null } }, "callsite": "object_viewer[ZDB_OT_TYPE(doi.doi_bonus_type)]", "chain_summary": [ { "parent": "", "source_code": [ "static void", "dump_object(objset_t *os, uint64_t object, int verbosity,", " boolean_t *print_header, uint64_t *dnode_slots_used, uint64_t flags)", "{", "\tif (!dnode_held) {", "\t\tobject_viewer[ZDB_OT_TYPE(doi.doi_bonus_type)](os,", "\t\t\t\tobject, bonus, bsize);", "\t} else {", "\t\t(void) printf(\"\\t\\t(bonus encrypted)\\n\");", "\t}", "}" ] }, { "parent": "", "source_code": [ "static object_viewer_t *object_viewer[DMU_OT_NUMTYPES + 1] = {", "\tdump_none,\t\t/* unallocated\t\t\t*/", "\tdump_zap,\t\t/* object directory\t\t*/", "\tdump_uint64,\t\t/* object array\t\t\t*/", "\tdump_none,\t\t/* packed nvlist\t\t*/", "\tdump_packed_nvlist,\t/* packed nvlist size\t\t*/", "\tdump_none,\t\t/* bpobj\t\t\t*/", "\tdump_bpobj,\t\t/* bpobj header\t\t\t*/", "\tdump_none,\t\t/* SPA space map header\t\t*/", "\tdump_none,\t\t/* SPA space map\t\t*/", "\tdump_none,\t\t/* ZIL intent log\t\t*/", "\tdump_dnode,\t\t/* DMU dnode\t\t\t*/", "\tdump_dmu_objset,\t/* DMU objset\t\t\t*/", "\tdump_dsl_dir,\t\t/* DSL directory\t\t*/", "\tdump_zap,\t\t/* DSL directory child map\t*/", "\tdump_zap,\t\t/* DSL dataset snap map\t\t*/", "\tdump_zap,\t\t/* DSL props\t\t\t*/", "\tdump_dsl_dataset,\t/* DSL dataset\t\t\t*/", "\tdump_znode,\t\t/* ZFS znode\t\t\t*/", "\tdump_acl,\t\t/* ZFS V0 ACL\t\t\t*/", "\tdump_uint8,\t\t/* ZFS plain file\t\t*/", "\tdump_zpldir,\t\t/* ZFS directory\t\t*/", "\tdump_zap,\t\t/* ZFS master node\t\t*/", "\tdump_zap,\t\t/* ZFS delete queue\t\t*/", "\tdump_uint8,\t\t/* zvol object\t\t\t*/", "\tdump_zap,\t\t/* zvol prop\t\t\t*/", "\tdump_uint8,\t\t/* other uint8[]\t\t*/", "\tdump_uint64,\t\t/* other uint64[]\t\t*/", "\tdump_zap,\t\t/* other ZAP\t\t\t*/", "\tdump_zap,\t\t/* persistent error log\t\t*/", "\tdump_uint8,\t\t/* SPA history\t\t\t*/", "\tdump_history_offsets,\t/* SPA history offsets\t\t*/", "\tdump_zap,\t\t/* Pool properties\t\t*/", "\tdump_zap,\t\t/* DSL permissions\t\t*/", "\tdump_acl,\t\t/* ZFS ACL\t\t\t*/", "\tdump_uint8,\t\t/* ZFS SYSACL\t\t\t*/", "\tdump_none,\t\t/* FUID nvlist\t\t\t*/", "\tdump_packed_nvlist,\t/* FUID nvlist size\t\t*/", "\tdump_zap,\t\t/* DSL dataset next clones\t*/", "\tdump_zap,\t\t/* DSL scrub queue\t\t*/", "\tdump_zap,\t\t/* ZFS user/group/project used\t*/", "\tdump_zap,\t\t/* ZFS user/group/project quota\t*/", "\tdump_zap,\t\t/* snapshot refcount tags\t*/", "\tdump_ddt_zap,\t\t/* DDT ZAP object\t\t*/", "\tdump_zap,\t\t/* DDT statistics\t\t*/", "\tdump_znode,\t\t/* SA object\t\t\t*/", "\tdump_zap,\t\t/* SA Master Node\t\t*/", "\tdump_sa_attrs,\t\t/* SA attribute registration\t*/", "\tdump_sa_layouts,\t/* SA attribute layouts\t\t*/", "\tdump_zap,\t\t/* DSL scrub translations\t*/", "\tdump_none,\t\t/* fake dedup BP\t\t*/", "\tdump_zap,\t\t/* deadlist\t\t\t*/", "\tdump_none,\t\t/* deadlist hdr\t\t\t*/", "\tdump_zap,\t\t/* dsl clones\t\t\t*/", "\tdump_bpobj_subobjs,\t/* bpobj subobjs\t\t*/", "\tdump_unknown,\t\t/* Unknown type, must be last\t*/", "};" ] } ], "type": "fnptr-global-array" }
null
null
null
null
null
null
{ "callees": { "targets": { "aes_encrypt_block": null, "aes_xor_block": null, "count_unflushed_space_cb": null, "ddt_zap_lookup": null, "dsl_dataset_hold": null, "dsl_dataset_hold_obj_string": null, "dump_acl": null, "dump_bpobj": null, "dump_bpobj_subobjs": null, "dump_ddt_zap": null, "dump_dmu_objset": null, "dump_dnode": null, "dump_dsl_dataset": null, "dump_dsl_dir": null, "dump_history_offsets": null, "dump_none": null, "dump_packed_nvlist": null, "dump_sa_attrs": null, "dump_sa_layouts": null, "dump_uint64": null, "dump_uint8": null, "dump_unknown": null, "dump_zap": null, "dump_znode": null, "dump_zpldir": null, "fletcher_4_scalar_native": null, "fletcher_4_superscalar4_native": null, "fletcher_4_superscalar_native": null, "gzip_decompress": null, "load_unflushed_cb": null, "load_unflushed_svr_segs_cb": null, "log_spacemap_obsolete_stats_cb": null, "lz4_decompress_zfs": null, "lzjb_decompress": null, "mul_x1_0": "", "mul_x1_1": "", "mul_x1_10": "", "mul_x1_100": "", "mul_x1_101": "", "mul_x1_102": "", "mul_x1_103": "", "mul_x1_104": "", "mul_x1_105": "", "mul_x1_106": "", "mul_x1_107": "", "mul_x1_108": "", "mul_x1_109": "", "mul_x1_11": "", "mul_x1_110": "", "mul_x1_111": "", "mul_x1_112": "", "mul_x1_113": "", "mul_x1_114": "", "mul_x1_115": "", "mul_x1_116": "", "mul_x1_117": "", "mul_x1_118": "", "mul_x1_119": "", "mul_x1_12": "", "mul_x1_120": "", "mul_x1_121": "", "mul_x1_122": "", "mul_x1_123": "", "mul_x1_124": "", "mul_x1_125": "", "mul_x1_126": "", "mul_x1_127": "", "mul_x1_128": "", "mul_x1_129": "", "mul_x1_13": "", "mul_x1_130": "", "mul_x1_131": "", "mul_x1_132": "", "mul_x1_133": "", "mul_x1_134": "", "mul_x1_135": "", "mul_x1_136": "", "mul_x1_137": "", "mul_x1_138": "", "mul_x1_139": "", "mul_x1_14": "", "mul_x1_140": "", "mul_x1_141": "", "mul_x1_142": "", "mul_x1_143": "", "mul_x1_144": "", "mul_x1_145": "", "mul_x1_146": "", "mul_x1_147": "", "mul_x1_148": "", "mul_x1_149": "", "mul_x1_15": "", "mul_x1_150": "", "mul_x1_151": "", "mul_x1_152": "", "mul_x1_153": "", "mul_x1_154": "", "mul_x1_155": "", "mul_x1_156": "", "mul_x1_157": "", "mul_x1_158": "", "mul_x1_159": "", "mul_x1_16": "", "mul_x1_160": "", "mul_x1_161": "", "mul_x1_162": "", "mul_x1_163": "", "mul_x1_164": "", "mul_x1_165": "", "mul_x1_166": "", "mul_x1_167": "", "mul_x1_168": "", "mul_x1_169": "", "mul_x1_17": "", "mul_x1_170": "", "mul_x1_171": "", "mul_x1_172": "", "mul_x1_173": "", "mul_x1_174": "", "mul_x1_175": "", "mul_x1_176": "", "mul_x1_177": "", "mul_x1_178": "", "mul_x1_179": "", "mul_x1_18": "", "mul_x1_180": "", "mul_x1_181": "", "mul_x1_182": "", "mul_x1_183": "", "mul_x1_184": "", "mul_x1_185": "", "mul_x1_186": "", "mul_x1_187": "", "mul_x1_188": "", "mul_x1_189": "", "mul_x1_19": "", "mul_x1_190": "", "mul_x1_191": "", "mul_x1_192": "", "mul_x1_193": "", "mul_x1_194": "", "mul_x1_195": "", "mul_x1_196": "", "mul_x1_197": "", "mul_x1_198": "", "mul_x1_199": "", "mul_x1_2": "", "mul_x1_20": "", "mul_x1_200": "", "mul_x1_201": "", "mul_x1_202": "", "mul_x1_203": "", "mul_x1_204": "", "mul_x1_205": "", "mul_x1_206": "", "mul_x1_207": "", "mul_x1_208": "", "mul_x1_209": "", "mul_x1_21": "", "mul_x1_210": "", "mul_x1_211": "", "mul_x1_212": "", "mul_x1_213": "", "mul_x1_214": "", "mul_x1_215": "", "mul_x1_216": "", "mul_x1_217": "", "mul_x1_218": "", "mul_x1_219": "", "mul_x1_22": "", "mul_x1_220": "", "mul_x1_221": "", "mul_x1_222": "", "mul_x1_223": "", "mul_x1_224": "", "mul_x1_225": "", "mul_x1_226": "", "mul_x1_227": "", "mul_x1_228": "", "mul_x1_229": "", "mul_x1_23": "", "mul_x1_230": "", "mul_x1_231": "", "mul_x1_232": "", "mul_x1_233": "", "mul_x1_234": "", "mul_x1_235": "", "mul_x1_236": "", "mul_x1_237": "", "mul_x1_238": "", "mul_x1_239": "", "mul_x1_24": "", "mul_x1_240": "", "mul_x1_241": "", "mul_x1_242": "", "mul_x1_243": "", "mul_x1_244": "", "mul_x1_245": "", "mul_x1_246": "", "mul_x1_247": "", "mul_x1_248": "", "mul_x1_249": "", "mul_x1_25": "", "mul_x1_250": "", "mul_x1_251": "", "mul_x1_252": "", "mul_x1_253": "", "mul_x1_254": "", "mul_x1_255": "", "mul_x1_26": "", "mul_x1_27": "", "mul_x1_28": "", "mul_x1_29": "", "mul_x1_3": "", "mul_x1_30": "", "mul_x1_31": "", "mul_x1_32": "", "mul_x1_33": "", "mul_x1_34": "", "mul_x1_35": "", "mul_x1_36": "", "mul_x1_37": "", "mul_x1_38": "", "mul_x1_39": "", "mul_x1_4": "", "mul_x1_40": "", "mul_x1_41": "", "mul_x1_42": "", "mul_x1_43": "", "mul_x1_44": "", "mul_x1_45": "", "mul_x1_46": "", "mul_x1_47": "", "mul_x1_48": "", "mul_x1_49": "", "mul_x1_5": "", "mul_x1_50": "", "mul_x1_51": "", "mul_x1_52": "", "mul_x1_53": "", "mul_x1_54": "", "mul_x1_55": "", "mul_x1_56": "", "mul_x1_57": "", "mul_x1_58": "", "mul_x1_59": "", "mul_x1_6": "", "mul_x1_60": "", "mul_x1_61": "", "mul_x1_62": "", "mul_x1_63": "", "mul_x1_64": "", "mul_x1_65": "", "mul_x1_66": "", "mul_x1_67": "", "mul_x1_68": "", "mul_x1_69": "", "mul_x1_7": "", "mul_x1_70": "", "mul_x1_71": "", "mul_x1_72": "", "mul_x1_73": "", "mul_x1_74": "", "mul_x1_75": "", "mul_x1_76": "", "mul_x1_77": "", "mul_x1_78": "", "mul_x1_79": "", "mul_x1_8": "", "mul_x1_80": "", "mul_x1_81": "", "mul_x1_82": "", "mul_x1_83": "", "mul_x1_84": "", "mul_x1_85": "", "mul_x1_86": "", "mul_x1_87": "", "mul_x1_88": "", "mul_x1_89": "", "mul_x1_9": "", "mul_x1_90": "", "mul_x1_91": "", "mul_x1_92": "", "mul_x1_93": "", "mul_x1_94": "", "mul_x1_95": "", "mul_x1_96": "", "mul_x1_97": "", "mul_x1_98": "", "mul_x1_99": "", "nfs_commit_shares": null, "nfs_copy_entries_cb": null, "nfs_is_shared_cb": null, "sha256_generic": null, "sha512_generic": null, "smb_update_shares": null, "spacemap_check_sm_log_cb": null, "tf_sha256_transform_x64": null, "tf_sha512_transform_x64": null, "vdev_indirect_remap": null, "zfs_ace_fuid_size": null, "zfs_ace_v0_size": null, "zfs_do_allow": null, "zfs_do_bookmark": null, "zfs_do_change_key": null, "zfs_do_channel_program": null, "zfs_do_clone": null, "zfs_do_create": null, "zfs_do_destroy": null, "zfs_do_diff": null, "zfs_do_get": null, "zfs_do_hold": null, "zfs_do_holds": null, "zfs_do_inherit": null, "zfs_do_list": null, "zfs_do_load_key": null, "zfs_do_mount": null, "zfs_do_project": null, "zfs_do_promote": null, "zfs_do_receive": null, "zfs_do_redact": null, "zfs_do_release": null, "zfs_do_rename": null, "zfs_do_rollback": null, "zfs_do_send": null, "zfs_do_set": null, "zfs_do_share": null, "zfs_do_snapshot": null, "zfs_do_unallow": null, "zfs_do_unload_key": null, "zfs_do_unmount": null, "zfs_do_unshare": null, "zfs_do_unzone": null, "zfs_do_upgrade": null, "zfs_do_userspace": null, "zfs_do_version": null, "zfs_do_wait": null, "zfs_do_zone": null, "zfs_fm_close": null, "zfs_ioc_clear": null, "zfs_ioc_clear_fault": null, "zfs_ioc_dataset_list_next": null, "zfs_ioc_destroy": null, "zfs_ioc_diff": null, "zfs_ioc_dsobj_to_dsname": null, "zfs_ioc_error_log": null, "zfs_ioc_events_clear": null, "zfs_ioc_events_next": null, "zfs_ioc_events_seek": null, "zfs_ioc_get_fsacl": null, "zfs_ioc_inherit_prop": null, "zfs_ioc_inject_fault": null, "zfs_ioc_inject_list_next": null, "zfs_ioc_next_obj": null, "zfs_ioc_obj_to_path": null, "zfs_ioc_obj_to_stats": null, "zfs_ioc_objset_recvd_props": null, "zfs_ioc_objset_stats": null, "zfs_ioc_objset_zplprops": null, "zfs_ioc_pool_configs": null, "zfs_ioc_pool_create": null, "zfs_ioc_pool_destroy": null, "zfs_ioc_pool_export": null, "zfs_ioc_pool_freeze": null, "zfs_ioc_pool_get_history": null, "zfs_ioc_pool_get_props": null, "zfs_ioc_pool_import": null, "zfs_ioc_pool_reguid": null, "zfs_ioc_pool_scan": null, "zfs_ioc_pool_set_props": null, "zfs_ioc_pool_stats": null, "zfs_ioc_pool_tryimport": null, "zfs_ioc_pool_upgrade": null, "zfs_ioc_promote": null, "zfs_ioc_recv": null, "zfs_ioc_rename": null, "zfs_ioc_send": null, "zfs_ioc_send_progress": null, "zfs_ioc_set_fsacl": null, "zfs_ioc_set_prop": null, "zfs_ioc_share": null, "zfs_ioc_smb_acl": null, "zfs_ioc_snapshot_list_next": null, "zfs_ioc_space_written": null, "zfs_ioc_tmp_snapshot": null, "zfs_ioc_userspace_many": null, "zfs_ioc_userspace_one": null, "zfs_ioc_userspace_upgrade": null, "zfs_ioc_vdev_add": null, "zfs_ioc_vdev_attach": null, "zfs_ioc_vdev_detach": null, "zfs_ioc_vdev_remove": null, "zfs_ioc_vdev_set_state": null, "zfs_ioc_vdev_setfru": null, "zfs_ioc_vdev_setpath": null, "zfs_ioc_vdev_split": null, "zfs_zstd_decompress": null, "zle_decompress": null } }, "callsite": "gf_x1_mul_fns[c]", "chain_summary": [ { "parent": "", "source_code": [ "static void", "raidz_rec_pqr_abd(void **t, const size_t tsize, void **c,", " const unsigned * const mul)", "{", "\t...", "\tfor (; x < xend; x += REC_PQR_STRIDE, y += REC_PQR_STRIDE,", "\t z += REC_PQR_STRIDE, p += REC_PQR_STRIDE, q += REC_PQR_STRIDE,", "\t r += REC_PQR_STRIDE) {", "\t\tLOAD(x, REC_PQR_X);", "\t\tLOAD(y, REC_PQR_Y);", "\t\tLOAD(z, REC_PQR_Z);", "\t\tXOR_ACC(p, REC_PQR_X);", "\t\tXOR_ACC(q, REC_PQR_Y);", "\t\tXOR_ACC(r, REC_PQR_Z);", "\t\t/* Save Pxyz and Qxyz */", "\t\tCOPY(REC_PQR_X, REC_PQR_XS);", "\t\tCOPY(REC_PQR_Y, REC_PQR_YS);", "\t\t/* Calc X */", "\t\tMUL(mul[MUL_PQR_XP], REC_PQR_X);\t/* Xp = Pxyz * xp */", "\t\tMUL(mul[MUL_PQR_XQ], REC_PQR_Y);\t/* Xq = Qxyz * xq */", "\t\t...", " }", " ...", "}" ] }, { "parent": "", "source_code": [ "static const mul_fn_ptr_t __attribute__((aligned(256)))", "gf_x1_mul_fns[256] = {", "\tmul_x1_0, mul_x1_1, mul_x1_2, mul_x1_3, mul_x1_4, mul_x1_5,", "\tmul_x1_6, mul_x1_7, mul_x1_8, mul_x1_9, mul_x1_10, mul_x1_11,", "\tmul_x1_12, mul_x1_13, mul_x1_14, mul_x1_15, mul_x1_16, mul_x1_17,", "\tmul_x1_18, mul_x1_19, mul_x1_20, mul_x1_21, mul_x1_22, mul_x1_23,", "\tmul_x1_24, mul_x1_25, mul_x1_26, mul_x1_27, mul_x1_28, mul_x1_29,", "\tmul_x1_30, mul_x1_31, mul_x1_32, mul_x1_33, mul_x1_34, mul_x1_35,", "\tmul_x1_36, mul_x1_37, mul_x1_38, mul_x1_39, mul_x1_40, mul_x1_41,", "\tmul_x1_42, mul_x1_43, mul_x1_44, mul_x1_45, mul_x1_46, mul_x1_47,", "\tmul_x1_48, mul_x1_49, mul_x1_50, mul_x1_51, mul_x1_52, mul_x1_53,", "\tmul_x1_54, mul_x1_55, mul_x1_56, mul_x1_57, mul_x1_58, mul_x1_59,", "\tmul_x1_60, mul_x1_61, mul_x1_62, mul_x1_63, mul_x1_64, mul_x1_65,", "\tmul_x1_66, mul_x1_67, mul_x1_68, mul_x1_69, mul_x1_70, mul_x1_71,", "\tmul_x1_72, mul_x1_73, mul_x1_74, mul_x1_75, mul_x1_76, mul_x1_77,", "\tmul_x1_78, mul_x1_79, mul_x1_80, mul_x1_81, mul_x1_82, mul_x1_83,", "\tmul_x1_84, mul_x1_85, mul_x1_86, mul_x1_87, mul_x1_88, mul_x1_89,", "\tmul_x1_90, mul_x1_91, mul_x1_92, mul_x1_93, mul_x1_94, mul_x1_95,", "\tmul_x1_96, mul_x1_97, mul_x1_98, mul_x1_99, mul_x1_100, mul_x1_101,", "\tmul_x1_102, mul_x1_103, mul_x1_104, mul_x1_105, mul_x1_106, mul_x1_107,", "\tmul_x1_108, mul_x1_109, mul_x1_110, mul_x1_111, mul_x1_112, mul_x1_113,", "\tmul_x1_114, mul_x1_115, mul_x1_116, mul_x1_117, mul_x1_118, mul_x1_119,", "\tmul_x1_120, mul_x1_121, mul_x1_122, mul_x1_123, mul_x1_124, mul_x1_125,", "\tmul_x1_126, mul_x1_127, mul_x1_128, mul_x1_129, mul_x1_130, mul_x1_131,", "\tmul_x1_132, mul_x1_133, mul_x1_134, mul_x1_135, mul_x1_136, mul_x1_137,", "\tmul_x1_138, mul_x1_139, mul_x1_140, mul_x1_141, mul_x1_142, mul_x1_143,", "\tmul_x1_144, mul_x1_145, mul_x1_146, mul_x1_147, mul_x1_148, mul_x1_149,", "\tmul_x1_150, mul_x1_151, mul_x1_152, mul_x1_153, mul_x1_154, mul_x1_155,", "\tmul_x1_156, mul_x1_157, mul_x1_158, mul_x1_159, mul_x1_160, mul_x1_161,", "\tmul_x1_162, mul_x1_163, mul_x1_164, mul_x1_165, mul_x1_166, mul_x1_167,", "\tmul_x1_168, mul_x1_169, mul_x1_170, mul_x1_171, mul_x1_172, mul_x1_173,", "\tmul_x1_174, mul_x1_175, mul_x1_176, mul_x1_177, mul_x1_178, mul_x1_179,", "\tmul_x1_180, mul_x1_181, mul_x1_182, mul_x1_183, mul_x1_184, mul_x1_185,", "\tmul_x1_186, mul_x1_187, mul_x1_188, mul_x1_189, mul_x1_190, mul_x1_191,", "\tmul_x1_192, mul_x1_193, mul_x1_194, mul_x1_195, mul_x1_196, mul_x1_197,", "\tmul_x1_198, mul_x1_199, mul_x1_200, mul_x1_201, mul_x1_202, mul_x1_203,", "\tmul_x1_204, mul_x1_205, mul_x1_206, mul_x1_207, mul_x1_208, mul_x1_209,", "\tmul_x1_210, mul_x1_211, mul_x1_212, mul_x1_213, mul_x1_214, mul_x1_215,", "\tmul_x1_216, mul_x1_217, mul_x1_218, mul_x1_219, mul_x1_220, mul_x1_221,", "\tmul_x1_222, mul_x1_223, mul_x1_224, mul_x1_225, mul_x1_226, mul_x1_227,", "\tmul_x1_228, mul_x1_229, mul_x1_230, mul_x1_231, mul_x1_232, mul_x1_233,", "\tmul_x1_234, mul_x1_235, mul_x1_236, mul_x1_237, mul_x1_238, mul_x1_239,", "\tmul_x1_240, mul_x1_241, mul_x1_242, mul_x1_243, mul_x1_244, mul_x1_245,", "\tmul_x1_246, mul_x1_247, mul_x1_248, mul_x1_249, mul_x1_250, mul_x1_251,", "\tmul_x1_252, mul_x1_253, mul_x1_254, mul_x1_255", "};", "#define\tMUL(c, r...) \t\t\t\t\t\t\t\\", "{\t\t\t\t\t\t\t\t\t\\", "\tswitch (REG_CNT(r)) {\t\t\t\t\t\t\\", "\tcase 2:\t\t\t\t\t\t\t\t\\", "\t\tCOPY(r, _mul_x2_in);\t\t\t\t\t\\", "\t\tgf_x2_mul_fns[c]();\t\t\t\t\t\\", "\t\tCOPY(_mul_x2_acc, r);\t\t\t\t\t\\", "\t\tbreak;\t\t\t\t\t\t\t\\", "\tcase 1:\t\t\t\t\t\t\t\t\\", "\t\tCOPY(r, _mul_x1_in);\t\t\t\t\t\\", "\t\tgf_x1_mul_fns[c]();\t\t\t\t\t\\", "\t\tCOPY(_mul_x1_acc, r);\t\t\t\t\t\\", "\t\tbreak;\t\t\t\t\t\t\t\\", "\tdefault:\t\t\t\t\t\t\t\\", "\t\tVERIFY(0);\t\t\t\t\t\t\\", "\t}\t\t\t\t\t\t\t\t\\", "}" ] } ], "type": "fnptr-global-array" }
null
null
null
null
null
null
{ "callees": { "targets": { "aes_encrypt_block": null, "aes_xor_block": null, "count_unflushed_space_cb": null, "ddt_zap_lookup": null, "dsl_dataset_hold": null, "dsl_dataset_hold_obj_string": null, "dump_acl": null, "dump_bpobj": null, "dump_bpobj_subobjs": null, "dump_ddt_zap": null, "dump_dmu_objset": null, "dump_dnode": null, "dump_dsl_dataset": null, "dump_dsl_dir": null, "dump_history_offsets": null, "dump_none": null, "dump_packed_nvlist": null, "dump_sa_attrs": null, "dump_sa_layouts": null, "dump_uint64": null, "dump_uint8": null, "dump_unknown": null, "dump_zap": null, "dump_znode": null, "dump_zpldir": null, "fletcher_4_scalar_native": null, "fletcher_4_superscalar4_native": null, "fletcher_4_superscalar_native": null, "gzip_decompress": null, "load_unflushed_cb": null, "load_unflushed_svr_segs_cb": null, "log_spacemap_obsolete_stats_cb": null, "lz4_decompress_zfs": null, "lzjb_decompress": null, "mul_x1_0": null, "mul_x1_1": null, "mul_x1_10": null, "mul_x1_100": null, "mul_x1_101": null, "mul_x1_102": null, "mul_x1_103": null, "mul_x1_104": null, "mul_x1_105": null, "mul_x1_106": null, "mul_x1_107": null, "mul_x1_108": null, "mul_x1_109": null, "mul_x1_11": null, "mul_x1_110": null, "mul_x1_111": null, "mul_x1_112": null, "mul_x1_113": null, "mul_x1_114": null, "mul_x1_115": null, "mul_x1_116": null, "mul_x1_117": null, "mul_x1_118": null, "mul_x1_119": null, "mul_x1_12": null, "mul_x1_120": null, "mul_x1_121": null, "mul_x1_122": null, "mul_x1_123": null, "mul_x1_124": null, "mul_x1_125": null, "mul_x1_126": null, "mul_x1_127": null, "mul_x1_128": null, "mul_x1_129": null, "mul_x1_13": null, "mul_x1_130": null, "mul_x1_131": null, "mul_x1_132": null, "mul_x1_133": null, "mul_x1_134": null, "mul_x1_135": null, "mul_x1_136": null, "mul_x1_137": null, "mul_x1_138": null, "mul_x1_139": null, "mul_x1_14": null, "mul_x1_140": null, "mul_x1_141": null, "mul_x1_142": null, "mul_x1_143": null, "mul_x1_144": null, "mul_x1_145": null, "mul_x1_146": null, "mul_x1_147": null, "mul_x1_148": null, "mul_x1_149": null, "mul_x1_15": null, "mul_x1_150": null, "mul_x1_151": null, "mul_x1_152": null, "mul_x1_153": null, "mul_x1_154": null, "mul_x1_155": null, "mul_x1_156": null, "mul_x1_157": null, "mul_x1_158": null, "mul_x1_159": null, "mul_x1_16": null, "mul_x1_160": null, "mul_x1_161": null, "mul_x1_162": null, "mul_x1_163": null, "mul_x1_164": null, "mul_x1_165": null, "mul_x1_166": null, "mul_x1_167": null, "mul_x1_168": null, "mul_x1_169": null, "mul_x1_17": null, "mul_x1_170": null, "mul_x1_171": null, "mul_x1_172": null, "mul_x1_173": null, "mul_x1_174": null, "mul_x1_175": null, "mul_x1_176": null, "mul_x1_177": null, "mul_x1_178": null, "mul_x1_179": null, "mul_x1_18": null, "mul_x1_180": null, "mul_x1_181": null, "mul_x1_182": null, "mul_x1_183": null, "mul_x1_184": null, "mul_x1_185": null, "mul_x1_186": null, "mul_x1_187": null, "mul_x1_188": null, "mul_x1_189": null, "mul_x1_19": null, "mul_x1_190": null, "mul_x1_191": null, "mul_x1_192": null, "mul_x1_193": null, "mul_x1_194": null, "mul_x1_195": null, "mul_x1_196": null, "mul_x1_197": null, "mul_x1_198": null, "mul_x1_199": null, "mul_x1_2": null, "mul_x1_20": null, "mul_x1_200": null, "mul_x1_201": null, "mul_x1_202": null, "mul_x1_203": null, "mul_x1_204": null, "mul_x1_205": null, "mul_x1_206": null, "mul_x1_207": null, "mul_x1_208": null, "mul_x1_209": null, "mul_x1_21": null, "mul_x1_210": null, "mul_x1_211": null, "mul_x1_212": null, "mul_x1_213": null, "mul_x1_214": null, "mul_x1_215": null, "mul_x1_216": null, "mul_x1_217": null, "mul_x1_218": null, "mul_x1_219": null, "mul_x1_22": null, "mul_x1_220": null, "mul_x1_221": null, "mul_x1_222": null, "mul_x1_223": null, "mul_x1_224": null, "mul_x1_225": null, "mul_x1_226": null, "mul_x1_227": null, "mul_x1_228": null, "mul_x1_229": null, "mul_x1_23": null, "mul_x1_230": null, "mul_x1_231": null, "mul_x1_232": null, "mul_x1_233": null, "mul_x1_234": null, "mul_x1_235": null, "mul_x1_236": null, "mul_x1_237": null, "mul_x1_238": null, "mul_x1_239": null, "mul_x1_24": null, "mul_x1_240": null, "mul_x1_241": null, "mul_x1_242": null, "mul_x1_243": null, "mul_x1_244": null, "mul_x1_245": null, "mul_x1_246": null, "mul_x1_247": null, "mul_x1_248": null, "mul_x1_249": null, "mul_x1_25": null, "mul_x1_250": null, "mul_x1_251": null, "mul_x1_252": null, "mul_x1_253": null, "mul_x1_254": null, "mul_x1_255": null, "mul_x1_26": null, "mul_x1_27": null, "mul_x1_28": null, "mul_x1_29": null, "mul_x1_3": null, "mul_x1_30": null, "mul_x1_31": null, "mul_x1_32": null, "mul_x1_33": null, "mul_x1_34": null, "mul_x1_35": null, "mul_x1_36": null, "mul_x1_37": null, "mul_x1_38": null, "mul_x1_39": null, "mul_x1_4": null, "mul_x1_40": null, "mul_x1_41": null, "mul_x1_42": null, "mul_x1_43": null, "mul_x1_44": null, "mul_x1_45": null, "mul_x1_46": null, "mul_x1_47": null, "mul_x1_48": null, "mul_x1_49": null, "mul_x1_5": null, "mul_x1_50": null, "mul_x1_51": null, "mul_x1_52": null, "mul_x1_53": null, "mul_x1_54": null, "mul_x1_55": null, "mul_x1_56": null, "mul_x1_57": null, "mul_x1_58": null, "mul_x1_59": null, "mul_x1_6": null, "mul_x1_60": null, "mul_x1_61": null, "mul_x1_62": null, "mul_x1_63": null, "mul_x1_64": null, "mul_x1_65": null, "mul_x1_66": null, "mul_x1_67": null, "mul_x1_68": null, "mul_x1_69": null, "mul_x1_7": null, "mul_x1_70": null, "mul_x1_71": null, "mul_x1_72": null, "mul_x1_73": null, "mul_x1_74": null, "mul_x1_75": null, "mul_x1_76": null, "mul_x1_77": null, "mul_x1_78": null, "mul_x1_79": null, "mul_x1_8": null, "mul_x1_80": null, "mul_x1_81": null, "mul_x1_82": null, "mul_x1_83": null, "mul_x1_84": null, "mul_x1_85": null, "mul_x1_86": null, "mul_x1_87": null, "mul_x1_88": null, "mul_x1_89": null, "mul_x1_9": null, "mul_x1_90": null, "mul_x1_91": null, "mul_x1_92": null, "mul_x1_93": null, "mul_x1_94": null, "mul_x1_95": null, "mul_x1_96": null, "mul_x1_97": null, "mul_x1_98": null, "mul_x1_99": null, "nfs_commit_shares": null, "nfs_copy_entries_cb": null, "nfs_is_shared_cb": null, "sha256_generic": null, "sha512_generic": null, "smb_update_shares": null, "spacemap_check_sm_log_cb": null, "tf_sha256_transform_x64": null, "tf_sha512_transform_x64": null, "vdev_indirect_remap": null, "zfs_ace_fuid_size": null, "zfs_ace_v0_size": null, "zfs_do_allow": null, "zfs_do_bookmark": null, "zfs_do_change_key": null, "zfs_do_channel_program": null, "zfs_do_clone": null, "zfs_do_create": null, "zfs_do_destroy": null, "zfs_do_diff": null, "zfs_do_get": null, "zfs_do_hold": null, "zfs_do_holds": null, "zfs_do_inherit": null, "zfs_do_list": null, "zfs_do_load_key": null, "zfs_do_mount": null, "zfs_do_project": null, "zfs_do_promote": null, "zfs_do_receive": null, "zfs_do_redact": null, "zfs_do_release": null, "zfs_do_rename": null, "zfs_do_rollback": null, "zfs_do_send": null, "zfs_do_set": null, "zfs_do_share": null, "zfs_do_snapshot": null, "zfs_do_unallow": null, "zfs_do_unload_key": null, "zfs_do_unmount": null, "zfs_do_unshare": null, "zfs_do_unzone": null, "zfs_do_upgrade": null, "zfs_do_userspace": null, "zfs_do_version": null, "zfs_do_wait": null, "zfs_do_zone": null, "zfs_fm_close": "", "zfs_ioc_clear": null, "zfs_ioc_clear_fault": null, "zfs_ioc_dataset_list_next": null, "zfs_ioc_destroy": null, "zfs_ioc_diff": null, "zfs_ioc_dsobj_to_dsname": null, "zfs_ioc_error_log": null, "zfs_ioc_events_clear": null, "zfs_ioc_events_next": null, "zfs_ioc_events_seek": null, "zfs_ioc_get_fsacl": null, "zfs_ioc_inherit_prop": null, "zfs_ioc_inject_fault": null, "zfs_ioc_inject_list_next": null, "zfs_ioc_next_obj": null, "zfs_ioc_obj_to_path": null, "zfs_ioc_obj_to_stats": null, "zfs_ioc_objset_recvd_props": null, "zfs_ioc_objset_stats": null, "zfs_ioc_objset_zplprops": null, "zfs_ioc_pool_configs": null, "zfs_ioc_pool_create": null, "zfs_ioc_pool_destroy": null, "zfs_ioc_pool_export": null, "zfs_ioc_pool_freeze": null, "zfs_ioc_pool_get_history": null, "zfs_ioc_pool_get_props": null, "zfs_ioc_pool_import": null, "zfs_ioc_pool_reguid": null, "zfs_ioc_pool_scan": null, "zfs_ioc_pool_set_props": null, "zfs_ioc_pool_stats": null, "zfs_ioc_pool_tryimport": null, "zfs_ioc_pool_upgrade": null, "zfs_ioc_promote": null, "zfs_ioc_recv": null, "zfs_ioc_rename": null, "zfs_ioc_send": null, "zfs_ioc_send_progress": null, "zfs_ioc_set_fsacl": null, "zfs_ioc_set_prop": null, "zfs_ioc_share": null, "zfs_ioc_smb_acl": null, "zfs_ioc_snapshot_list_next": null, "zfs_ioc_space_written": null, "zfs_ioc_tmp_snapshot": null, "zfs_ioc_userspace_many": null, "zfs_ioc_userspace_one": null, "zfs_ioc_userspace_upgrade": null, "zfs_ioc_vdev_add": null, "zfs_ioc_vdev_attach": null, "zfs_ioc_vdev_detach": null, "zfs_ioc_vdev_remove": null, "zfs_ioc_vdev_set_state": null, "zfs_ioc_vdev_setfru": null, "zfs_ioc_vdev_setpath": null, "zfs_ioc_vdev_split": null, "zfs_zstd_decompress": null, "zle_decompress": null } }, "callsite": "ops->fmdo_close", "chain_summary": [ { "parent": "", "source_code": [ "void fmd_case_close(fmd_hdl_t *hdl, fmd_case_t *cp)", "{", "\tfmd_module_t *mp = (fmd_module_t *)hdl;", "\tconst fmd_hdl_ops_t *ops = mp->mod_info->fmdi_ops;", "\tfmd_hdl_debug(hdl, \"case closed (%s)\", cp->ci_uuid);", "\tif (ops->fmdo_close != NULL)", "\t\tops->fmdo_close(hdl, cp);", "\tmp->mod_stats.ms_caseopen.fmds_value.ui64--;", "\tmp->mod_stats.ms_caseclosed.fmds_value.ui64++;", "\tif (cp->ci_bufptr != NULL && cp->ci_bufsiz > 0)", "\t\tfmd_hdl_free(hdl, cp->ci_bufptr, cp->ci_bufsiz);", "\tfmd_hdl_free(hdl, cp, sizeof (fmd_case_t));", "}" ] }, { "parent": "", "source_code": [ "int fmd_hdl_register(fmd_hdl_t *hdl, int version, const fmd_hdl_info_t *mip)", "{", "\t(void) version;", "\tfmd_module_t *mp = (fmd_module_t *)hdl;", "\tmp->mod_info = mip;", "\tmp->mod_name = mip->fmdi_desc + 4;\t/* drop 'ZFS ' prefix */", "\tmp->mod_spec = NULL;", "\t/* bare minimum module stats */", "\t(void) strcpy(mp->mod_stats.ms_accepted.fmds_name, \"fmd.accepted\");", "\t(void) strcpy(mp->mod_stats.ms_caseopen.fmds_name, \"fmd.caseopen\");", "\t(void) strcpy(mp->mod_stats.ms_casesolved.fmds_name, \"fmd.casesolved\");", "\t(void) strcpy(mp->mod_stats.ms_caseclosed.fmds_name, \"fmd.caseclosed\");", "\tfmd_serd_hash_create(&mp->mod_serds);", "\tfmd_hdl_debug(hdl, \"register module\");", "\treturn (0);", "}" ] }, { "parent": "", "source_code": [ "void _zfs_retire_init(fmd_hdl_t *hdl)", "{", "\tzfs_retire_data_t *zdp;", "\tlibzfs_handle_t *zhdl;", "\tif ((zhdl = libzfs_init()) == NULL)", "\t\treturn;", "\tif (fmd_hdl_register(hdl, FMD_API_VERSION, &fmd_info) != 0) {", "\t\tlibzfs_fini(zhdl);", "\t\treturn;", "\t}", "\tzdp = fmd_hdl_zalloc(hdl, sizeof (zfs_retire_data_t), FMD_SLEEP);", "\tzdp->zrd_hdl = zhdl;", "\tfmd_hdl_setspecific(hdl, zdp);", "}" ] }, { "parent": "", "source_code": [ "static const fmd_hdl_info_t fmd_info = {", "\t\"ZFS Diagnosis Engine\", \"1.0\", &fmd_ops, fmd_props", "};" ] }, { "parent": "", "source_code": [ "static const fmd_hdl_ops_t fmd_ops = {", "\tzfs_fm_recv,\t/* fmdo_recv */", "\tzfs_fm_timeout,\t/* fmdo_timeout */", "\tzfs_fm_close,\t/* fmdo_close */", "\tNULL,\t\t/* fmdo_stats */", "\tzfs_fm_gc,\t/* fmdo_gc */", "};" ] }, { "parent": "", "source_code": [ "void", "fmd_hdl_debug(fmd_hdl_t *hdl, const char *format, ...)", "{", "\tchar message[256];", "\tva_list vargs;", "\tfmd_module_t *mp = (fmd_module_t *)hdl;", "\tva_start(vargs, format);", "\t(void) vsnprintf(message, sizeof (message), format, vargs);", "\tva_end(vargs);", "\t/* prefix message with module name */", "\tzed_log_msg(LOG_INFO, \"%s: %s\", mp->mod_name, message);", "}" ] }, { "parent": "", "source_code": [ "void", "fmd_hdl_free(fmd_hdl_t *hdl, void *data, size_t size)", "{", "\t(void) hdl;", "\tumem_free(data, size);", "}" ] }, { "parent": "", "source_code": [ "void", "fmd_serd_hash_create(fmd_serd_hash_t *shp)", "{", "\tshp->sh_hashlen = FMD_STR_BUCKETS;", "\tshp->sh_hash = calloc(shp->sh_hashlen, sizeof (void *));", "\tshp->sh_count = 0;", "\tif (shp->sh_hash == NULL) {", "\t\tperror(\"calloc\");", "\t\texit(EXIT_FAILURE);", "\t}", "}" ] }, { "parent": "", "source_code": [ "_LIBZFS_H libzfs_handle_t *libzfs_init(void) {", "\t...", "\treturn (hdl);", "}" ] }, { "parent": "", "source_code": [ "static void", "zfs_fm_close(fmd_hdl_t *hdl, fmd_case_t *cs)", "{", "\tzfs_case_t *zcp = fmd_case_getspecific(hdl, cs);", "\tif (zcp->zc_data.zc_serd_checksum[0] != '\\0')", "\t\tfmd_serd_destroy(hdl, zcp->zc_data.zc_serd_checksum);", "\tif (zcp->zc_data.zc_serd_io[0] != '\\0')", "\t\tfmd_serd_destroy(hdl, zcp->zc_data.zc_serd_io);", "\tif (zcp->zc_data.zc_has_remove_timer)", "\t\tfmd_timer_remove(hdl, zcp->zc_remove_timer);", "\tuu_list_remove(zfs_cases, zcp);", "\tuu_list_node_fini(zcp, &zcp->zc_node, zfs_case_pool);", "\tfmd_hdl_free(hdl, zcp, sizeof (zfs_case_t));", "}" ] }, { "parent": "", "source_code": [ "static void", "zfs_fm_gc(fmd_hdl_t *hdl)", "{", "\tzfs_purge_cases(hdl);", "}" ] }, { "parent": "", "source_code": [ "static void", "zfs_fm_timeout(fmd_hdl_t *hdl, id_t id, void *data)", "{", "\tzfs_case_t *zcp = data;", "\tif (id == zcp->zc_remove_timer)", "\t\tzfs_case_solve(hdl, zcp, \"fault.fs.zfs.vdev.io\");", "}" ] }, { "parent": "", "source_code": [ "static void", "zfs_fm_recv(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, const char *class)", "{", "\t...", "}" ] } ], "type": "fnptr-cast" }
null
null
null
null
null
null
{ "callees": { "targets": { "aes_encrypt_block": null, "aes_xor_block": null, "count_unflushed_space_cb": null, "ddt_zap_lookup": null, "dsl_dataset_hold": "", "dsl_dataset_hold_obj_string": "", "dump_acl": null, "dump_bpobj": null, "dump_bpobj_subobjs": null, "dump_ddt_zap": null, "dump_dmu_objset": null, "dump_dnode": null, "dump_dsl_dataset": null, "dump_dsl_dir": null, "dump_history_offsets": null, "dump_none": null, "dump_packed_nvlist": null, "dump_sa_attrs": null, "dump_sa_layouts": null, "dump_uint64": null, "dump_uint8": null, "dump_unknown": null, "dump_zap": null, "dump_znode": null, "dump_zpldir": null, "fletcher_4_scalar_native": null, "fletcher_4_superscalar4_native": null, "fletcher_4_superscalar_native": null, "gzip_decompress": null, "load_unflushed_cb": null, "load_unflushed_svr_segs_cb": null, "log_spacemap_obsolete_stats_cb": null, "lz4_decompress_zfs": null, "lzjb_decompress": null, "mul_x1_0": null, "mul_x1_1": null, "mul_x1_10": null, "mul_x1_100": null, "mul_x1_101": null, "mul_x1_102": null, "mul_x1_103": null, "mul_x1_104": null, "mul_x1_105": null, "mul_x1_106": null, "mul_x1_107": null, "mul_x1_108": null, "mul_x1_109": null, "mul_x1_11": null, "mul_x1_110": null, "mul_x1_111": null, "mul_x1_112": null, "mul_x1_113": null, "mul_x1_114": null, "mul_x1_115": null, "mul_x1_116": null, "mul_x1_117": null, "mul_x1_118": null, "mul_x1_119": null, "mul_x1_12": null, "mul_x1_120": null, "mul_x1_121": null, "mul_x1_122": null, "mul_x1_123": null, "mul_x1_124": null, "mul_x1_125": null, "mul_x1_126": null, "mul_x1_127": null, "mul_x1_128": null, "mul_x1_129": null, "mul_x1_13": null, "mul_x1_130": null, "mul_x1_131": null, "mul_x1_132": null, "mul_x1_133": null, "mul_x1_134": null, "mul_x1_135": null, "mul_x1_136": null, "mul_x1_137": null, "mul_x1_138": null, "mul_x1_139": null, "mul_x1_14": null, "mul_x1_140": null, "mul_x1_141": null, "mul_x1_142": null, "mul_x1_143": null, "mul_x1_144": null, "mul_x1_145": null, "mul_x1_146": null, "mul_x1_147": null, "mul_x1_148": null, "mul_x1_149": null, "mul_x1_15": null, "mul_x1_150": null, "mul_x1_151": null, "mul_x1_152": null, "mul_x1_153": null, "mul_x1_154": null, "mul_x1_155": null, "mul_x1_156": null, "mul_x1_157": null, "mul_x1_158": null, "mul_x1_159": null, "mul_x1_16": null, "mul_x1_160": null, "mul_x1_161": null, "mul_x1_162": null, "mul_x1_163": null, "mul_x1_164": null, "mul_x1_165": null, "mul_x1_166": null, "mul_x1_167": null, "mul_x1_168": null, "mul_x1_169": null, "mul_x1_17": null, "mul_x1_170": null, "mul_x1_171": null, "mul_x1_172": null, "mul_x1_173": null, "mul_x1_174": null, "mul_x1_175": null, "mul_x1_176": null, "mul_x1_177": null, "mul_x1_178": null, "mul_x1_179": null, "mul_x1_18": null, "mul_x1_180": null, "mul_x1_181": null, "mul_x1_182": null, "mul_x1_183": null, "mul_x1_184": null, "mul_x1_185": null, "mul_x1_186": null, "mul_x1_187": null, "mul_x1_188": null, "mul_x1_189": null, "mul_x1_19": null, "mul_x1_190": null, "mul_x1_191": null, "mul_x1_192": null, "mul_x1_193": null, "mul_x1_194": null, "mul_x1_195": null, "mul_x1_196": null, "mul_x1_197": null, "mul_x1_198": null, "mul_x1_199": null, "mul_x1_2": null, "mul_x1_20": null, "mul_x1_200": null, "mul_x1_201": null, "mul_x1_202": null, "mul_x1_203": null, "mul_x1_204": null, "mul_x1_205": null, "mul_x1_206": null, "mul_x1_207": null, "mul_x1_208": null, "mul_x1_209": null, "mul_x1_21": null, "mul_x1_210": null, "mul_x1_211": null, "mul_x1_212": null, "mul_x1_213": null, "mul_x1_214": null, "mul_x1_215": null, "mul_x1_216": null, "mul_x1_217": null, "mul_x1_218": null, "mul_x1_219": null, "mul_x1_22": null, "mul_x1_220": null, "mul_x1_221": null, "mul_x1_222": null, "mul_x1_223": null, "mul_x1_224": null, "mul_x1_225": null, "mul_x1_226": null, "mul_x1_227": null, "mul_x1_228": null, "mul_x1_229": null, "mul_x1_23": null, "mul_x1_230": null, "mul_x1_231": null, "mul_x1_232": null, "mul_x1_233": null, "mul_x1_234": null, "mul_x1_235": null, "mul_x1_236": null, "mul_x1_237": null, "mul_x1_238": null, "mul_x1_239": null, "mul_x1_24": null, "mul_x1_240": null, "mul_x1_241": null, "mul_x1_242": null, "mul_x1_243": null, "mul_x1_244": null, "mul_x1_245": null, "mul_x1_246": null, "mul_x1_247": null, "mul_x1_248": null, "mul_x1_249": null, "mul_x1_25": null, "mul_x1_250": null, "mul_x1_251": null, "mul_x1_252": null, "mul_x1_253": null, "mul_x1_254": null, "mul_x1_255": null, "mul_x1_26": null, "mul_x1_27": null, "mul_x1_28": null, "mul_x1_29": null, "mul_x1_3": null, "mul_x1_30": null, "mul_x1_31": null, "mul_x1_32": null, "mul_x1_33": null, "mul_x1_34": null, "mul_x1_35": null, "mul_x1_36": null, "mul_x1_37": null, "mul_x1_38": null, "mul_x1_39": null, "mul_x1_4": null, "mul_x1_40": null, "mul_x1_41": null, "mul_x1_42": null, "mul_x1_43": null, "mul_x1_44": null, "mul_x1_45": null, "mul_x1_46": null, "mul_x1_47": null, "mul_x1_48": null, "mul_x1_49": null, "mul_x1_5": null, "mul_x1_50": null, "mul_x1_51": null, "mul_x1_52": null, "mul_x1_53": null, "mul_x1_54": null, "mul_x1_55": null, "mul_x1_56": null, "mul_x1_57": null, "mul_x1_58": null, "mul_x1_59": null, "mul_x1_6": null, "mul_x1_60": null, "mul_x1_61": null, "mul_x1_62": null, "mul_x1_63": null, "mul_x1_64": null, "mul_x1_65": null, "mul_x1_66": null, "mul_x1_67": null, "mul_x1_68": null, "mul_x1_69": null, "mul_x1_7": null, "mul_x1_70": null, "mul_x1_71": null, "mul_x1_72": null, "mul_x1_73": null, "mul_x1_74": null, "mul_x1_75": null, "mul_x1_76": null, "mul_x1_77": null, "mul_x1_78": null, "mul_x1_79": null, "mul_x1_8": null, "mul_x1_80": null, "mul_x1_81": null, "mul_x1_82": null, "mul_x1_83": null, "mul_x1_84": null, "mul_x1_85": null, "mul_x1_86": null, "mul_x1_87": null, "mul_x1_88": null, "mul_x1_89": null, "mul_x1_9": null, "mul_x1_90": null, "mul_x1_91": null, "mul_x1_92": null, "mul_x1_93": null, "mul_x1_94": null, "mul_x1_95": null, "mul_x1_96": null, "mul_x1_97": null, "mul_x1_98": null, "mul_x1_99": null, "nfs_commit_shares": null, "nfs_copy_entries_cb": null, "nfs_is_shared_cb": null, "sha256_generic": null, "sha512_generic": null, "smb_update_shares": null, "spacemap_check_sm_log_cb": null, "tf_sha256_transform_x64": null, "tf_sha512_transform_x64": null, "vdev_indirect_remap": null, "zfs_ace_fuid_size": null, "zfs_ace_v0_size": null, "zfs_do_allow": null, "zfs_do_bookmark": null, "zfs_do_change_key": null, "zfs_do_channel_program": null, "zfs_do_clone": null, "zfs_do_create": null, "zfs_do_destroy": null, "zfs_do_diff": null, "zfs_do_get": null, "zfs_do_hold": null, "zfs_do_holds": null, "zfs_do_inherit": null, "zfs_do_list": null, "zfs_do_load_key": null, "zfs_do_mount": null, "zfs_do_project": null, "zfs_do_promote": null, "zfs_do_receive": null, "zfs_do_redact": null, "zfs_do_release": null, "zfs_do_rename": null, "zfs_do_rollback": null, "zfs_do_send": null, "zfs_do_set": null, "zfs_do_share": null, "zfs_do_snapshot": null, "zfs_do_unallow": null, "zfs_do_unload_key": null, "zfs_do_unmount": null, "zfs_do_unshare": null, "zfs_do_unzone": null, "zfs_do_upgrade": null, "zfs_do_userspace": null, "zfs_do_version": null, "zfs_do_wait": null, "zfs_do_zone": null, "zfs_fm_close": null, "zfs_ioc_clear": null, "zfs_ioc_clear_fault": null, "zfs_ioc_dataset_list_next": null, "zfs_ioc_destroy": null, "zfs_ioc_diff": null, "zfs_ioc_dsobj_to_dsname": null, "zfs_ioc_error_log": null, "zfs_ioc_events_clear": null, "zfs_ioc_events_next": null, "zfs_ioc_events_seek": null, "zfs_ioc_get_fsacl": null, "zfs_ioc_inherit_prop": null, "zfs_ioc_inject_fault": null, "zfs_ioc_inject_list_next": null, "zfs_ioc_next_obj": null, "zfs_ioc_obj_to_path": null, "zfs_ioc_obj_to_stats": null, "zfs_ioc_objset_recvd_props": null, "zfs_ioc_objset_stats": null, "zfs_ioc_objset_zplprops": null, "zfs_ioc_pool_configs": null, "zfs_ioc_pool_create": null, "zfs_ioc_pool_destroy": null, "zfs_ioc_pool_export": null, "zfs_ioc_pool_freeze": null, "zfs_ioc_pool_get_history": null, "zfs_ioc_pool_get_props": null, "zfs_ioc_pool_import": null, "zfs_ioc_pool_reguid": null, "zfs_ioc_pool_scan": null, "zfs_ioc_pool_set_props": null, "zfs_ioc_pool_stats": null, "zfs_ioc_pool_tryimport": null, "zfs_ioc_pool_upgrade": null, "zfs_ioc_promote": null, "zfs_ioc_recv": null, "zfs_ioc_rename": null, "zfs_ioc_send": null, "zfs_ioc_send_progress": null, "zfs_ioc_set_fsacl": null, "zfs_ioc_set_prop": null, "zfs_ioc_share": null, "zfs_ioc_smb_acl": null, "zfs_ioc_snapshot_list_next": null, "zfs_ioc_space_written": null, "zfs_ioc_tmp_snapshot": null, "zfs_ioc_userspace_many": null, "zfs_ioc_userspace_one": null, "zfs_ioc_userspace_upgrade": null, "zfs_ioc_vdev_add": null, "zfs_ioc_vdev_attach": null, "zfs_ioc_vdev_detach": null, "zfs_ioc_vdev_remove": null, "zfs_ioc_vdev_set_state": null, "zfs_ioc_vdev_setfru": null, "zfs_ioc_vdev_setpath": null, "zfs_ioc_vdev_split": null, "zfs_zstd_decompress": null, "zle_decompress": null } }, "callsite": "holdfunc", "chain_summary": [ { "parent": "", "source_code": [ "static void", "dsl_dataset_user_release_sync(void *arg, dmu_tx_t *tx)", "{", "\tdsl_dataset_user_release_arg_t *ddura = arg;", "\tdsl_holdfunc_t *holdfunc = ddura->ddura_holdfunc;", "\tdsl_pool_t *dp = dmu_tx_pool(tx);", "\tASSERT(RRW_WRITE_HELD(&dp->dp_config_rwlock));", "\tfor (nvpair_t *pair = nvlist_next_nvpair(ddura->ddura_chkholds, NULL);", "\t pair != NULL; pair = nvlist_next_nvpair(ddura->ddura_chkholds,", "\t pair)) {", "\t\tdsl_dataset_t *ds;", "\t\tconst char *name = nvpair_name(pair);", "\t\tVERIFY0(holdfunc(dp, name, FTAG, &ds));", "\t\tdsl_dataset_user_release_sync_one(ds,", "\t\t fnvpair_value_nvlist(pair), tx);", "\t\tif (nvlist_exists(ddura->ddura_todelete, name)) {", "\t\t\tASSERT(ds->ds_userrefs == 0 &&", "\t\t\t dsl_dataset_phys(ds)->ds_num_children == 1 &&", "\t\t\t DS_IS_DEFER_DESTROY(ds));", "\t\t\tdsl_destroy_snapshot_sync_impl(ds, B_FALSE, tx);", "\t\t}", "\t\tdsl_dataset_rele(ds, FTAG);", "\t}", "}" ] }, { "parent": "", "source_code": [ "static int", "dsl_dataset_user_release_impl(nvlist_t *holds, nvlist_t *errlist,", " dsl_pool_t *tmpdp)", "{", "\tdsl_dataset_user_release_arg_t ddura;", "\tnvpair_t *pair;", "\tconst char *pool;", "\tint error;", "\tpair = nvlist_next_nvpair(holds, NULL);", "\tif (pair == NULL)", "\t\treturn (0);", "\t/*", "\t * The release may cause snapshots to be destroyed; make sure they", "\t * are not mounted.", "\t */", "\tif (tmpdp != NULL) {", "\t\t/* Temporary holds are specified by dsobj string. */", "\t\tddura.ddura_holdfunc = dsl_dataset_hold_obj_string;", "\t\tpool = spa_name(tmpdp->dp_spa);", " ...", "\t} else {", "\t\t/* Non-temporary holds are specified by name. */", "\t\tddura.ddura_holdfunc = dsl_dataset_hold;", "\t\tpool = nvpair_name(pair);", " ...", "\t}", "\tddura.ddura_holds = holds;", "\tddura.ddura_errlist = errlist;", "\tVERIFY0(nvlist_alloc(&ddura.ddura_todelete, NV_UNIQUE_NAME,", "\t KM_SLEEP));", "\tVERIFY0(nvlist_alloc(&ddura.ddura_chkholds, NV_UNIQUE_NAME,", "\t KM_SLEEP));", "\terror = dsl_sync_task(pool, dsl_dataset_user_release_check,", "\t dsl_dataset_user_release_sync, &ddura, 0,", "\t ZFS_SPACE_CHECK_EXTRA_RESERVED);", "\tfnvlist_free(ddura.ddura_todelete);", "\tfnvlist_free(ddura.ddura_chkholds);", "\treturn (error);", "}" ] }, { "parent": "", "source_code": [ "int", "dsl_sync_task(const char *pool, dsl_checkfunc_t *checkfunc,", " dsl_syncfunc_t *syncfunc, void *arg,", " int blocks_modified, zfs_space_check_t space_check)", "{", "\treturn (dsl_sync_task_common(pool, checkfunc, syncfunc, NULL, arg,", "\t blocks_modified, space_check, B_FALSE));", "}" ] }, { "parent": "", "source_code": [ "static int", "dsl_sync_task_common(const char *pool, dsl_checkfunc_t *checkfunc,", " dsl_syncfunc_t *syncfunc, dsl_sigfunc_t *sigfunc, void *arg,", " int blocks_modified, zfs_space_check_t space_check, boolean_t early)", "{", "\t...", "\terr = spa_open(pool, &spa, FTAG);", "\tif (err != 0)", "\t\treturn (err);", "\tdp = spa_get_dsl(spa);", "top:", "\ttx = dmu_tx_create_dd(dp->dp_mos_dir);", "\tVERIFY0(dmu_tx_assign(tx, TXG_WAIT));", "\tdst.dst_pool = dp;", "\tdst.dst_txg = dmu_tx_get_txg(tx);", "\tdst.dst_space = blocks_modified << DST_AVG_BLKSHIFT;", "\tdst.dst_space_check = space_check;", "\tdst.dst_checkfunc = checkfunc != NULL ? checkfunc : dsl_null_checkfunc;", "\tdst.dst_syncfunc = syncfunc;", "\tdst.dst_arg = arg;", "\tdst.dst_error = 0;", "\tdst.dst_nowaiter = B_FALSE;", "\t...", "\tspa_close(spa, FTAG);", "\treturn (dst.dst_error);", "}" ] }, { "parent": "", "source_code": [ "int", "spa_open(const char *name, spa_t **spapp, const void *tag)", "{", "\treturn (spa_open_common(name, spapp, tag, NULL, NULL));", "}" ] }, { "parent": "", "source_code": [ "static int", "spa_open_common(const char *pool, spa_t **spapp, const void *tag,", " nvlist_t *nvpolicy, nvlist_t **config)", "{", "\t...", "\tif (spa->spa_state == POOL_STATE_UNINITIALIZED) {", "\t\tzpool_load_policy_t policy;", "\t\tfirstopen = B_TRUE;", "\t\t...", "\t\tif (state != SPA_LOAD_RECOVER)", "\t\t\tspa->spa_last_ubsync_txg = spa->spa_load_txg = 0;", "\t\tspa->spa_config_source = SPA_CONFIG_SRC_CACHEFILE;", "\t\tzfs_dbgmsg(\"spa_open_common: opening %s\", pool);", "\t\terror = spa_load_best(spa, state, policy.zlp_txg,", "\t\t policy.zlp_rewind);", "\t\tif (error == EBADF) {", "\t\t\t...", "\t\t\treturn (SET_ERROR(ENOENT));", "\t\t}", "\t}", "\treturn (0);", "}" ] }, { "parent": "", "source_code": [ "static int", "spa_load_best(spa_t *spa, spa_load_state_t state, uint64_t max_request,", " int rewind_flags)", "{", "\tnvlist_t *loadinfo = NULL;", "\tnvlist_t *config = NULL;", "\tint load_error, rewind_error;", "\tuint64_t safe_rewind_txg;", "\tuint64_t min_txg;", "\t...", "\tload_error = rewind_error = spa_load(spa, state, SPA_IMPORT_EXISTING);", "\tif (load_error == 0)", "\t\treturn (0);", "\t...", "}" ] }, { "parent": "", "source_code": [ "static int", "spa_load(spa_t *spa, spa_load_state_t state, spa_import_type_t type)", "{", "\tconst char *ereport = FM_EREPORT_ZFS_POOL;", "\tint error;", "\tspa->spa_load_state = state;", "\t(void) spa_import_progress_set_state(spa_guid(spa),", "\t spa_load_state(spa));", "\tgethrestime(&spa->spa_loaded_ts);", "\terror = spa_load_impl(spa, type, &ereport);", "\t...", "\t(void) spa_import_progress_set_state(spa_guid(spa),", "\t spa_load_state(spa));", "\treturn (error);", "}" ] }, { "parent": "", "source_code": [ "static int spa_load_impl(spa_t *spa, spa_import_type_t type, const char **ereport)", "{", "\tint error = 0;", "\tboolean_t missing_feat_write = B_FALSE;", "\tboolean_t checkpoint_rewind =", "\t (spa->spa_import_flags & ZFS_IMPORT_CHECKPOINT);", "\tboolean_t update_config_cache = B_FALSE;", "\t...", "\tif (spa_writeable(spa) && (spa->spa_load_state == SPA_LOAD_RECOVER ||", "\t spa->spa_load_max_txg == UINT64_MAX)) {", "\t\tuint64_t config_cache_txg = spa->spa_config_txg;", "\t\t...", "\t\t/*", "\t\t * Traverse the ZIL and claim all blocks.", "\t\t */", "\t\tspa_ld_claim_log_blocks(spa);", "\t\t/*", "\t\t * Kick-off the syncing thread.", "\t\t */", "\t\tspa->spa_sync_on = B_TRUE;", "\t\ttxg_sync_start(spa->spa_dsl_pool);", "\t\tmmp_thread_start(spa);", "\t\t...", " }", "\tspa_load_note(spa, \"LOADED\");", "\treturn (0);", "}" ] }, { "parent": "", "source_code": [ "void", "txg_sync_start(dsl_pool_t *dp)", "{", "\t...", "\ttx->tx_quiesce_thread = thread_create(NULL, 0, txg_quiesce_thread,", "\t dp, 0, &p0, TS_RUN, defclsyspri);", "\ttx->tx_sync_thread = thread_create(NULL, 0, txg_sync_thread,", "\t dp, 0, &p0, TS_RUN, defclsyspri);", "\tmutex_exit(&tx->tx_sync_lock);", "}" ] }, { "parent": "", "source_code": [ "static __attribute__((noreturn)) void", "txg_sync_thread(void *arg)", "{", "\tdsl_pool_t *dp = arg;", "\tspa_t *spa = dp->dp_spa;", "\ttx_state_t *tx = &dp->dp_tx;", "\tcallb_cpr_t cpr;", "\tclock_t start, delta;", "\t(void) spl_fstrans_mark();", "\ttxg_thread_enter(tx, &cpr);", "\tstart = delta = 0;", "\tfor (;;) {", "\t\t...", "\t\ttxg_stat_t *ts = spa_txg_history_init_io(spa, txg, dp);", "\t\tstart = ddi_get_lbolt();", "\t\tspa_sync(spa, txg);", "\t\t...", "\t\ttxg_dispatch_callbacks(dp, txg);", "\t}", "}" ] }, { "parent": "", "source_code": [ "void", "spa_sync(spa_t *spa, uint64_t txg)", "{", "\tvdev_t *vd = NULL;", "\tVERIFY(spa_writeable(spa));", "\t...", "\tspa_sync_adjust_vdev_max_queue_depth(spa);", "\tspa_sync_condense_indirect(spa, tx);", "\tspa_sync_iterate_to_convergence(spa, tx);", " ...", "\tdsl_pool_sync_done(dp, txg);", "\t...", "\tspa->spa_ubsync = spa->spa_uberblock;", "\tspa_config_exit(spa, SCL_CONFIG, FTAG);", "\tspa_handle_ignored_writes(spa);", "\tspa_async_dispatch(spa);", "}" ] }, { "parent": "", "source_code": [ "static void", "spa_sync_iterate_to_convergence(spa_t *spa, dmu_tx_t *tx)", "{", " ...", "\tdo {", "\t\tint pass = ++spa->spa_sync_pass;", " ...", "\t\tdsl_pool_sync(dp, txg);", "\t\t...", "\t\tspa_sync_deferred_frees(spa, tx);", "\t} while (dmu_objset_is_dirty(mos, txg));", "}" ] }, { "parent": "", "source_code": [ "void", "dsl_pool_sync(dsl_pool_t *dp, uint64_t txg)", "{", "\t...", "\tlist_create(&synced_datasets, sizeof (dsl_dataset_t),", "\t offsetof(dsl_dataset_t, ds_synced_link));", "\ttx = dmu_tx_create_assigned(dp, txg);", "\t...", "\tif (!txg_list_empty(&dp->dp_sync_tasks, txg)) {", "\t\tdsl_sync_task_t *dst;", "\t\tASSERT3U(spa_sync_pass(dp->dp_spa), ==, 1);", "\t\twhile ((dst =", "\t\t txg_list_remove(&dp->dp_early_sync_tasks, txg)) != NULL) {", "\t\t\tASSERT(dsl_early_sync_task_verify(dp, txg));", "\t\t\tdsl_sync_task_sync(dst, tx);", "\t\t}", "\t}", "\tdmu_tx_commit(tx);", "\tDTRACE_PROBE2(dsl_pool_sync__done, dsl_pool_t *dp, dp, uint64_t, txg);", "}" ] }, { "parent": "", "source_code": [ "void", "dsl_sync_task_sync(dsl_sync_task_t *dst, dmu_tx_t *tx)", "{", "\t...", "\trrw_enter(&dp->dp_config_rwlock, RW_WRITER, FTAG);", "\tdst->dst_error = dst->dst_checkfunc(dst->dst_arg, tx);", "\tif (dst->dst_error == 0)", "\t\tdst->dst_syncfunc(dst->dst_arg, tx);", "\trrw_exit(&dp->dp_config_rwlock, FTAG);", "\tif (dst->dst_nowaiter)", "\t\tkmem_free(dst, sizeof (*dst));", "}" ] } ], "type": "fnptr-cast" }
null
null
null
null
null
null
{ "callees": { "targets": { "aes_encrypt_block": null, "aes_xor_block": null, "count_unflushed_space_cb": null, "ddt_zap_lookup": null, "dsl_dataset_hold": null, "dsl_dataset_hold_obj_string": null, "dump_acl": null, "dump_bpobj": null, "dump_bpobj_subobjs": null, "dump_ddt_zap": null, "dump_dmu_objset": null, "dump_dnode": null, "dump_dsl_dataset": null, "dump_dsl_dir": null, "dump_history_offsets": null, "dump_none": null, "dump_packed_nvlist": null, "dump_sa_attrs": null, "dump_sa_layouts": null, "dump_uint64": null, "dump_uint8": null, "dump_unknown": null, "dump_zap": null, "dump_znode": null, "dump_zpldir": null, "fletcher_4_scalar_native": "", "fletcher_4_superscalar4_native": "", "fletcher_4_superscalar_native": "", "gzip_decompress": null, "load_unflushed_cb": null, "load_unflushed_svr_segs_cb": null, "log_spacemap_obsolete_stats_cb": null, "lz4_decompress_zfs": null, "lzjb_decompress": null, "mul_x1_0": null, "mul_x1_1": null, "mul_x1_10": null, "mul_x1_100": null, "mul_x1_101": null, "mul_x1_102": null, "mul_x1_103": null, "mul_x1_104": null, "mul_x1_105": null, "mul_x1_106": null, "mul_x1_107": null, "mul_x1_108": null, "mul_x1_109": null, "mul_x1_11": null, "mul_x1_110": null, "mul_x1_111": null, "mul_x1_112": null, "mul_x1_113": null, "mul_x1_114": null, "mul_x1_115": null, "mul_x1_116": null, "mul_x1_117": null, "mul_x1_118": null, "mul_x1_119": null, "mul_x1_12": null, "mul_x1_120": null, "mul_x1_121": null, "mul_x1_122": null, "mul_x1_123": null, "mul_x1_124": null, "mul_x1_125": null, "mul_x1_126": null, "mul_x1_127": null, "mul_x1_128": null, "mul_x1_129": null, "mul_x1_13": null, "mul_x1_130": null, "mul_x1_131": null, "mul_x1_132": null, "mul_x1_133": null, "mul_x1_134": null, "mul_x1_135": null, "mul_x1_136": null, "mul_x1_137": null, "mul_x1_138": null, "mul_x1_139": null, "mul_x1_14": null, "mul_x1_140": null, "mul_x1_141": null, "mul_x1_142": null, "mul_x1_143": null, "mul_x1_144": null, "mul_x1_145": null, "mul_x1_146": null, "mul_x1_147": null, "mul_x1_148": null, "mul_x1_149": null, "mul_x1_15": null, "mul_x1_150": null, "mul_x1_151": null, "mul_x1_152": null, "mul_x1_153": null, "mul_x1_154": null, "mul_x1_155": null, "mul_x1_156": null, "mul_x1_157": null, "mul_x1_158": null, "mul_x1_159": null, "mul_x1_16": null, "mul_x1_160": null, "mul_x1_161": null, "mul_x1_162": null, "mul_x1_163": null, "mul_x1_164": null, "mul_x1_165": null, "mul_x1_166": null, "mul_x1_167": null, "mul_x1_168": null, "mul_x1_169": null, "mul_x1_17": null, "mul_x1_170": null, "mul_x1_171": null, "mul_x1_172": null, "mul_x1_173": null, "mul_x1_174": null, "mul_x1_175": null, "mul_x1_176": null, "mul_x1_177": null, "mul_x1_178": null, "mul_x1_179": null, "mul_x1_18": null, "mul_x1_180": null, "mul_x1_181": null, "mul_x1_182": null, "mul_x1_183": null, "mul_x1_184": null, "mul_x1_185": null, "mul_x1_186": null, "mul_x1_187": null, "mul_x1_188": null, "mul_x1_189": null, "mul_x1_19": null, "mul_x1_190": null, "mul_x1_191": null, "mul_x1_192": null, "mul_x1_193": null, "mul_x1_194": null, "mul_x1_195": null, "mul_x1_196": null, "mul_x1_197": null, "mul_x1_198": null, "mul_x1_199": null, "mul_x1_2": null, "mul_x1_20": null, "mul_x1_200": null, "mul_x1_201": null, "mul_x1_202": null, "mul_x1_203": null, "mul_x1_204": null, "mul_x1_205": null, "mul_x1_206": null, "mul_x1_207": null, "mul_x1_208": null, "mul_x1_209": null, "mul_x1_21": null, "mul_x1_210": null, "mul_x1_211": null, "mul_x1_212": null, "mul_x1_213": null, "mul_x1_214": null, "mul_x1_215": null, "mul_x1_216": null, "mul_x1_217": null, "mul_x1_218": null, "mul_x1_219": null, "mul_x1_22": null, "mul_x1_220": null, "mul_x1_221": null, "mul_x1_222": null, "mul_x1_223": null, "mul_x1_224": null, "mul_x1_225": null, "mul_x1_226": null, "mul_x1_227": null, "mul_x1_228": null, "mul_x1_229": null, "mul_x1_23": null, "mul_x1_230": null, "mul_x1_231": null, "mul_x1_232": null, "mul_x1_233": null, "mul_x1_234": null, "mul_x1_235": null, "mul_x1_236": null, "mul_x1_237": null, "mul_x1_238": null, "mul_x1_239": null, "mul_x1_24": null, "mul_x1_240": null, "mul_x1_241": null, "mul_x1_242": null, "mul_x1_243": null, "mul_x1_244": null, "mul_x1_245": null, "mul_x1_246": null, "mul_x1_247": null, "mul_x1_248": null, "mul_x1_249": null, "mul_x1_25": null, "mul_x1_250": null, "mul_x1_251": null, "mul_x1_252": null, "mul_x1_253": null, "mul_x1_254": null, "mul_x1_255": null, "mul_x1_26": null, "mul_x1_27": null, "mul_x1_28": null, "mul_x1_29": null, "mul_x1_3": null, "mul_x1_30": null, "mul_x1_31": null, "mul_x1_32": null, "mul_x1_33": null, "mul_x1_34": null, "mul_x1_35": null, "mul_x1_36": null, "mul_x1_37": null, "mul_x1_38": null, "mul_x1_39": null, "mul_x1_4": null, "mul_x1_40": null, "mul_x1_41": null, "mul_x1_42": null, "mul_x1_43": null, "mul_x1_44": null, "mul_x1_45": null, "mul_x1_46": null, "mul_x1_47": null, "mul_x1_48": null, "mul_x1_49": null, "mul_x1_5": null, "mul_x1_50": null, "mul_x1_51": null, "mul_x1_52": null, "mul_x1_53": null, "mul_x1_54": null, "mul_x1_55": null, "mul_x1_56": null, "mul_x1_57": null, "mul_x1_58": null, "mul_x1_59": null, "mul_x1_6": null, "mul_x1_60": null, "mul_x1_61": null, "mul_x1_62": null, "mul_x1_63": null, "mul_x1_64": null, "mul_x1_65": null, "mul_x1_66": null, "mul_x1_67": null, "mul_x1_68": null, "mul_x1_69": null, "mul_x1_7": null, "mul_x1_70": null, "mul_x1_71": null, "mul_x1_72": null, "mul_x1_73": null, "mul_x1_74": null, "mul_x1_75": null, "mul_x1_76": null, "mul_x1_77": null, "mul_x1_78": null, "mul_x1_79": null, "mul_x1_8": null, "mul_x1_80": null, "mul_x1_81": null, "mul_x1_82": null, "mul_x1_83": null, "mul_x1_84": null, "mul_x1_85": null, "mul_x1_86": null, "mul_x1_87": null, "mul_x1_88": null, "mul_x1_89": null, "mul_x1_9": null, "mul_x1_90": null, "mul_x1_91": null, "mul_x1_92": null, "mul_x1_93": null, "mul_x1_94": null, "mul_x1_95": null, "mul_x1_96": null, "mul_x1_97": null, "mul_x1_98": null, "mul_x1_99": null, "nfs_commit_shares": null, "nfs_copy_entries_cb": null, "nfs_is_shared_cb": null, "sha256_generic": null, "sha512_generic": null, "smb_update_shares": null, "spacemap_check_sm_log_cb": null, "tf_sha256_transform_x64": null, "tf_sha512_transform_x64": null, "vdev_indirect_remap": null, "zfs_ace_fuid_size": null, "zfs_ace_v0_size": null, "zfs_do_allow": null, "zfs_do_bookmark": null, "zfs_do_change_key": null, "zfs_do_channel_program": null, "zfs_do_clone": null, "zfs_do_create": null, "zfs_do_destroy": null, "zfs_do_diff": null, "zfs_do_get": null, "zfs_do_hold": null, "zfs_do_holds": null, "zfs_do_inherit": null, "zfs_do_list": null, "zfs_do_load_key": null, "zfs_do_mount": null, "zfs_do_project": null, "zfs_do_promote": null, "zfs_do_receive": null, "zfs_do_redact": null, "zfs_do_release": null, "zfs_do_rename": null, "zfs_do_rollback": null, "zfs_do_send": null, "zfs_do_set": null, "zfs_do_share": null, "zfs_do_snapshot": null, "zfs_do_unallow": null, "zfs_do_unload_key": null, "zfs_do_unmount": null, "zfs_do_unshare": null, "zfs_do_unzone": null, "zfs_do_upgrade": null, "zfs_do_userspace": null, "zfs_do_version": null, "zfs_do_wait": null, "zfs_do_zone": null, "zfs_fm_close": null, "zfs_ioc_clear": null, "zfs_ioc_clear_fault": null, "zfs_ioc_dataset_list_next": null, "zfs_ioc_destroy": null, "zfs_ioc_diff": null, "zfs_ioc_dsobj_to_dsname": null, "zfs_ioc_error_log": null, "zfs_ioc_events_clear": null, "zfs_ioc_events_next": null, "zfs_ioc_events_seek": null, "zfs_ioc_get_fsacl": null, "zfs_ioc_inherit_prop": null, "zfs_ioc_inject_fault": null, "zfs_ioc_inject_list_next": null, "zfs_ioc_next_obj": null, "zfs_ioc_obj_to_path": null, "zfs_ioc_obj_to_stats": null, "zfs_ioc_objset_recvd_props": null, "zfs_ioc_objset_stats": null, "zfs_ioc_objset_zplprops": null, "zfs_ioc_pool_configs": null, "zfs_ioc_pool_create": null, "zfs_ioc_pool_destroy": null, "zfs_ioc_pool_export": null, "zfs_ioc_pool_freeze": null, "zfs_ioc_pool_get_history": null, "zfs_ioc_pool_get_props": null, "zfs_ioc_pool_import": null, "zfs_ioc_pool_reguid": null, "zfs_ioc_pool_scan": null, "zfs_ioc_pool_set_props": null, "zfs_ioc_pool_stats": null, "zfs_ioc_pool_tryimport": null, "zfs_ioc_pool_upgrade": null, "zfs_ioc_promote": null, "zfs_ioc_recv": null, "zfs_ioc_rename": null, "zfs_ioc_send": null, "zfs_ioc_send_progress": null, "zfs_ioc_set_fsacl": null, "zfs_ioc_set_prop": null, "zfs_ioc_share": null, "zfs_ioc_smb_acl": null, "zfs_ioc_snapshot_list_next": null, "zfs_ioc_space_written": null, "zfs_ioc_tmp_snapshot": null, "zfs_ioc_userspace_many": null, "zfs_ioc_userspace_one": null, "zfs_ioc_userspace_upgrade": null, "zfs_ioc_vdev_add": null, "zfs_ioc_vdev_attach": null, "zfs_ioc_vdev_detach": null, "zfs_ioc_vdev_remove": null, "zfs_ioc_vdev_set_state": null, "zfs_ioc_vdev_setfru": null, "zfs_ioc_vdev_setpath": null, "zfs_ioc_vdev_split": null, "zfs_zstd_decompress": null, "zle_decompress": null } }, "callsite": "ops->compute_native", "chain_summary": [ { "parent": "", "source_code": [ "static int", "abd_fletcher_4_iter(void *data, size_t size, void *private)", "{", "\tzio_abd_checksum_data_t *cdp = (zio_abd_checksum_data_t *)private;", "\tfletcher_4_ctx_t *ctx = cdp->acd_ctx;", "\tfletcher_4_ops_t *ops = (fletcher_4_ops_t *)cdp->acd_private;", "\tboolean_t native = cdp->acd_byteorder == ZIO_CHECKSUM_NATIVE;", "\tuint64_t asize = P2ALIGN(size, FLETCHER_MIN_SIMD_SIZE);", "\tASSERT(IS_P2ALIGNED(size, sizeof (uint32_t)));", "\tif (asize > 0) {", "\t\tif (native)", "\t\t\tops->compute_native(ctx, data, asize);", "\t\telse", "\t\t\tops->compute_byteswap(ctx, data, asize);", "\t\tsize -= asize;", "\t\tdata = (char *)data + asize;", "\t}", "\tif (size > 0) {", "\t\tASSERT3U(size, <, FLETCHER_MIN_SIMD_SIZE);", "\t\t/* At this point we have to switch to scalar impl */", "\t\tabd_fletcher_4_simd2scalar(native, data, size, cdp);", "\t}", "\treturn (0);", "}", "zio_abd_checksum_func_t fletcher_4_abd_ops = {", "\t.acf_init = abd_fletcher_4_init,", "\t.acf_fini = abd_fletcher_4_fini,", "\t.acf_iter = abd_fletcher_4_iter", "};" ] }, { "parent": "", "source_code": [ "typedef const struct zio_abd_checksum_func {", "\tzio_abd_checksum_init_t *acf_init;", "\tzio_abd_checksum_fini_t *acf_fini;", "\tzio_abd_checksum_iter_t *acf_iter;", "} zio_abd_checksum_func_t;" ] }, { "parent": "", "source_code": [ "static inline void", "abd_fletcher_4_impl(abd_t *abd, uint64_t size, zio_abd_checksum_data_t *acdp)", "{", "\tfletcher_4_abd_ops.acf_init(acdp);", "\tabd_iterate_func(abd, 0, size, fletcher_4_abd_ops.acf_iter, acdp);", "\tfletcher_4_abd_ops.acf_fini(acdp);", "}" ] }, { "parent": "", "source_code": [ "static void", "abd_fletcher_4_init(zio_abd_checksum_data_t *cdp)", "{", "\tconst fletcher_4_ops_t *ops = fletcher_4_impl_get();", "\tcdp->acd_private = (void *) ops;", "\tif (ops->uses_fpu == B_TRUE) {", "\t\tkfpu_begin();", "\t}", "\tif (cdp->acd_byteorder == ZIO_CHECKSUM_NATIVE)", "\t\tops->init_native(cdp->acd_ctx);", "\telse", "\t\tops->init_byteswap(cdp->acd_ctx);", "}" ] }, { "parent": "", "source_code": [ "typedef int abd_iter_func_t(void *buf, size_t len, void *priv);" ] }, { "parent": "", "source_code": [ "static inline const fletcher_4_ops_t *", "fletcher_4_impl_get(void)", "{", "\tif (!kfpu_allowed())", "\t\treturn (&fletcher_4_superscalar4_ops);", "\tconst fletcher_4_ops_t *ops = NULL;", "\tuint32_t impl = IMPL_READ(fletcher_4_impl_chosen);", "\tswitch (impl) {", "\tcase IMPL_FASTEST:", "\t\tASSERT(fletcher_4_initialized);", "\t\tops = &fletcher_4_fastest_impl;", "\t\tbreak;", "\tcase IMPL_CYCLE:", "\t\t/* Cycle through supported implementations */", "\t\tASSERT(fletcher_4_initialized);", "\t\tASSERT3U(fletcher_4_supp_impls_cnt, >, 0);", "\t\tstatic uint32_t cycle_count = 0;", "\t\tuint32_t idx = (++cycle_count) % fletcher_4_supp_impls_cnt;", "\t\tops = fletcher_4_supp_impls[idx];", "\t\tbreak;", "\tdefault:", "\t\tASSERT3U(fletcher_4_supp_impls_cnt, >, 0);", "\t\tASSERT3U(impl, <, fletcher_4_supp_impls_cnt);", "\t\tops = fletcher_4_supp_impls[impl];", "\t\tbreak;", "\t}", "\tASSERT3P(ops, !=, NULL);", "\treturn (ops);", "}" ] }, { "parent": "", "source_code": [ "static const fletcher_4_ops_t fletcher_4_scalar_ops = {", "\t.init_native = fletcher_4_scalar_init,", "\t.fini_native = fletcher_4_scalar_fini,", "\t.compute_native = fletcher_4_scalar_native,", "\t.init_byteswap = fletcher_4_scalar_init,", "\t.fini_byteswap = fletcher_4_scalar_fini,", "\t.compute_byteswap = fletcher_4_scalar_byteswap,", "\t.valid = fletcher_4_scalar_valid,", "\t.uses_fpu = B_FALSE,", "\t.name = \"scalar\"", "};", "static fletcher_4_ops_t fletcher_4_fastest_impl = {", "\t.name = \"fastest\",", "\t.valid = fletcher_4_scalar_valid", "};", "static const fletcher_4_ops_t *fletcher_4_impls[] = {", "\t&fletcher_4_scalar_ops,", "\t&fletcher_4_superscalar_ops,", "\t&fletcher_4_superscalar4_ops,", "#if defined(HAVE_SSE2)", "\t&fletcher_4_sse2_ops,", "#endif", "#if defined(HAVE_SSE2) && defined(HAVE_SSSE3)", "\t&fletcher_4_ssse3_ops,", "#endif", "#if defined(HAVE_AVX) && defined(HAVE_AVX2)", "\t&fletcher_4_avx2_ops,", "#endif", "#if defined(__x86_64) && defined(HAVE_AVX512F)", "\t&fletcher_4_avx512f_ops,", "#endif", "#if defined(__x86_64) && defined(HAVE_AVX512BW)", "\t&fletcher_4_avx512bw_ops,", "#endif", "#if defined(__aarch64__) && !defined(__FreeBSD__)", "\t&fletcher_4_aarch64_neon_ops,", "#endif", "};" ] }, { "parent": "", "source_code": [ "const fletcher_4_ops_t fletcher_4_superscalar_ops = {", "\t.init_native = fletcher_4_superscalar_init,", "\t.compute_native = fletcher_4_superscalar_native,", "\t.fini_native = fletcher_4_superscalar_fini,", "\t.init_byteswap = fletcher_4_superscalar_init,", "\t.compute_byteswap = fletcher_4_superscalar_byteswap,", "\t.fini_byteswap = fletcher_4_superscalar_fini,", "\t.valid = fletcher_4_superscalar_valid,", "\t.uses_fpu = B_FALSE,", "\t.name = \"superscalar\"", "};" ] }, { "parent": "", "source_code": [ "const fletcher_4_ops_t fletcher_4_superscalar4_ops = {", "\t.init_native = fletcher_4_superscalar4_init,", "\t.compute_native = fletcher_4_superscalar4_native,", "\t.fini_native = fletcher_4_superscalar4_fini,", "\t.init_byteswap = fletcher_4_superscalar4_init,", "\t.compute_byteswap = fletcher_4_superscalar4_byteswap,", "\t.fini_byteswap = fletcher_4_superscalar4_fini,", "\t.valid = fletcher_4_superscalar4_valid,", "\t.uses_fpu = B_FALSE,", "\t.name = \"superscalar4\"", "};" ] } ], "type": "fnptr-cast" }
null
null
null
null
null
null
{ "callees": { "targets": { "aes_encrypt_block": null, "aes_xor_block": null, "count_unflushed_space_cb": "", "ddt_zap_lookup": null, "dsl_dataset_hold": null, "dsl_dataset_hold_obj_string": null, "dump_acl": null, "dump_bpobj": null, "dump_bpobj_subobjs": null, "dump_ddt_zap": null, "dump_dmu_objset": null, "dump_dnode": null, "dump_dsl_dataset": null, "dump_dsl_dir": null, "dump_history_offsets": null, "dump_none": null, "dump_packed_nvlist": null, "dump_sa_attrs": null, "dump_sa_layouts": null, "dump_uint64": null, "dump_uint8": null, "dump_unknown": null, "dump_zap": null, "dump_znode": null, "dump_zpldir": null, "fletcher_4_scalar_native": null, "fletcher_4_superscalar4_native": null, "fletcher_4_superscalar_native": null, "gzip_decompress": null, "load_unflushed_cb": "", "load_unflushed_svr_segs_cb": "", "log_spacemap_obsolete_stats_cb": "", "lz4_decompress_zfs": null, "lzjb_decompress": null, "mul_x1_0": null, "mul_x1_1": null, "mul_x1_10": null, "mul_x1_100": null, "mul_x1_101": null, "mul_x1_102": null, "mul_x1_103": null, "mul_x1_104": null, "mul_x1_105": null, "mul_x1_106": null, "mul_x1_107": null, "mul_x1_108": null, "mul_x1_109": null, "mul_x1_11": null, "mul_x1_110": null, "mul_x1_111": null, "mul_x1_112": null, "mul_x1_113": null, "mul_x1_114": null, "mul_x1_115": null, "mul_x1_116": null, "mul_x1_117": null, "mul_x1_118": null, "mul_x1_119": null, "mul_x1_12": null, "mul_x1_120": null, "mul_x1_121": null, "mul_x1_122": null, "mul_x1_123": null, "mul_x1_124": null, "mul_x1_125": null, "mul_x1_126": null, "mul_x1_127": null, "mul_x1_128": null, "mul_x1_129": null, "mul_x1_13": null, "mul_x1_130": null, "mul_x1_131": null, "mul_x1_132": null, "mul_x1_133": null, "mul_x1_134": null, "mul_x1_135": null, "mul_x1_136": null, "mul_x1_137": null, "mul_x1_138": null, "mul_x1_139": null, "mul_x1_14": null, "mul_x1_140": null, "mul_x1_141": null, "mul_x1_142": null, "mul_x1_143": null, "mul_x1_144": null, "mul_x1_145": null, "mul_x1_146": null, "mul_x1_147": null, "mul_x1_148": null, "mul_x1_149": null, "mul_x1_15": null, "mul_x1_150": null, "mul_x1_151": null, "mul_x1_152": null, "mul_x1_153": null, "mul_x1_154": null, "mul_x1_155": null, "mul_x1_156": null, "mul_x1_157": null, "mul_x1_158": null, "mul_x1_159": null, "mul_x1_16": null, "mul_x1_160": null, "mul_x1_161": null, "mul_x1_162": null, "mul_x1_163": null, "mul_x1_164": null, "mul_x1_165": null, "mul_x1_166": null, "mul_x1_167": null, "mul_x1_168": null, "mul_x1_169": null, "mul_x1_17": null, "mul_x1_170": null, "mul_x1_171": null, "mul_x1_172": null, "mul_x1_173": null, "mul_x1_174": null, "mul_x1_175": null, "mul_x1_176": null, "mul_x1_177": null, "mul_x1_178": null, "mul_x1_179": null, "mul_x1_18": null, "mul_x1_180": null, "mul_x1_181": null, "mul_x1_182": null, "mul_x1_183": null, "mul_x1_184": null, "mul_x1_185": null, "mul_x1_186": null, "mul_x1_187": null, "mul_x1_188": null, "mul_x1_189": null, "mul_x1_19": null, "mul_x1_190": null, "mul_x1_191": null, "mul_x1_192": null, "mul_x1_193": null, "mul_x1_194": null, "mul_x1_195": null, "mul_x1_196": null, "mul_x1_197": null, "mul_x1_198": null, "mul_x1_199": null, "mul_x1_2": null, "mul_x1_20": null, "mul_x1_200": null, "mul_x1_201": null, "mul_x1_202": null, "mul_x1_203": null, "mul_x1_204": null, "mul_x1_205": null, "mul_x1_206": null, "mul_x1_207": null, "mul_x1_208": null, "mul_x1_209": null, "mul_x1_21": null, "mul_x1_210": null, "mul_x1_211": null, "mul_x1_212": null, "mul_x1_213": null, "mul_x1_214": null, "mul_x1_215": null, "mul_x1_216": null, "mul_x1_217": null, "mul_x1_218": null, "mul_x1_219": null, "mul_x1_22": null, "mul_x1_220": null, "mul_x1_221": null, "mul_x1_222": null, "mul_x1_223": null, "mul_x1_224": null, "mul_x1_225": null, "mul_x1_226": null, "mul_x1_227": null, "mul_x1_228": null, "mul_x1_229": null, "mul_x1_23": null, "mul_x1_230": null, "mul_x1_231": null, "mul_x1_232": null, "mul_x1_233": null, "mul_x1_234": null, "mul_x1_235": null, "mul_x1_236": null, "mul_x1_237": null, "mul_x1_238": null, "mul_x1_239": null, "mul_x1_24": null, "mul_x1_240": null, "mul_x1_241": null, "mul_x1_242": null, "mul_x1_243": null, "mul_x1_244": null, "mul_x1_245": null, "mul_x1_246": null, "mul_x1_247": null, "mul_x1_248": null, "mul_x1_249": null, "mul_x1_25": null, "mul_x1_250": null, "mul_x1_251": null, "mul_x1_252": null, "mul_x1_253": null, "mul_x1_254": null, "mul_x1_255": null, "mul_x1_26": null, "mul_x1_27": null, "mul_x1_28": null, "mul_x1_29": null, "mul_x1_3": null, "mul_x1_30": null, "mul_x1_31": null, "mul_x1_32": null, "mul_x1_33": null, "mul_x1_34": null, "mul_x1_35": null, "mul_x1_36": null, "mul_x1_37": null, "mul_x1_38": null, "mul_x1_39": null, "mul_x1_4": null, "mul_x1_40": null, "mul_x1_41": null, "mul_x1_42": null, "mul_x1_43": null, "mul_x1_44": null, "mul_x1_45": null, "mul_x1_46": null, "mul_x1_47": null, "mul_x1_48": null, "mul_x1_49": null, "mul_x1_5": null, "mul_x1_50": null, "mul_x1_51": null, "mul_x1_52": null, "mul_x1_53": null, "mul_x1_54": null, "mul_x1_55": null, "mul_x1_56": null, "mul_x1_57": null, "mul_x1_58": null, "mul_x1_59": null, "mul_x1_6": null, "mul_x1_60": null, "mul_x1_61": null, "mul_x1_62": null, "mul_x1_63": null, "mul_x1_64": null, "mul_x1_65": null, "mul_x1_66": null, "mul_x1_67": null, "mul_x1_68": null, "mul_x1_69": null, "mul_x1_7": null, "mul_x1_70": null, "mul_x1_71": null, "mul_x1_72": null, "mul_x1_73": null, "mul_x1_74": null, "mul_x1_75": null, "mul_x1_76": null, "mul_x1_77": null, "mul_x1_78": null, "mul_x1_79": null, "mul_x1_8": null, "mul_x1_80": null, "mul_x1_81": null, "mul_x1_82": null, "mul_x1_83": null, "mul_x1_84": null, "mul_x1_85": null, "mul_x1_86": null, "mul_x1_87": null, "mul_x1_88": null, "mul_x1_89": null, "mul_x1_9": null, "mul_x1_90": null, "mul_x1_91": null, "mul_x1_92": null, "mul_x1_93": null, "mul_x1_94": null, "mul_x1_95": null, "mul_x1_96": null, "mul_x1_97": null, "mul_x1_98": null, "mul_x1_99": null, "nfs_commit_shares": null, "nfs_copy_entries_cb": null, "nfs_is_shared_cb": null, "sha256_generic": null, "sha512_generic": null, "smb_update_shares": null, "spacemap_check_sm_log_cb": "", "tf_sha256_transform_x64": null, "tf_sha512_transform_x64": null, "vdev_indirect_remap": null, "zfs_ace_fuid_size": null, "zfs_ace_v0_size": null, "zfs_do_allow": null, "zfs_do_bookmark": null, "zfs_do_change_key": null, "zfs_do_channel_program": null, "zfs_do_clone": null, "zfs_do_create": null, "zfs_do_destroy": null, "zfs_do_diff": null, "zfs_do_get": null, "zfs_do_hold": null, "zfs_do_holds": null, "zfs_do_inherit": null, "zfs_do_list": null, "zfs_do_load_key": null, "zfs_do_mount": null, "zfs_do_project": null, "zfs_do_promote": null, "zfs_do_receive": null, "zfs_do_redact": null, "zfs_do_release": null, "zfs_do_rename": null, "zfs_do_rollback": null, "zfs_do_send": null, "zfs_do_set": null, "zfs_do_share": null, "zfs_do_snapshot": null, "zfs_do_unallow": null, "zfs_do_unload_key": null, "zfs_do_unmount": null, "zfs_do_unshare": null, "zfs_do_unzone": null, "zfs_do_upgrade": null, "zfs_do_userspace": null, "zfs_do_version": null, "zfs_do_wait": null, "zfs_do_zone": null, "zfs_fm_close": null, "zfs_ioc_clear": null, "zfs_ioc_clear_fault": null, "zfs_ioc_dataset_list_next": null, "zfs_ioc_destroy": null, "zfs_ioc_diff": null, "zfs_ioc_dsobj_to_dsname": null, "zfs_ioc_error_log": null, "zfs_ioc_events_clear": null, "zfs_ioc_events_next": null, "zfs_ioc_events_seek": null, "zfs_ioc_get_fsacl": null, "zfs_ioc_inherit_prop": null, "zfs_ioc_inject_fault": null, "zfs_ioc_inject_list_next": null, "zfs_ioc_next_obj": null, "zfs_ioc_obj_to_path": null, "zfs_ioc_obj_to_stats": null, "zfs_ioc_objset_recvd_props": null, "zfs_ioc_objset_stats": null, "zfs_ioc_objset_zplprops": null, "zfs_ioc_pool_configs": null, "zfs_ioc_pool_create": null, "zfs_ioc_pool_destroy": null, "zfs_ioc_pool_export": null, "zfs_ioc_pool_freeze": null, "zfs_ioc_pool_get_history": null, "zfs_ioc_pool_get_props": null, "zfs_ioc_pool_import": null, "zfs_ioc_pool_reguid": null, "zfs_ioc_pool_scan": null, "zfs_ioc_pool_set_props": null, "zfs_ioc_pool_stats": null, "zfs_ioc_pool_tryimport": null, "zfs_ioc_pool_upgrade": null, "zfs_ioc_promote": null, "zfs_ioc_recv": null, "zfs_ioc_rename": null, "zfs_ioc_send": null, "zfs_ioc_send_progress": null, "zfs_ioc_set_fsacl": null, "zfs_ioc_set_prop": null, "zfs_ioc_share": null, "zfs_ioc_smb_acl": null, "zfs_ioc_snapshot_list_next": null, "zfs_ioc_space_written": null, "zfs_ioc_tmp_snapshot": null, "zfs_ioc_userspace_many": null, "zfs_ioc_userspace_one": null, "zfs_ioc_userspace_upgrade": null, "zfs_ioc_vdev_add": null, "zfs_ioc_vdev_attach": null, "zfs_ioc_vdev_detach": null, "zfs_ioc_vdev_remove": null, "zfs_ioc_vdev_set_state": null, "zfs_ioc_vdev_setfru": null, "zfs_ioc_vdev_setpath": null, "zfs_ioc_vdev_split": null, "zfs_zstd_decompress": null, "zle_decompress": null } }, "callsite": "uic->uic_cb", "chain_summary": [ { "parent": "", "source_code": [ "static int iterate_through_spacemap_logs_cb(space_map_entry_t *sme, void *arg)", "{", "\tunflushed_iter_cb_arg_t *uic = arg;", "\treturn (uic->uic_cb(uic->uic_spa, sme, uic->uic_txg, uic->uic_arg));", "}" ] }, { "parent": "", "source_code": [ "static void iterate_through_spacemap_logs(spa_t *spa, zdb_log_sm_cb_t cb, void *arg)", "{", "\tif (!spa_feature_is_active(spa, SPA_FEATURE_LOG_SPACEMAP))", "\t\treturn;", "\tspa_config_enter(spa, SCL_CONFIG, FTAG, RW_READER);", "\tfor (spa_log_sm_t *sls = avl_first(&spa->spa_sm_logs_by_txg);", "\t sls; sls = AVL_NEXT(&spa->spa_sm_logs_by_txg, sls)) {", "\t\t...", "\t\tunflushed_iter_cb_arg_t uic = {", "\t\t\t.uic_spa = spa,", "\t\t\t.uic_txg = sls->sls_txg,", "\t\t\t.uic_arg = arg,", "\t\t\t.uic_cb = cb", "\t\t};", "\t\tVERIFY0(space_map_iterate(sm, space_map_length(sm),", "\t\t iterate_through_spacemap_logs_cb, &uic));", "\t\tspace_map_close(sm);", "\t}", "\tspa_config_exit(spa, SCL_CONFIG, FTAG);", "}" ] }, { "parent": "", "source_code": [ "int space_map_iterate(space_map_t *sm, uint64_t end, sm_cb_t callback, void *arg)", "{", "\tuint64_t blksz = sm->sm_blksz;", "\t...", "\tfor (uint64_t block_base = 0; block_base < end && error == 0;", "\t block_base += blksz) {", "\t\t...", "\t\tfor (uint64_t *block_cursor = block_start;", "\t\t block_cursor < block_end && error == 0; block_cursor++) {", "\t\t\tuint64_t e = *block_cursor;", "\t\t\t...", "\t\t\terror = callback(&sme, arg);", "\t\t}", "\t\tdmu_buf_rele(db, FTAG);", "\t}", "\treturn (error);", "}" ] }, { "parent": "", "source_code": [ "static void spacemap_check_sm_log(spa_t *spa, metaslab_verify_t *mv)", "{", "\titerate_through_spacemap_logs(spa, spacemap_check_sm_log_cb, mv);", "}" ] }, { "parent": "", "source_code": [ "static void load_unflushed_to_ms_allocatables(spa_t *spa, maptype_t maptype)", "{", "\titerate_through_spacemap_logs(spa, load_unflushed_cb, &maptype);", "}" ] }, { "parent": "", "source_code": [ "static void zdb_claim_removing(spa_t *spa, zdb_cb_t *zcb)", "{", "\t...", "\titerate_through_spacemap_logs(spa, load_unflushed_svr_segs_cb, svr);", " ...", "}" ] }, { "parent": "", "source_code": [ "static int64_t get_unflushed_alloc_space(spa_t *spa)", "{", "\tif (dump_opt['L'])", "\t\treturn (0);", "\tint64_t ualloc_space = 0;", "\titerate_through_spacemap_logs(spa, count_unflushed_space_cb,", "\t &ualloc_space);", "\treturn (ualloc_space);", "}" ] }, { "parent": "", "source_code": [ "static void dump_log_spacemap_obsolete_stats(spa_t *spa)", "{", "\t...", "\titerate_through_spacemap_logs(spa,", "\t log_spacemap_obsolete_stats_cb, &lsos);", " ...", "}" ] } ], "type": "fnptr-struct" }
null
null
null
null
null
null
{ "callees": { "targets": { "aes_encrypt_block": null, "aes_xor_block": null, "count_unflushed_space_cb": null, "ddt_zap_lookup": null, "dsl_dataset_hold": null, "dsl_dataset_hold_obj_string": null, "dump_acl": null, "dump_bpobj": null, "dump_bpobj_subobjs": null, "dump_ddt_zap": null, "dump_dmu_objset": null, "dump_dnode": null, "dump_dsl_dataset": null, "dump_dsl_dir": null, "dump_history_offsets": null, "dump_none": null, "dump_packed_nvlist": null, "dump_sa_attrs": null, "dump_sa_layouts": null, "dump_uint64": null, "dump_uint8": null, "dump_unknown": null, "dump_zap": null, "dump_znode": null, "dump_zpldir": null, "fletcher_4_scalar_native": null, "fletcher_4_superscalar4_native": null, "fletcher_4_superscalar_native": null, "gzip_decompress": "", "load_unflushed_cb": null, "load_unflushed_svr_segs_cb": null, "log_spacemap_obsolete_stats_cb": null, "lz4_decompress_zfs": "", "lzjb_decompress": "", "mul_x1_0": null, "mul_x1_1": null, "mul_x1_10": null, "mul_x1_100": null, "mul_x1_101": null, "mul_x1_102": null, "mul_x1_103": null, "mul_x1_104": null, "mul_x1_105": null, "mul_x1_106": null, "mul_x1_107": null, "mul_x1_108": null, "mul_x1_109": null, "mul_x1_11": null, "mul_x1_110": null, "mul_x1_111": null, "mul_x1_112": null, "mul_x1_113": null, "mul_x1_114": null, "mul_x1_115": null, "mul_x1_116": null, "mul_x1_117": null, "mul_x1_118": null, "mul_x1_119": null, "mul_x1_12": null, "mul_x1_120": null, "mul_x1_121": null, "mul_x1_122": null, "mul_x1_123": null, "mul_x1_124": null, "mul_x1_125": null, "mul_x1_126": null, "mul_x1_127": null, "mul_x1_128": null, "mul_x1_129": null, "mul_x1_13": null, "mul_x1_130": null, "mul_x1_131": null, "mul_x1_132": null, "mul_x1_133": null, "mul_x1_134": null, "mul_x1_135": null, "mul_x1_136": null, "mul_x1_137": null, "mul_x1_138": null, "mul_x1_139": null, "mul_x1_14": null, "mul_x1_140": null, "mul_x1_141": null, "mul_x1_142": null, "mul_x1_143": null, "mul_x1_144": null, "mul_x1_145": null, "mul_x1_146": null, "mul_x1_147": null, "mul_x1_148": null, "mul_x1_149": null, "mul_x1_15": null, "mul_x1_150": null, "mul_x1_151": null, "mul_x1_152": null, "mul_x1_153": null, "mul_x1_154": null, "mul_x1_155": null, "mul_x1_156": null, "mul_x1_157": null, "mul_x1_158": null, "mul_x1_159": null, "mul_x1_16": null, "mul_x1_160": null, "mul_x1_161": null, "mul_x1_162": null, "mul_x1_163": null, "mul_x1_164": null, "mul_x1_165": null, "mul_x1_166": null, "mul_x1_167": null, "mul_x1_168": null, "mul_x1_169": null, "mul_x1_17": null, "mul_x1_170": null, "mul_x1_171": null, "mul_x1_172": null, "mul_x1_173": null, "mul_x1_174": null, "mul_x1_175": null, "mul_x1_176": null, "mul_x1_177": null, "mul_x1_178": null, "mul_x1_179": null, "mul_x1_18": null, "mul_x1_180": null, "mul_x1_181": null, "mul_x1_182": null, "mul_x1_183": null, "mul_x1_184": null, "mul_x1_185": null, "mul_x1_186": null, "mul_x1_187": null, "mul_x1_188": null, "mul_x1_189": null, "mul_x1_19": null, "mul_x1_190": null, "mul_x1_191": null, "mul_x1_192": null, "mul_x1_193": null, "mul_x1_194": null, "mul_x1_195": null, "mul_x1_196": null, "mul_x1_197": null, "mul_x1_198": null, "mul_x1_199": null, "mul_x1_2": null, "mul_x1_20": null, "mul_x1_200": null, "mul_x1_201": null, "mul_x1_202": null, "mul_x1_203": null, "mul_x1_204": null, "mul_x1_205": null, "mul_x1_206": null, "mul_x1_207": null, "mul_x1_208": null, "mul_x1_209": null, "mul_x1_21": null, "mul_x1_210": null, "mul_x1_211": null, "mul_x1_212": null, "mul_x1_213": null, "mul_x1_214": null, "mul_x1_215": null, "mul_x1_216": null, "mul_x1_217": null, "mul_x1_218": null, "mul_x1_219": null, "mul_x1_22": null, "mul_x1_220": null, "mul_x1_221": null, "mul_x1_222": null, "mul_x1_223": null, "mul_x1_224": null, "mul_x1_225": null, "mul_x1_226": null, "mul_x1_227": null, "mul_x1_228": null, "mul_x1_229": null, "mul_x1_23": null, "mul_x1_230": null, "mul_x1_231": null, "mul_x1_232": null, "mul_x1_233": null, "mul_x1_234": null, "mul_x1_235": null, "mul_x1_236": null, "mul_x1_237": null, "mul_x1_238": null, "mul_x1_239": null, "mul_x1_24": null, "mul_x1_240": null, "mul_x1_241": null, "mul_x1_242": null, "mul_x1_243": null, "mul_x1_244": null, "mul_x1_245": null, "mul_x1_246": null, "mul_x1_247": null, "mul_x1_248": null, "mul_x1_249": null, "mul_x1_25": null, "mul_x1_250": null, "mul_x1_251": null, "mul_x1_252": null, "mul_x1_253": null, "mul_x1_254": null, "mul_x1_255": null, "mul_x1_26": null, "mul_x1_27": null, "mul_x1_28": null, "mul_x1_29": null, "mul_x1_3": null, "mul_x1_30": null, "mul_x1_31": null, "mul_x1_32": null, "mul_x1_33": null, "mul_x1_34": null, "mul_x1_35": null, "mul_x1_36": null, "mul_x1_37": null, "mul_x1_38": null, "mul_x1_39": null, "mul_x1_4": null, "mul_x1_40": null, "mul_x1_41": null, "mul_x1_42": null, "mul_x1_43": null, "mul_x1_44": null, "mul_x1_45": null, "mul_x1_46": null, "mul_x1_47": null, "mul_x1_48": null, "mul_x1_49": null, "mul_x1_5": null, "mul_x1_50": null, "mul_x1_51": null, "mul_x1_52": null, "mul_x1_53": null, "mul_x1_54": null, "mul_x1_55": null, "mul_x1_56": null, "mul_x1_57": null, "mul_x1_58": null, "mul_x1_59": null, "mul_x1_6": null, "mul_x1_60": null, "mul_x1_61": null, "mul_x1_62": null, "mul_x1_63": null, "mul_x1_64": null, "mul_x1_65": null, "mul_x1_66": null, "mul_x1_67": null, "mul_x1_68": null, "mul_x1_69": null, "mul_x1_7": null, "mul_x1_70": null, "mul_x1_71": null, "mul_x1_72": null, "mul_x1_73": null, "mul_x1_74": null, "mul_x1_75": null, "mul_x1_76": null, "mul_x1_77": null, "mul_x1_78": null, "mul_x1_79": null, "mul_x1_8": null, "mul_x1_80": null, "mul_x1_81": null, "mul_x1_82": null, "mul_x1_83": null, "mul_x1_84": null, "mul_x1_85": null, "mul_x1_86": null, "mul_x1_87": null, "mul_x1_88": null, "mul_x1_89": null, "mul_x1_9": null, "mul_x1_90": null, "mul_x1_91": null, "mul_x1_92": null, "mul_x1_93": null, "mul_x1_94": null, "mul_x1_95": null, "mul_x1_96": null, "mul_x1_97": null, "mul_x1_98": null, "mul_x1_99": null, "nfs_commit_shares": null, "nfs_copy_entries_cb": null, "nfs_is_shared_cb": null, "sha256_generic": null, "sha512_generic": null, "smb_update_shares": null, "spacemap_check_sm_log_cb": null, "tf_sha256_transform_x64": null, "tf_sha512_transform_x64": null, "vdev_indirect_remap": null, "zfs_ace_fuid_size": null, "zfs_ace_v0_size": null, "zfs_do_allow": null, "zfs_do_bookmark": null, "zfs_do_change_key": null, "zfs_do_channel_program": null, "zfs_do_clone": null, "zfs_do_create": null, "zfs_do_destroy": null, "zfs_do_diff": null, "zfs_do_get": null, "zfs_do_hold": null, "zfs_do_holds": null, "zfs_do_inherit": null, "zfs_do_list": null, "zfs_do_load_key": null, "zfs_do_mount": null, "zfs_do_project": null, "zfs_do_promote": null, "zfs_do_receive": null, "zfs_do_redact": null, "zfs_do_release": null, "zfs_do_rename": null, "zfs_do_rollback": null, "zfs_do_send": null, "zfs_do_set": null, "zfs_do_share": null, "zfs_do_snapshot": null, "zfs_do_unallow": null, "zfs_do_unload_key": null, "zfs_do_unmount": null, "zfs_do_unshare": null, "zfs_do_unzone": null, "zfs_do_upgrade": null, "zfs_do_userspace": null, "zfs_do_version": null, "zfs_do_wait": null, "zfs_do_zone": null, "zfs_fm_close": null, "zfs_ioc_clear": null, "zfs_ioc_clear_fault": null, "zfs_ioc_dataset_list_next": null, "zfs_ioc_destroy": null, "zfs_ioc_diff": null, "zfs_ioc_dsobj_to_dsname": null, "zfs_ioc_error_log": null, "zfs_ioc_events_clear": null, "zfs_ioc_events_next": null, "zfs_ioc_events_seek": null, "zfs_ioc_get_fsacl": null, "zfs_ioc_inherit_prop": null, "zfs_ioc_inject_fault": null, "zfs_ioc_inject_list_next": null, "zfs_ioc_next_obj": null, "zfs_ioc_obj_to_path": null, "zfs_ioc_obj_to_stats": null, "zfs_ioc_objset_recvd_props": null, "zfs_ioc_objset_stats": null, "zfs_ioc_objset_zplprops": null, "zfs_ioc_pool_configs": null, "zfs_ioc_pool_create": null, "zfs_ioc_pool_destroy": null, "zfs_ioc_pool_export": null, "zfs_ioc_pool_freeze": null, "zfs_ioc_pool_get_history": null, "zfs_ioc_pool_get_props": null, "zfs_ioc_pool_import": null, "zfs_ioc_pool_reguid": null, "zfs_ioc_pool_scan": null, "zfs_ioc_pool_set_props": null, "zfs_ioc_pool_stats": null, "zfs_ioc_pool_tryimport": null, "zfs_ioc_pool_upgrade": null, "zfs_ioc_promote": null, "zfs_ioc_recv": null, "zfs_ioc_rename": null, "zfs_ioc_send": null, "zfs_ioc_send_progress": null, "zfs_ioc_set_fsacl": null, "zfs_ioc_set_prop": null, "zfs_ioc_share": null, "zfs_ioc_smb_acl": null, "zfs_ioc_snapshot_list_next": null, "zfs_ioc_space_written": null, "zfs_ioc_tmp_snapshot": null, "zfs_ioc_userspace_many": null, "zfs_ioc_userspace_one": null, "zfs_ioc_userspace_upgrade": null, "zfs_ioc_vdev_add": null, "zfs_ioc_vdev_attach": null, "zfs_ioc_vdev_detach": null, "zfs_ioc_vdev_remove": null, "zfs_ioc_vdev_set_state": null, "zfs_ioc_vdev_setfru": null, "zfs_ioc_vdev_setpath": null, "zfs_ioc_vdev_split": null, "zfs_zstd_decompress": "", "zle_decompress": "" } }, "callsite": "xfunc", "chain_summary": [ { "parent": "", "source_code": [ "int", "zstream_do_decompress(int argc, char *argv[])", "{", "\t...", "\twhile (sfread(drr, sizeof (*drr), stdin) != 0) {", "\t\tstruct drr_write *drrw;", "\t\tuint64_t payload_size = 0;", "\t\t/*", "\t\t * We need to regenerate the checksum.", "\t\t */", "\t\tif (drr->drr_type != DRR_BEGIN) {", "\t\t\tmemset(&drr->drr_u.drr_checksum.drr_checksum, 0,", "\t\t\t sizeof (drr->drr_u.drr_checksum.drr_checksum));", "\t\t}", "\t\tswitch (drr->drr_type) {", "\t\t...", "\t\tcase DRR_WRITE_BYREF:", "\t\t\tVERIFY3S(begin, ==, 1);", "\t\t\tfprintf(stderr,", "\t\t\t \"Deduplicated streams are not supported\\n\");", "\t\t\texit(1);", "\t\t\tbreak;", "\t\tcase DRR_WRITE:", "\t\t{", "\t\t\tVERIFY3S(begin, ==, 1);", "\t\t\tdrrw = &thedrr.drr_u.drr_write;", "\t\t\tpayload_size = DRR_WRITE_PAYLOAD_SIZE(drrw);", "\t\t\tENTRY *p;", "\t\t\tchar key[KEYSIZE];", "\t\t\tsnprintf(key, KEYSIZE, \"%llu,%llu\",", "\t\t\t (u_longlong_t)drrw->drr_object,", "\t\t\t (u_longlong_t)drrw->drr_offset);", "\t\t\tENTRY e = {.key = key};", "\t\t\tp = hsearch(e, FIND);", "\t\t\tif (p != NULL) {", "\t\t\t\tzio_decompress_func_t *xfunc = NULL;", "\t\t\t\tswitch ((enum zio_compress)(intptr_t)p->data) {", "\t\t\t\tcase ZIO_COMPRESS_OFF:", "\t\t\t\t\txfunc = NULL;", "\t\t\t\t\tbreak;", "\t\t\t\tcase ZIO_COMPRESS_LZJB:", "\t\t\t\t\txfunc = lzjb_decompress;", "\t\t\t\t\tbreak;", "\t\t\t\tcase ZIO_COMPRESS_GZIP_1:", "\t\t\t\t\txfunc = gzip_decompress;", "\t\t\t\t\tbreak;", "\t\t\t\tcase ZIO_COMPRESS_ZLE:", "\t\t\t\t\txfunc = zle_decompress;", "\t\t\t\t\tbreak;", "\t\t\t\tcase ZIO_COMPRESS_LZ4:", "\t\t\t\t\txfunc = lz4_decompress_zfs;", "\t\t\t\t\tbreak;", "\t\t\t\tcase ZIO_COMPRESS_ZSTD:", "\t\t\t\t\txfunc = zfs_zstd_decompress;", "\t\t\t\t\tbreak;", "\t\t\t\tdefault:", "\t\t\t\t\tassert(B_FALSE);", "\t\t\t\t}", "\t\t\t\t/*", "\t\t\t\t * Read and decompress the block", "\t\t\t\t */", "\t\t\t\tchar *lzbuf = safe_calloc(payload_size);", "\t\t\t\t(void) sfread(lzbuf, payload_size, stdin);", "\t\t\t\tif (xfunc == NULL) {", "\t\t\t\t\tmemcpy(buf, lzbuf, payload_size);", "\t\t\t\t\tdrrw->drr_compressiontype =", "\t\t\t\t\t ZIO_COMPRESS_OFF;", "\t\t\t\t\tif (verbose)", "\t\t\t\t\t\tfprintf(stderr, \"Resetting \"", "\t\t\t\t\t\t \"compression type to off \"", "\t\t\t\t\t\t \"for ino %llu offset \"", "\t\t\t\t\t\t \"%llu\\n\",", "\t\t\t\t\t\t (u_longlong_t)", "\t\t\t\t\t\t drrw->drr_object,", "\t\t\t\t\t\t (u_longlong_t)", "\t\t\t\t\t\t drrw->drr_offset);", "\t\t\t\t} else if (0 != xfunc(lzbuf, buf,", "\t\t\t\t payload_size, payload_size, 0)) {", "\t\t\t\t\t/*", "\t\t\t\t\t * The block must not be compressed,", "\t\t\t\t\t * at least not with this compression", "\t\t\t\t\t * type, possibly because it gets", "\t\t\t\t\t * written multiple times in this", "\t\t\t\t\t * stream.", "\t\t\t\t\t */", "\t\t\t\t\twarnx(\"decompression failed for \"", "\t\t\t\t\t \"ino %llu offset %llu\",", "\t\t\t\t\t (u_longlong_t)drrw->drr_object,", "\t\t\t\t\t (u_longlong_t)drrw->drr_offset);", "\t\t\t\t\tmemcpy(buf, lzbuf, payload_size);", "\t\t\t\t} else if (verbose) {", "\t\t\t\t\tdrrw->drr_compressiontype =", "\t\t\t\t\t ZIO_COMPRESS_OFF;", "\t\t\t\t\tfprintf(stderr, \"successfully \"", "\t\t\t\t\t \"decompressed ino %llu \"", "\t\t\t\t\t \"offset %llu\\n\",", "\t\t\t\t\t (u_longlong_t)drrw->drr_object,", "\t\t\t\t\t (u_longlong_t)drrw->drr_offset);", "\t\t\t\t} else {", "\t\t\t\t\tdrrw->drr_compressiontype =", "\t\t\t\t\t ZIO_COMPRESS_OFF;", "\t\t\t\t}", "\t\t\t\tfree(lzbuf);", "\t\t\t} else {", "\t\t\t\t/*", "\t\t\t\t * Read the contents of the block unaltered", "\t\t\t\t */", "\t\t\t\t(void) sfread(buf, payload_size, stdin);", "\t\t\t}", "\t\t\tbreak;", "\t\t}", "\t\tcase DRR_WRITE_EMBEDDED:", "\t\t{", "\t\t\tVERIFY3S(begin, ==, 1);", "\t\t\tstruct drr_write_embedded *drrwe =", "\t\t\t &drr->drr_u.drr_write_embedded;", "\t\t\tpayload_size =", "\t\t\t P2ROUNDUP((uint64_t)drrwe->drr_psize, 8);", "\t\t\t(void) sfread(buf, payload_size, stdin);", "\t\t\tbreak;", "\t\t}", "\t\tcase DRR_FREEOBJECTS:", "\t\tcase DRR_FREE:", "\t\tcase DRR_OBJECT_RANGE:", "\t\t\tVERIFY3S(begin, ==, 1);", "\t\t\tbreak;", "\t\tdefault:", "\t\t\t(void) fprintf(stderr, \"INVALID record type 0x%x\\n\",", "\t\t\t drr->drr_type);", "\t\t\t/* should never happen, so assert */", "\t\t\tassert(B_FALSE);", "\t\t}", "\t\t...", "\t}", "\tfree(buf);", "\tfletcher_4_fini();", "\thdestroy();", "\treturn (0);", "}" ] } ], "type": "fnptr-only" }
null
null
null
null
null
null
{ "callees": { "targets": { "aes_encrypt_block": null, "aes_xor_block": null, "count_unflushed_space_cb": null, "ddt_zap_lookup": null, "dsl_dataset_hold": null, "dsl_dataset_hold_obj_string": null, "dump_acl": null, "dump_bpobj": null, "dump_bpobj_subobjs": null, "dump_ddt_zap": null, "dump_dmu_objset": null, "dump_dnode": null, "dump_dsl_dataset": null, "dump_dsl_dir": null, "dump_history_offsets": null, "dump_none": null, "dump_packed_nvlist": null, "dump_sa_attrs": null, "dump_sa_layouts": null, "dump_uint64": null, "dump_uint8": null, "dump_unknown": null, "dump_zap": null, "dump_znode": null, "dump_zpldir": null, "fletcher_4_scalar_native": null, "fletcher_4_superscalar4_native": null, "fletcher_4_superscalar_native": null, "gzip_decompress": null, "load_unflushed_cb": null, "load_unflushed_svr_segs_cb": null, "log_spacemap_obsolete_stats_cb": null, "lz4_decompress_zfs": null, "lzjb_decompress": null, "mul_x1_0": null, "mul_x1_1": null, "mul_x1_10": null, "mul_x1_100": null, "mul_x1_101": null, "mul_x1_102": null, "mul_x1_103": null, "mul_x1_104": null, "mul_x1_105": null, "mul_x1_106": null, "mul_x1_107": null, "mul_x1_108": null, "mul_x1_109": null, "mul_x1_11": null, "mul_x1_110": null, "mul_x1_111": null, "mul_x1_112": null, "mul_x1_113": null, "mul_x1_114": null, "mul_x1_115": null, "mul_x1_116": null, "mul_x1_117": null, "mul_x1_118": null, "mul_x1_119": null, "mul_x1_12": null, "mul_x1_120": null, "mul_x1_121": null, "mul_x1_122": null, "mul_x1_123": null, "mul_x1_124": null, "mul_x1_125": null, "mul_x1_126": null, "mul_x1_127": null, "mul_x1_128": null, "mul_x1_129": null, "mul_x1_13": null, "mul_x1_130": null, "mul_x1_131": null, "mul_x1_132": null, "mul_x1_133": null, "mul_x1_134": null, "mul_x1_135": null, "mul_x1_136": null, "mul_x1_137": null, "mul_x1_138": null, "mul_x1_139": null, "mul_x1_14": null, "mul_x1_140": null, "mul_x1_141": null, "mul_x1_142": null, "mul_x1_143": null, "mul_x1_144": null, "mul_x1_145": null, "mul_x1_146": null, "mul_x1_147": null, "mul_x1_148": null, "mul_x1_149": null, "mul_x1_15": null, "mul_x1_150": null, "mul_x1_151": null, "mul_x1_152": null, "mul_x1_153": null, "mul_x1_154": null, "mul_x1_155": null, "mul_x1_156": null, "mul_x1_157": null, "mul_x1_158": null, "mul_x1_159": null, "mul_x1_16": null, "mul_x1_160": null, "mul_x1_161": null, "mul_x1_162": null, "mul_x1_163": null, "mul_x1_164": null, "mul_x1_165": null, "mul_x1_166": null, "mul_x1_167": null, "mul_x1_168": null, "mul_x1_169": null, "mul_x1_17": null, "mul_x1_170": null, "mul_x1_171": null, "mul_x1_172": null, "mul_x1_173": null, "mul_x1_174": null, "mul_x1_175": null, "mul_x1_176": null, "mul_x1_177": null, "mul_x1_178": null, "mul_x1_179": null, "mul_x1_18": null, "mul_x1_180": null, "mul_x1_181": null, "mul_x1_182": null, "mul_x1_183": null, "mul_x1_184": null, "mul_x1_185": null, "mul_x1_186": null, "mul_x1_187": null, "mul_x1_188": null, "mul_x1_189": null, "mul_x1_19": null, "mul_x1_190": null, "mul_x1_191": null, "mul_x1_192": null, "mul_x1_193": null, "mul_x1_194": null, "mul_x1_195": null, "mul_x1_196": null, "mul_x1_197": null, "mul_x1_198": null, "mul_x1_199": null, "mul_x1_2": null, "mul_x1_20": null, "mul_x1_200": null, "mul_x1_201": null, "mul_x1_202": null, "mul_x1_203": null, "mul_x1_204": null, "mul_x1_205": null, "mul_x1_206": null, "mul_x1_207": null, "mul_x1_208": null, "mul_x1_209": null, "mul_x1_21": null, "mul_x1_210": null, "mul_x1_211": null, "mul_x1_212": null, "mul_x1_213": null, "mul_x1_214": null, "mul_x1_215": null, "mul_x1_216": null, "mul_x1_217": null, "mul_x1_218": null, "mul_x1_219": null, "mul_x1_22": null, "mul_x1_220": null, "mul_x1_221": null, "mul_x1_222": null, "mul_x1_223": null, "mul_x1_224": null, "mul_x1_225": null, "mul_x1_226": null, "mul_x1_227": null, "mul_x1_228": null, "mul_x1_229": null, "mul_x1_23": null, "mul_x1_230": null, "mul_x1_231": null, "mul_x1_232": null, "mul_x1_233": null, "mul_x1_234": null, "mul_x1_235": null, "mul_x1_236": null, "mul_x1_237": null, "mul_x1_238": null, "mul_x1_239": null, "mul_x1_24": null, "mul_x1_240": null, "mul_x1_241": null, "mul_x1_242": null, "mul_x1_243": null, "mul_x1_244": null, "mul_x1_245": null, "mul_x1_246": null, "mul_x1_247": null, "mul_x1_248": null, "mul_x1_249": null, "mul_x1_25": null, "mul_x1_250": null, "mul_x1_251": null, "mul_x1_252": null, "mul_x1_253": null, "mul_x1_254": null, "mul_x1_255": null, "mul_x1_26": null, "mul_x1_27": null, "mul_x1_28": null, "mul_x1_29": null, "mul_x1_3": null, "mul_x1_30": null, "mul_x1_31": null, "mul_x1_32": null, "mul_x1_33": null, "mul_x1_34": null, "mul_x1_35": null, "mul_x1_36": null, "mul_x1_37": null, "mul_x1_38": null, "mul_x1_39": null, "mul_x1_4": null, "mul_x1_40": null, "mul_x1_41": null, "mul_x1_42": null, "mul_x1_43": null, "mul_x1_44": null, "mul_x1_45": null, "mul_x1_46": null, "mul_x1_47": null, "mul_x1_48": null, "mul_x1_49": null, "mul_x1_5": null, "mul_x1_50": null, "mul_x1_51": null, "mul_x1_52": null, "mul_x1_53": null, "mul_x1_54": null, "mul_x1_55": null, "mul_x1_56": null, "mul_x1_57": null, "mul_x1_58": null, "mul_x1_59": null, "mul_x1_6": null, "mul_x1_60": null, "mul_x1_61": null, "mul_x1_62": null, "mul_x1_63": null, "mul_x1_64": null, "mul_x1_65": null, "mul_x1_66": null, "mul_x1_67": null, "mul_x1_68": null, "mul_x1_69": null, "mul_x1_7": null, "mul_x1_70": null, "mul_x1_71": null, "mul_x1_72": null, "mul_x1_73": null, "mul_x1_74": null, "mul_x1_75": null, "mul_x1_76": null, "mul_x1_77": null, "mul_x1_78": null, "mul_x1_79": null, "mul_x1_8": null, "mul_x1_80": null, "mul_x1_81": null, "mul_x1_82": null, "mul_x1_83": null, "mul_x1_84": null, "mul_x1_85": null, "mul_x1_86": null, "mul_x1_87": null, "mul_x1_88": null, "mul_x1_89": null, "mul_x1_9": null, "mul_x1_90": null, "mul_x1_91": null, "mul_x1_92": null, "mul_x1_93": null, "mul_x1_94": null, "mul_x1_95": null, "mul_x1_96": null, "mul_x1_97": null, "mul_x1_98": null, "mul_x1_99": null, "nfs_commit_shares": null, "nfs_copy_entries_cb": null, "nfs_is_shared_cb": null, "sha256_generic": null, "sha512_generic": null, "smb_update_shares": null, "spacemap_check_sm_log_cb": null, "tf_sha256_transform_x64": null, "tf_sha512_transform_x64": null, "vdev_indirect_remap": "", "zfs_ace_fuid_size": null, "zfs_ace_v0_size": null, "zfs_do_allow": null, "zfs_do_bookmark": null, "zfs_do_change_key": null, "zfs_do_channel_program": null, "zfs_do_clone": null, "zfs_do_create": null, "zfs_do_destroy": null, "zfs_do_diff": null, "zfs_do_get": null, "zfs_do_hold": null, "zfs_do_holds": null, "zfs_do_inherit": null, "zfs_do_list": null, "zfs_do_load_key": null, "zfs_do_mount": null, "zfs_do_project": null, "zfs_do_promote": null, "zfs_do_receive": null, "zfs_do_redact": null, "zfs_do_release": null, "zfs_do_rename": null, "zfs_do_rollback": null, "zfs_do_send": null, "zfs_do_set": null, "zfs_do_share": null, "zfs_do_snapshot": null, "zfs_do_unallow": null, "zfs_do_unload_key": null, "zfs_do_unmount": null, "zfs_do_unshare": null, "zfs_do_unzone": null, "zfs_do_upgrade": null, "zfs_do_userspace": null, "zfs_do_version": null, "zfs_do_wait": null, "zfs_do_zone": null, "zfs_fm_close": null, "zfs_ioc_clear": null, "zfs_ioc_clear_fault": null, "zfs_ioc_dataset_list_next": null, "zfs_ioc_destroy": null, "zfs_ioc_diff": null, "zfs_ioc_dsobj_to_dsname": null, "zfs_ioc_error_log": null, "zfs_ioc_events_clear": null, "zfs_ioc_events_next": null, "zfs_ioc_events_seek": null, "zfs_ioc_get_fsacl": null, "zfs_ioc_inherit_prop": null, "zfs_ioc_inject_fault": null, "zfs_ioc_inject_list_next": null, "zfs_ioc_next_obj": null, "zfs_ioc_obj_to_path": null, "zfs_ioc_obj_to_stats": null, "zfs_ioc_objset_recvd_props": null, "zfs_ioc_objset_stats": null, "zfs_ioc_objset_zplprops": null, "zfs_ioc_pool_configs": null, "zfs_ioc_pool_create": null, "zfs_ioc_pool_destroy": null, "zfs_ioc_pool_export": null, "zfs_ioc_pool_freeze": null, "zfs_ioc_pool_get_history": null, "zfs_ioc_pool_get_props": null, "zfs_ioc_pool_import": null, "zfs_ioc_pool_reguid": null, "zfs_ioc_pool_scan": null, "zfs_ioc_pool_set_props": null, "zfs_ioc_pool_stats": null, "zfs_ioc_pool_tryimport": null, "zfs_ioc_pool_upgrade": null, "zfs_ioc_promote": null, "zfs_ioc_recv": null, "zfs_ioc_rename": null, "zfs_ioc_send": null, "zfs_ioc_send_progress": null, "zfs_ioc_set_fsacl": null, "zfs_ioc_set_prop": null, "zfs_ioc_share": null, "zfs_ioc_smb_acl": null, "zfs_ioc_snapshot_list_next": null, "zfs_ioc_space_written": null, "zfs_ioc_tmp_snapshot": null, "zfs_ioc_userspace_many": null, "zfs_ioc_userspace_one": null, "zfs_ioc_userspace_upgrade": null, "zfs_ioc_vdev_add": null, "zfs_ioc_vdev_attach": null, "zfs_ioc_vdev_detach": null, "zfs_ioc_vdev_remove": null, "zfs_ioc_vdev_set_state": null, "zfs_ioc_vdev_setfru": null, "zfs_ioc_vdev_setpath": null, "zfs_ioc_vdev_split": null, "zfs_zstd_decompress": null, "zle_decompress": null } }, "callsite": "vdev_indirect_ops.vdev_op_remap", "chain_summary": [ { "parent": "", "source_code": [ "static void", "claim_segment_cb(void *arg, uint64_t offset, uint64_t size)", "{", "\tvdev_t *vd = arg;", "\tvdev_indirect_ops.vdev_op_remap(vd, offset, size,", "\t claim_segment_impl_cb, NULL);", "}" ] }, { "parent": "", "source_code": [ "vdev_ops_t vdev_indirect_ops = {", "\t.vdev_op_init = NULL,", "\t.vdev_op_fini = NULL,", "\t.vdev_op_open = vdev_indirect_open,", "\t.vdev_op_close = vdev_indirect_close,", "\t.vdev_op_asize = vdev_default_asize,", "\t.vdev_op_min_asize = vdev_default_min_asize,", "\t.vdev_op_min_alloc = NULL,", "\t.vdev_op_io_start = vdev_indirect_io_start,", "\t.vdev_op_io_done = vdev_indirect_io_done,", "\t.vdev_op_state_change = NULL,", "\t.vdev_op_need_resilver = NULL,", "\t.vdev_op_hold = NULL,", "\t.vdev_op_rele = NULL,", "\t.vdev_op_remap = vdev_indirect_remap,", "\t.vdev_op_xlate = NULL,", "\t.vdev_op_rebuild_asize = NULL,", "\t.vdev_op_metaslab_init = NULL,", "\t.vdev_op_config_generate = NULL,", "\t.vdev_op_nparity = NULL,", "\t.vdev_op_ndisks = NULL,", "\t.vdev_op_type = VDEV_TYPE_INDIRECT,\t/* name of this vdev type */", "\t.vdev_op_leaf = B_FALSE\t\t\t/* leaf vdev */", "};" ] }, { "parent": "", "source_code": [ "static void", "vdev_indirect_remap(vdev_t *vd, uint64_t offset, uint64_t asize,", " void (*func)(uint64_t, vdev_t *, uint64_t, uint64_t, void *), void *arg)" ] } ], "type": "fnptr-global-struct" }
null
null
null
null
null
null
{ "callees": { "targets": { "aes_encrypt_block": null, "aes_xor_block": null, "count_unflushed_space_cb": null, "ddt_zap_lookup": null, "dsl_dataset_hold": null, "dsl_dataset_hold_obj_string": null, "dump_acl": null, "dump_bpobj": null, "dump_bpobj_subobjs": null, "dump_ddt_zap": null, "dump_dmu_objset": null, "dump_dnode": null, "dump_dsl_dataset": null, "dump_dsl_dir": null, "dump_history_offsets": null, "dump_none": null, "dump_packed_nvlist": null, "dump_sa_attrs": null, "dump_sa_layouts": null, "dump_uint64": null, "dump_uint8": null, "dump_unknown": null, "dump_zap": null, "dump_znode": null, "dump_zpldir": null, "fletcher_4_scalar_native": null, "fletcher_4_superscalar4_native": null, "fletcher_4_superscalar_native": null, "gzip_decompress": null, "load_unflushed_cb": null, "load_unflushed_svr_segs_cb": null, "log_spacemap_obsolete_stats_cb": null, "lz4_decompress_zfs": null, "lzjb_decompress": null, "mul_x1_0": null, "mul_x1_1": null, "mul_x1_10": null, "mul_x1_100": null, "mul_x1_101": null, "mul_x1_102": null, "mul_x1_103": null, "mul_x1_104": null, "mul_x1_105": null, "mul_x1_106": null, "mul_x1_107": null, "mul_x1_108": null, "mul_x1_109": null, "mul_x1_11": null, "mul_x1_110": null, "mul_x1_111": null, "mul_x1_112": null, "mul_x1_113": null, "mul_x1_114": null, "mul_x1_115": null, "mul_x1_116": null, "mul_x1_117": null, "mul_x1_118": null, "mul_x1_119": null, "mul_x1_12": null, "mul_x1_120": null, "mul_x1_121": null, "mul_x1_122": null, "mul_x1_123": null, "mul_x1_124": null, "mul_x1_125": null, "mul_x1_126": null, "mul_x1_127": null, "mul_x1_128": null, "mul_x1_129": null, "mul_x1_13": null, "mul_x1_130": null, "mul_x1_131": null, "mul_x1_132": null, "mul_x1_133": null, "mul_x1_134": null, "mul_x1_135": null, "mul_x1_136": null, "mul_x1_137": null, "mul_x1_138": null, "mul_x1_139": null, "mul_x1_14": null, "mul_x1_140": null, "mul_x1_141": null, "mul_x1_142": null, "mul_x1_143": null, "mul_x1_144": null, "mul_x1_145": null, "mul_x1_146": null, "mul_x1_147": null, "mul_x1_148": null, "mul_x1_149": null, "mul_x1_15": null, "mul_x1_150": null, "mul_x1_151": null, "mul_x1_152": null, "mul_x1_153": null, "mul_x1_154": null, "mul_x1_155": null, "mul_x1_156": null, "mul_x1_157": null, "mul_x1_158": null, "mul_x1_159": null, "mul_x1_16": null, "mul_x1_160": null, "mul_x1_161": null, "mul_x1_162": null, "mul_x1_163": null, "mul_x1_164": null, "mul_x1_165": null, "mul_x1_166": null, "mul_x1_167": null, "mul_x1_168": null, "mul_x1_169": null, "mul_x1_17": null, "mul_x1_170": null, "mul_x1_171": null, "mul_x1_172": null, "mul_x1_173": null, "mul_x1_174": null, "mul_x1_175": null, "mul_x1_176": null, "mul_x1_177": null, "mul_x1_178": null, "mul_x1_179": null, "mul_x1_18": null, "mul_x1_180": null, "mul_x1_181": null, "mul_x1_182": null, "mul_x1_183": null, "mul_x1_184": null, "mul_x1_185": null, "mul_x1_186": null, "mul_x1_187": null, "mul_x1_188": null, "mul_x1_189": null, "mul_x1_19": null, "mul_x1_190": null, "mul_x1_191": null, "mul_x1_192": null, "mul_x1_193": null, "mul_x1_194": null, "mul_x1_195": null, "mul_x1_196": null, "mul_x1_197": null, "mul_x1_198": null, "mul_x1_199": null, "mul_x1_2": null, "mul_x1_20": null, "mul_x1_200": null, "mul_x1_201": null, "mul_x1_202": null, "mul_x1_203": null, "mul_x1_204": null, "mul_x1_205": null, "mul_x1_206": null, "mul_x1_207": null, "mul_x1_208": null, "mul_x1_209": null, "mul_x1_21": null, "mul_x1_210": null, "mul_x1_211": null, "mul_x1_212": null, "mul_x1_213": null, "mul_x1_214": null, "mul_x1_215": null, "mul_x1_216": null, "mul_x1_217": null, "mul_x1_218": null, "mul_x1_219": null, "mul_x1_22": null, "mul_x1_220": null, "mul_x1_221": null, "mul_x1_222": null, "mul_x1_223": null, "mul_x1_224": null, "mul_x1_225": null, "mul_x1_226": null, "mul_x1_227": null, "mul_x1_228": null, "mul_x1_229": null, "mul_x1_23": null, "mul_x1_230": null, "mul_x1_231": null, "mul_x1_232": null, "mul_x1_233": null, "mul_x1_234": null, "mul_x1_235": null, "mul_x1_236": null, "mul_x1_237": null, "mul_x1_238": null, "mul_x1_239": null, "mul_x1_24": null, "mul_x1_240": null, "mul_x1_241": null, "mul_x1_242": null, "mul_x1_243": null, "mul_x1_244": null, "mul_x1_245": null, "mul_x1_246": null, "mul_x1_247": null, "mul_x1_248": null, "mul_x1_249": null, "mul_x1_25": null, "mul_x1_250": null, "mul_x1_251": null, "mul_x1_252": null, "mul_x1_253": null, "mul_x1_254": null, "mul_x1_255": null, "mul_x1_26": null, "mul_x1_27": null, "mul_x1_28": null, "mul_x1_29": null, "mul_x1_3": null, "mul_x1_30": null, "mul_x1_31": null, "mul_x1_32": null, "mul_x1_33": null, "mul_x1_34": null, "mul_x1_35": null, "mul_x1_36": null, "mul_x1_37": null, "mul_x1_38": null, "mul_x1_39": null, "mul_x1_4": null, "mul_x1_40": null, "mul_x1_41": null, "mul_x1_42": null, "mul_x1_43": null, "mul_x1_44": null, "mul_x1_45": null, "mul_x1_46": null, "mul_x1_47": null, "mul_x1_48": null, "mul_x1_49": null, "mul_x1_5": null, "mul_x1_50": null, "mul_x1_51": null, "mul_x1_52": null, "mul_x1_53": null, "mul_x1_54": null, "mul_x1_55": null, "mul_x1_56": null, "mul_x1_57": null, "mul_x1_58": null, "mul_x1_59": null, "mul_x1_6": null, "mul_x1_60": null, "mul_x1_61": null, "mul_x1_62": null, "mul_x1_63": null, "mul_x1_64": null, "mul_x1_65": null, "mul_x1_66": null, "mul_x1_67": null, "mul_x1_68": null, "mul_x1_69": null, "mul_x1_7": null, "mul_x1_70": null, "mul_x1_71": null, "mul_x1_72": null, "mul_x1_73": null, "mul_x1_74": null, "mul_x1_75": null, "mul_x1_76": null, "mul_x1_77": null, "mul_x1_78": null, "mul_x1_79": null, "mul_x1_8": null, "mul_x1_80": null, "mul_x1_81": null, "mul_x1_82": null, "mul_x1_83": null, "mul_x1_84": null, "mul_x1_85": null, "mul_x1_86": null, "mul_x1_87": null, "mul_x1_88": null, "mul_x1_89": null, "mul_x1_9": null, "mul_x1_90": null, "mul_x1_91": null, "mul_x1_92": null, "mul_x1_93": null, "mul_x1_94": null, "mul_x1_95": null, "mul_x1_96": null, "mul_x1_97": null, "mul_x1_98": null, "mul_x1_99": null, "nfs_commit_shares": null, "nfs_copy_entries_cb": null, "nfs_is_shared_cb": null, "sha256_generic": null, "sha512_generic": null, "smb_update_shares": null, "spacemap_check_sm_log_cb": null, "tf_sha256_transform_x64": null, "tf_sha512_transform_x64": null, "vdev_indirect_remap": null, "zfs_ace_fuid_size": null, "zfs_ace_v0_size": null, "zfs_do_allow": null, "zfs_do_bookmark": null, "zfs_do_change_key": null, "zfs_do_channel_program": null, "zfs_do_clone": null, "zfs_do_create": null, "zfs_do_destroy": null, "zfs_do_diff": null, "zfs_do_get": null, "zfs_do_hold": null, "zfs_do_holds": null, "zfs_do_inherit": null, "zfs_do_list": null, "zfs_do_load_key": null, "zfs_do_mount": null, "zfs_do_project": null, "zfs_do_promote": null, "zfs_do_receive": null, "zfs_do_redact": null, "zfs_do_release": null, "zfs_do_rename": null, "zfs_do_rollback": null, "zfs_do_send": null, "zfs_do_set": null, "zfs_do_share": null, "zfs_do_snapshot": null, "zfs_do_unallow": null, "zfs_do_unload_key": null, "zfs_do_unmount": null, "zfs_do_unshare": null, "zfs_do_unzone": null, "zfs_do_upgrade": null, "zfs_do_userspace": null, "zfs_do_version": null, "zfs_do_wait": null, "zfs_do_zone": null, "zfs_fm_close": null, "zfs_ioc_clear": "", "zfs_ioc_clear_fault": "", "zfs_ioc_dataset_list_next": "", "zfs_ioc_destroy": "", "zfs_ioc_diff": "", "zfs_ioc_dsobj_to_dsname": "", "zfs_ioc_error_log": "", "zfs_ioc_events_clear": "", "zfs_ioc_events_next": "", "zfs_ioc_events_seek": "", "zfs_ioc_get_fsacl": "", "zfs_ioc_inherit_prop": "", "zfs_ioc_inject_fault": "", "zfs_ioc_inject_list_next": "", "zfs_ioc_next_obj": "", "zfs_ioc_obj_to_path": "", "zfs_ioc_obj_to_stats": "", "zfs_ioc_objset_recvd_props": "", "zfs_ioc_objset_stats": "", "zfs_ioc_objset_zplprops": "", "zfs_ioc_pool_configs": "", "zfs_ioc_pool_create": "", "zfs_ioc_pool_destroy": "", "zfs_ioc_pool_export": "", "zfs_ioc_pool_freeze": "", "zfs_ioc_pool_get_history": "", "zfs_ioc_pool_get_props": "", "zfs_ioc_pool_import": "", "zfs_ioc_pool_reguid": "", "zfs_ioc_pool_scan": "", "zfs_ioc_pool_set_props": "", "zfs_ioc_pool_stats": "", "zfs_ioc_pool_tryimport": "", "zfs_ioc_pool_upgrade": "", "zfs_ioc_promote": "", "zfs_ioc_recv": "", "zfs_ioc_rename": "", "zfs_ioc_send": "", "zfs_ioc_send_progress": "", "zfs_ioc_set_fsacl": "", "zfs_ioc_set_prop": "", "zfs_ioc_share": "", "zfs_ioc_smb_acl": "", "zfs_ioc_snapshot_list_next": "", "zfs_ioc_space_written": "", "zfs_ioc_tmp_snapshot": "", "zfs_ioc_userspace_many": "", "zfs_ioc_userspace_one": "", "zfs_ioc_userspace_upgrade": "", "zfs_ioc_vdev_add": "", "zfs_ioc_vdev_attach": "", "zfs_ioc_vdev_detach": "", "zfs_ioc_vdev_remove": "", "zfs_ioc_vdev_set_state": "", "zfs_ioc_vdev_setfru": "", "zfs_ioc_vdev_setpath": "", "zfs_ioc_vdev_split": "", "zfs_zstd_decompress": null, "zle_decompress": null } }, "callsite": "vec->zvec_legacy_func", "chain_summary": [ { "parent": "", "source_code": [ "long zfsdev_ioctl_common(uint_t vecnum, zfs_cmd_t *zc, int flag)", "{", "\t...", "\tif (vec->zvec_func != NULL) {", "\t\t....", "\t\tif ((error == 0 ||", "\t\t (cmd == ZFS_IOC_CHANNEL_PROGRAM && error != EINVAL)) &&", "\t\t vec->zvec_allow_log &&", "\t\t spa_open(zc->zc_name, &spa, FTAG) == 0) {", "\t\t\t...", "\t} else {", "\t\tcookie = spl_fstrans_mark();", "\t\terror = vec->zvec_legacy_func(zc);", "\t\tspl_fstrans_unmark(cookie);", "\t}", " ...", " }", "}" ] }, { "parent": "", "source_code": [ "static void zfs_ioctl_register_legacy(zfs_ioc_t ioc, zfs_ioc_legacy_func_t *func,", " zfs_secpolicy_func_t *secpolicy, zfs_ioc_namecheck_t namecheck,", " boolean_t log_history, zfs_ioc_poolcheck_t pool_check)", "{", "\tzfs_ioc_vec_t *vec = &zfs_ioc_vec[ioc - ZFS_IOC_FIRST];", "\t...", "\tvec->zvec_legacy_func = func;", "\tvec->zvec_secpolicy = secpolicy;", "\tvec->zvec_namecheck = namecheck;", "\tvec->zvec_allow_log = log_history;", "\tvec->zvec_pool_check = pool_check;", "}", "static void", "zfs_ioctl_register_pool(zfs_ioc_t ioc, zfs_ioc_legacy_func_t *func,", " zfs_secpolicy_func_t *secpolicy, boolean_t log_history,", " zfs_ioc_poolcheck_t pool_check)", "{", "\tzfs_ioctl_register_legacy(ioc, func, secpolicy,", "\t POOL_NAME, log_history, pool_check);", "}", "void", "zfs_ioctl_register_dataset_nolog(zfs_ioc_t ioc, zfs_ioc_legacy_func_t *func,", " zfs_secpolicy_func_t *secpolicy, zfs_ioc_poolcheck_t pool_check)", "{", "\tzfs_ioctl_register_legacy(ioc, func, secpolicy,", "\t DATASET_NAME, B_FALSE, pool_check);", "}", "static void", "zfs_ioctl_register_pool_modify(zfs_ioc_t ioc, zfs_ioc_legacy_func_t *func)", "{", "\tzfs_ioctl_register_legacy(ioc, func, zfs_secpolicy_config,", "\t POOL_NAME, B_TRUE, POOL_CHECK_SUSPENDED | POOL_CHECK_READONLY);", "}", "static void", "zfs_ioctl_register_pool_meta(zfs_ioc_t ioc, zfs_ioc_legacy_func_t *func,", " zfs_secpolicy_func_t *secpolicy)", "{", "\tzfs_ioctl_register_legacy(ioc, func, secpolicy,", "\t NO_NAME, B_FALSE, POOL_CHECK_NONE);", "}", "static void", "zfs_ioctl_register_dataset_read_secpolicy(zfs_ioc_t ioc,", " zfs_ioc_legacy_func_t *func, zfs_secpolicy_func_t *secpolicy)", "{", "\tzfs_ioctl_register_legacy(ioc, func, secpolicy,", "\t DATASET_NAME, B_FALSE, POOL_CHECK_SUSPENDED);", "}", "static void", "zfs_ioctl_register_dataset_read(zfs_ioc_t ioc, zfs_ioc_legacy_func_t *func)", "{", "\tzfs_ioctl_register_dataset_read_secpolicy(ioc, func,", "\t zfs_secpolicy_read);", "}", "static void", "zfs_ioctl_register_dataset_modify(zfs_ioc_t ioc, zfs_ioc_legacy_func_t *func,", " zfs_secpolicy_func_t *secpolicy)", "{", "\tzfs_ioctl_register_legacy(ioc, func, secpolicy,", "\t DATASET_NAME, B_TRUE, POOL_CHECK_SUSPENDED | POOL_CHECK_READONLY);", "}" ] }, { "parent": "", "source_code": [ "static void", "zfs_ioctl_init(void)", "{", "\tzfs_ioctl_register(\"snapshot\", ZFS_IOC_SNAPSHOT,", "\t zfs_ioc_snapshot, zfs_secpolicy_snapshot, POOL_NAME,", "\t POOL_CHECK_SUSPENDED | POOL_CHECK_READONLY, B_TRUE, B_TRUE,", "\t zfs_keys_snapshot, ARRAY_SIZE(zfs_keys_snapshot));", "\tzfs_ioctl_register(\"log_history\", ZFS_IOC_LOG_HISTORY,", "\t zfs_ioc_log_history, zfs_secpolicy_log_history, NO_NAME,", "\t POOL_CHECK_SUSPENDED | POOL_CHECK_READONLY, B_FALSE, B_FALSE,", "\t zfs_keys_log_history, ARRAY_SIZE(zfs_keys_log_history));", "\tzfs_ioctl_register(\"space_snaps\", ZFS_IOC_SPACE_SNAPS,", "\t zfs_ioc_space_snaps, zfs_secpolicy_read, DATASET_NAME,", "\t POOL_CHECK_SUSPENDED, B_FALSE, B_FALSE,", "\t zfs_keys_space_snaps, ARRAY_SIZE(zfs_keys_space_snaps));", "\tzfs_ioctl_register(\"send\", ZFS_IOC_SEND_NEW,", "\t zfs_ioc_send_new, zfs_secpolicy_send_new, DATASET_NAME,", "\t POOL_CHECK_SUSPENDED, B_FALSE, B_FALSE,", "\t zfs_keys_send_new, ARRAY_SIZE(zfs_keys_send_new));", "\tzfs_ioctl_register(\"send_space\", ZFS_IOC_SEND_SPACE,", "\t zfs_ioc_send_space, zfs_secpolicy_read, DATASET_NAME,", "\t POOL_CHECK_SUSPENDED, B_FALSE, B_FALSE,", "\t zfs_keys_send_space, ARRAY_SIZE(zfs_keys_send_space));", "\tzfs_ioctl_register(\"create\", ZFS_IOC_CREATE,", "\t zfs_ioc_create, zfs_secpolicy_create_clone, DATASET_NAME,", "\t POOL_CHECK_SUSPENDED | POOL_CHECK_READONLY, B_TRUE, B_TRUE,", "\t zfs_keys_create, ARRAY_SIZE(zfs_keys_create));", "\tzfs_ioctl_register(\"clone\", ZFS_IOC_CLONE,", "\t zfs_ioc_clone, zfs_secpolicy_create_clone, DATASET_NAME,", "\t POOL_CHECK_SUSPENDED | POOL_CHECK_READONLY, B_TRUE, B_TRUE,", "\t zfs_keys_clone, ARRAY_SIZE(zfs_keys_clone));", "\tzfs_ioctl_register(\"remap\", ZFS_IOC_REMAP,", "\t zfs_ioc_remap, zfs_secpolicy_none, DATASET_NAME,", "\t POOL_CHECK_SUSPENDED | POOL_CHECK_READONLY, B_FALSE, B_TRUE,", "\t zfs_keys_remap, ARRAY_SIZE(zfs_keys_remap));", "\tzfs_ioctl_register(\"destroy_snaps\", ZFS_IOC_DESTROY_SNAPS,", "\t zfs_ioc_destroy_snaps, zfs_secpolicy_destroy_snaps, POOL_NAME,", "\t POOL_CHECK_SUSPENDED | POOL_CHECK_READONLY, B_TRUE, B_TRUE,", "\t zfs_keys_destroy_snaps, ARRAY_SIZE(zfs_keys_destroy_snaps));", "\tzfs_ioctl_register(\"hold\", ZFS_IOC_HOLD,", "\t zfs_ioc_hold, zfs_secpolicy_hold, POOL_NAME,", "\t POOL_CHECK_SUSPENDED | POOL_CHECK_READONLY, B_TRUE, B_TRUE,", "\t zfs_keys_hold, ARRAY_SIZE(zfs_keys_hold));", "\tzfs_ioctl_register(\"release\", ZFS_IOC_RELEASE,", "\t zfs_ioc_release, zfs_secpolicy_release, POOL_NAME,", "\t POOL_CHECK_SUSPENDED | POOL_CHECK_READONLY, B_TRUE, B_TRUE,", "\t zfs_keys_release, ARRAY_SIZE(zfs_keys_release));", "\tzfs_ioctl_register(\"get_holds\", ZFS_IOC_GET_HOLDS,", "\t zfs_ioc_get_holds, zfs_secpolicy_read, DATASET_NAME,", "\t POOL_CHECK_SUSPENDED, B_FALSE, B_FALSE,", "\t zfs_keys_get_holds, ARRAY_SIZE(zfs_keys_get_holds));", "\tzfs_ioctl_register(\"rollback\", ZFS_IOC_ROLLBACK,", "\t zfs_ioc_rollback, zfs_secpolicy_rollback, DATASET_NAME,", "\t POOL_CHECK_SUSPENDED | POOL_CHECK_READONLY, B_FALSE, B_TRUE,", "\t zfs_keys_rollback, ARRAY_SIZE(zfs_keys_rollback));", "\tzfs_ioctl_register(\"bookmark\", ZFS_IOC_BOOKMARK,", "\t zfs_ioc_bookmark, zfs_secpolicy_bookmark, POOL_NAME,", "\t POOL_CHECK_SUSPENDED | POOL_CHECK_READONLY, B_TRUE, B_TRUE,", "\t zfs_keys_bookmark, ARRAY_SIZE(zfs_keys_bookmark));", "\tzfs_ioctl_register(\"get_bookmarks\", ZFS_IOC_GET_BOOKMARKS,", "\t zfs_ioc_get_bookmarks, zfs_secpolicy_read, DATASET_NAME,", "\t POOL_CHECK_SUSPENDED, B_FALSE, B_FALSE,", "\t zfs_keys_get_bookmarks, ARRAY_SIZE(zfs_keys_get_bookmarks));", "\tzfs_ioctl_register(\"get_bookmark_props\", ZFS_IOC_GET_BOOKMARK_PROPS,", "\t zfs_ioc_get_bookmark_props, zfs_secpolicy_read, ENTITY_NAME,", "\t POOL_CHECK_SUSPENDED, B_FALSE, B_FALSE, zfs_keys_get_bookmark_props,", "\t ARRAY_SIZE(zfs_keys_get_bookmark_props));", "\tzfs_ioctl_register(\"destroy_bookmarks\", ZFS_IOC_DESTROY_BOOKMARKS,", "\t zfs_ioc_destroy_bookmarks, zfs_secpolicy_destroy_bookmarks,", "\t POOL_NAME,", "\t POOL_CHECK_SUSPENDED | POOL_CHECK_READONLY, B_TRUE, B_TRUE,", "\t zfs_keys_destroy_bookmarks,", "\t ARRAY_SIZE(zfs_keys_destroy_bookmarks));", "\tzfs_ioctl_register(\"receive\", ZFS_IOC_RECV_NEW,", "\t zfs_ioc_recv_new, zfs_secpolicy_recv, DATASET_NAME,", "\t POOL_CHECK_SUSPENDED | POOL_CHECK_READONLY, B_TRUE, B_TRUE,", "\t zfs_keys_recv_new, ARRAY_SIZE(zfs_keys_recv_new));", "\tzfs_ioctl_register(\"load-key\", ZFS_IOC_LOAD_KEY,", "\t zfs_ioc_load_key, zfs_secpolicy_load_key,", "\t DATASET_NAME, POOL_CHECK_SUSPENDED, B_TRUE, B_TRUE,", "\t zfs_keys_load_key, ARRAY_SIZE(zfs_keys_load_key));", "\tzfs_ioctl_register(\"unload-key\", ZFS_IOC_UNLOAD_KEY,", "\t zfs_ioc_unload_key, zfs_secpolicy_load_key,", "\t DATASET_NAME, POOL_CHECK_SUSPENDED, B_TRUE, B_TRUE,", "\t zfs_keys_unload_key, ARRAY_SIZE(zfs_keys_unload_key));", "\tzfs_ioctl_register(\"change-key\", ZFS_IOC_CHANGE_KEY,", "\t zfs_ioc_change_key, zfs_secpolicy_change_key,", "\t DATASET_NAME, POOL_CHECK_SUSPENDED | POOL_CHECK_READONLY,", "\t B_TRUE, B_TRUE, zfs_keys_change_key,", "\t ARRAY_SIZE(zfs_keys_change_key));", "\tzfs_ioctl_register(\"sync\", ZFS_IOC_POOL_SYNC,", "\t zfs_ioc_pool_sync, zfs_secpolicy_none, POOL_NAME,", "\t POOL_CHECK_SUSPENDED | POOL_CHECK_READONLY, B_FALSE, B_FALSE,", "\t zfs_keys_pool_sync, ARRAY_SIZE(zfs_keys_pool_sync));", "\tzfs_ioctl_register(\"reopen\", ZFS_IOC_POOL_REOPEN, zfs_ioc_pool_reopen,", "\t zfs_secpolicy_config, POOL_NAME, POOL_CHECK_SUSPENDED, B_TRUE,", "\t B_TRUE, zfs_keys_pool_reopen, ARRAY_SIZE(zfs_keys_pool_reopen));", "\tzfs_ioctl_register(\"channel_program\", ZFS_IOC_CHANNEL_PROGRAM,", "\t zfs_ioc_channel_program, zfs_secpolicy_config,", "\t POOL_NAME, POOL_CHECK_SUSPENDED | POOL_CHECK_READONLY, B_TRUE,", "\t B_TRUE, zfs_keys_channel_program,", "\t ARRAY_SIZE(zfs_keys_channel_program));", "\tzfs_ioctl_register(\"redact\", ZFS_IOC_REDACT,", "\t zfs_ioc_redact, zfs_secpolicy_config, DATASET_NAME,", "\t POOL_CHECK_SUSPENDED | POOL_CHECK_READONLY, B_TRUE, B_TRUE,", "\t zfs_keys_redact, ARRAY_SIZE(zfs_keys_redact));", "\tzfs_ioctl_register(\"zpool_checkpoint\", ZFS_IOC_POOL_CHECKPOINT,", "\t zfs_ioc_pool_checkpoint, zfs_secpolicy_config, POOL_NAME,", "\t POOL_CHECK_SUSPENDED | POOL_CHECK_READONLY, B_TRUE, B_TRUE,", "\t zfs_keys_pool_checkpoint, ARRAY_SIZE(zfs_keys_pool_checkpoint));", "\tzfs_ioctl_register(\"zpool_discard_checkpoint\",", "\t ZFS_IOC_POOL_DISCARD_CHECKPOINT, zfs_ioc_pool_discard_checkpoint,", "\t zfs_secpolicy_config, POOL_NAME,", "\t POOL_CHECK_SUSPENDED | POOL_CHECK_READONLY, B_TRUE, B_TRUE,", "\t zfs_keys_pool_discard_checkpoint,", "\t ARRAY_SIZE(zfs_keys_pool_discard_checkpoint));", "\tzfs_ioctl_register(\"initialize\", ZFS_IOC_POOL_INITIALIZE,", "\t zfs_ioc_pool_initialize, zfs_secpolicy_config, POOL_NAME,", "\t POOL_CHECK_SUSPENDED | POOL_CHECK_READONLY, B_TRUE, B_TRUE,", "\t zfs_keys_pool_initialize, ARRAY_SIZE(zfs_keys_pool_initialize));", "\tzfs_ioctl_register(\"trim\", ZFS_IOC_POOL_TRIM,", "\t zfs_ioc_pool_trim, zfs_secpolicy_config, POOL_NAME,", "\t POOL_CHECK_SUSPENDED | POOL_CHECK_READONLY, B_TRUE, B_TRUE,", "\t zfs_keys_pool_trim, ARRAY_SIZE(zfs_keys_pool_trim));", "\tzfs_ioctl_register(\"wait\", ZFS_IOC_WAIT,", "\t zfs_ioc_wait, zfs_secpolicy_none, POOL_NAME,", "\t POOL_CHECK_SUSPENDED | POOL_CHECK_READONLY, B_FALSE, B_FALSE,", "\t zfs_keys_pool_wait, ARRAY_SIZE(zfs_keys_pool_wait));", "\tzfs_ioctl_register(\"wait_fs\", ZFS_IOC_WAIT_FS,", "\t zfs_ioc_wait_fs, zfs_secpolicy_none, DATASET_NAME,", "\t POOL_CHECK_SUSPENDED | POOL_CHECK_READONLY, B_FALSE, B_FALSE,", "\t zfs_keys_fs_wait, ARRAY_SIZE(zfs_keys_fs_wait));", "\tzfs_ioctl_register(\"set_bootenv\", ZFS_IOC_SET_BOOTENV,", "\t zfs_ioc_set_bootenv, zfs_secpolicy_config, POOL_NAME,", "\t POOL_CHECK_SUSPENDED | POOL_CHECK_READONLY, B_FALSE, B_TRUE,", "\t zfs_keys_set_bootenv, ARRAY_SIZE(zfs_keys_set_bootenv));", "\tzfs_ioctl_register(\"get_bootenv\", ZFS_IOC_GET_BOOTENV,", "\t zfs_ioc_get_bootenv, zfs_secpolicy_none, POOL_NAME,", "\t POOL_CHECK_SUSPENDED, B_FALSE, B_TRUE,", "\t zfs_keys_get_bootenv, ARRAY_SIZE(zfs_keys_get_bootenv));", "\tzfs_ioctl_register(\"zpool_vdev_get_props\", ZFS_IOC_VDEV_GET_PROPS,", "\t zfs_ioc_vdev_get_props, zfs_secpolicy_read, POOL_NAME,", "\t POOL_CHECK_NONE, B_FALSE, B_FALSE, zfs_keys_vdev_get_props,", "\t ARRAY_SIZE(zfs_keys_vdev_get_props));", "\tzfs_ioctl_register(\"zpool_vdev_set_props\", ZFS_IOC_VDEV_SET_PROPS,", "\t zfs_ioc_vdev_set_props, zfs_secpolicy_config, POOL_NAME,", "\t POOL_CHECK_SUSPENDED | POOL_CHECK_READONLY, B_FALSE, B_FALSE,", "\t zfs_keys_vdev_set_props, ARRAY_SIZE(zfs_keys_vdev_set_props));", "\tzfs_ioctl_register(\"scrub\", ZFS_IOC_POOL_SCRUB,", "\t zfs_ioc_pool_scrub, zfs_secpolicy_config, POOL_NAME,", "\t POOL_CHECK_NONE, B_TRUE, B_TRUE,", "\t zfs_keys_pool_scrub, ARRAY_SIZE(zfs_keys_pool_scrub));", "\t/* IOCTLS that use the legacy function signature */", "\tzfs_ioctl_register_legacy(ZFS_IOC_POOL_FREEZE, zfs_ioc_pool_freeze,", "\t zfs_secpolicy_config, NO_NAME, B_FALSE, POOL_CHECK_READONLY);", "\tzfs_ioctl_register_pool(ZFS_IOC_POOL_CREATE, zfs_ioc_pool_create,", "\t zfs_secpolicy_config, B_TRUE, POOL_CHECK_NONE);", "\tzfs_ioctl_register_pool_modify(ZFS_IOC_POOL_SCAN,", "\t zfs_ioc_pool_scan);", "\tzfs_ioctl_register_pool_modify(ZFS_IOC_POOL_UPGRADE,", "\t zfs_ioc_pool_upgrade);", "\tzfs_ioctl_register_pool_modify(ZFS_IOC_VDEV_ADD,", "\t zfs_ioc_vdev_add);", "\tzfs_ioctl_register_pool_modify(ZFS_IOC_VDEV_REMOVE,", "\t zfs_ioc_vdev_remove);", "\tzfs_ioctl_register_pool_modify(ZFS_IOC_VDEV_SET_STATE,", "\t zfs_ioc_vdev_set_state);", "\tzfs_ioctl_register_pool_modify(ZFS_IOC_VDEV_ATTACH,", "\t zfs_ioc_vdev_attach);", "\tzfs_ioctl_register_pool_modify(ZFS_IOC_VDEV_DETACH,", "\t zfs_ioc_vdev_detach);", "\tzfs_ioctl_register_pool_modify(ZFS_IOC_VDEV_SETPATH,", "\t zfs_ioc_vdev_setpath);", "\tzfs_ioctl_register_pool_modify(ZFS_IOC_VDEV_SETFRU,", "\t zfs_ioc_vdev_setfru);", "\tzfs_ioctl_register_pool_modify(ZFS_IOC_POOL_SET_PROPS,", "\t zfs_ioc_pool_set_props);", "\tzfs_ioctl_register_pool_modify(ZFS_IOC_VDEV_SPLIT,", "\t zfs_ioc_vdev_split);", "\tzfs_ioctl_register_pool_modify(ZFS_IOC_POOL_REGUID,", "\t zfs_ioc_pool_reguid);", "\tzfs_ioctl_register_pool_meta(ZFS_IOC_POOL_CONFIGS,", "\t zfs_ioc_pool_configs, zfs_secpolicy_none);", "\tzfs_ioctl_register_pool_meta(ZFS_IOC_POOL_TRYIMPORT,", "\t zfs_ioc_pool_tryimport, zfs_secpolicy_config);", "\tzfs_ioctl_register_pool_meta(ZFS_IOC_INJECT_FAULT,", "\t zfs_ioc_inject_fault, zfs_secpolicy_inject);", "\tzfs_ioctl_register_pool_meta(ZFS_IOC_CLEAR_FAULT,", "\t zfs_ioc_clear_fault, zfs_secpolicy_inject);", "\tzfs_ioctl_register_pool_meta(ZFS_IOC_INJECT_LIST_NEXT,", "\t zfs_ioc_inject_list_next, zfs_secpolicy_inject);", "\t/*", "\t * pool destroy, and export don't log the history as part of", "\t * zfsdev_ioctl, but rather zfs_ioc_pool_export", "\t * does the logging of those commands.", "\t */", "\tzfs_ioctl_register_pool(ZFS_IOC_POOL_DESTROY, zfs_ioc_pool_destroy,", "\t zfs_secpolicy_config, B_FALSE, POOL_CHECK_SUSPENDED);", "\tzfs_ioctl_register_pool(ZFS_IOC_POOL_EXPORT, zfs_ioc_pool_export,", "\t zfs_secpolicy_config, B_FALSE, POOL_CHECK_SUSPENDED);", "\tzfs_ioctl_register_pool(ZFS_IOC_POOL_STATS, zfs_ioc_pool_stats,", "\t zfs_secpolicy_read, B_FALSE, POOL_CHECK_NONE);", "\tzfs_ioctl_register_pool(ZFS_IOC_POOL_GET_PROPS, zfs_ioc_pool_get_props,", "\t zfs_secpolicy_read, B_FALSE, POOL_CHECK_NONE);", "\tzfs_ioctl_register_pool(ZFS_IOC_ERROR_LOG, zfs_ioc_error_log,", "\t zfs_secpolicy_inject, B_FALSE, POOL_CHECK_SUSPENDED);", "\tzfs_ioctl_register_pool(ZFS_IOC_DSOBJ_TO_DSNAME,", "\t zfs_ioc_dsobj_to_dsname,", "\t zfs_secpolicy_diff, B_FALSE, POOL_CHECK_SUSPENDED);", "\tzfs_ioctl_register_pool(ZFS_IOC_POOL_GET_HISTORY,", "\t zfs_ioc_pool_get_history,", "\t zfs_secpolicy_config, B_FALSE, POOL_CHECK_SUSPENDED);", "\tzfs_ioctl_register_pool(ZFS_IOC_POOL_IMPORT, zfs_ioc_pool_import,", "\t zfs_secpolicy_config, B_TRUE, POOL_CHECK_NONE);", "\tzfs_ioctl_register_pool(ZFS_IOC_CLEAR, zfs_ioc_clear,", "\t zfs_secpolicy_config, B_TRUE, POOL_CHECK_READONLY);", "\tzfs_ioctl_register_dataset_read(ZFS_IOC_SPACE_WRITTEN,", "\t zfs_ioc_space_written);", "\tzfs_ioctl_register_dataset_read(ZFS_IOC_OBJSET_RECVD_PROPS,", "\t zfs_ioc_objset_recvd_props);", "\tzfs_ioctl_register_dataset_read(ZFS_IOC_NEXT_OBJ,", "\t zfs_ioc_next_obj);", "\tzfs_ioctl_register_dataset_read(ZFS_IOC_GET_FSACL,", "\t zfs_ioc_get_fsacl);", "\tzfs_ioctl_register_dataset_read(ZFS_IOC_OBJSET_STATS,", "\t zfs_ioc_objset_stats);", "\tzfs_ioctl_register_dataset_read(ZFS_IOC_OBJSET_ZPLPROPS,", "\t zfs_ioc_objset_zplprops);", "\tzfs_ioctl_register_dataset_read(ZFS_IOC_DATASET_LIST_NEXT,", "\t zfs_ioc_dataset_list_next);", "\tzfs_ioctl_register_dataset_read(ZFS_IOC_SNAPSHOT_LIST_NEXT,", "\t zfs_ioc_snapshot_list_next);", "\tzfs_ioctl_register_dataset_read(ZFS_IOC_SEND_PROGRESS,", "\t zfs_ioc_send_progress);", "\tzfs_ioctl_register_dataset_read_secpolicy(ZFS_IOC_DIFF,", "\t zfs_ioc_diff, zfs_secpolicy_diff);", "\tzfs_ioctl_register_dataset_read_secpolicy(ZFS_IOC_OBJ_TO_STATS,", "\t zfs_ioc_obj_to_stats, zfs_secpolicy_diff);", "\tzfs_ioctl_register_dataset_read_secpolicy(ZFS_IOC_OBJ_TO_PATH,", "\t zfs_ioc_obj_to_path, zfs_secpolicy_diff);", "\tzfs_ioctl_register_dataset_read_secpolicy(ZFS_IOC_USERSPACE_ONE,", "\t zfs_ioc_userspace_one, zfs_secpolicy_userspace_one);", "\tzfs_ioctl_register_dataset_read_secpolicy(ZFS_IOC_USERSPACE_MANY,", "\t zfs_ioc_userspace_many, zfs_secpolicy_userspace_many);", "\tzfs_ioctl_register_dataset_read_secpolicy(ZFS_IOC_SEND,", "\t zfs_ioc_send, zfs_secpolicy_send);", "\tzfs_ioctl_register_dataset_modify(ZFS_IOC_SET_PROP, zfs_ioc_set_prop,", "\t zfs_secpolicy_none);", "\tzfs_ioctl_register_dataset_modify(ZFS_IOC_DESTROY, zfs_ioc_destroy,", "\t zfs_secpolicy_destroy);", "\tzfs_ioctl_register_dataset_modify(ZFS_IOC_RENAME, zfs_ioc_rename,", "\t zfs_secpolicy_rename);", "\tzfs_ioctl_register_dataset_modify(ZFS_IOC_RECV, zfs_ioc_recv,", "\t zfs_secpolicy_recv);", "\tzfs_ioctl_register_dataset_modify(ZFS_IOC_PROMOTE, zfs_ioc_promote,", "\t zfs_secpolicy_promote);", "\tzfs_ioctl_register_dataset_modify(ZFS_IOC_INHERIT_PROP,", "\t zfs_ioc_inherit_prop, zfs_secpolicy_inherit_prop);", "\tzfs_ioctl_register_dataset_modify(ZFS_IOC_SET_FSACL, zfs_ioc_set_fsacl,", "\t zfs_secpolicy_set_fsacl);", "\tzfs_ioctl_register_dataset_nolog(ZFS_IOC_SHARE, zfs_ioc_share,", "\t zfs_secpolicy_share, POOL_CHECK_NONE);", "\tzfs_ioctl_register_dataset_nolog(ZFS_IOC_SMB_ACL, zfs_ioc_smb_acl,", "\t zfs_secpolicy_smb_acl, POOL_CHECK_NONE);", "\tzfs_ioctl_register_dataset_nolog(ZFS_IOC_USERSPACE_UPGRADE,", "\t zfs_ioc_userspace_upgrade, zfs_secpolicy_userspace_upgrade,", "\t POOL_CHECK_SUSPENDED | POOL_CHECK_READONLY);", "\tzfs_ioctl_register_dataset_nolog(ZFS_IOC_TMP_SNAPSHOT,", "\t zfs_ioc_tmp_snapshot, zfs_secpolicy_tmp_snapshot,", "\t POOL_CHECK_SUSPENDED | POOL_CHECK_READONLY);", "\tzfs_ioctl_register_legacy(ZFS_IOC_EVENTS_NEXT, zfs_ioc_events_next,", "\t zfs_secpolicy_config, NO_NAME, B_FALSE, POOL_CHECK_NONE);", "\tzfs_ioctl_register_legacy(ZFS_IOC_EVENTS_CLEAR, zfs_ioc_events_clear,", "\t zfs_secpolicy_config, NO_NAME, B_FALSE, POOL_CHECK_NONE);", "\tzfs_ioctl_register_legacy(ZFS_IOC_EVENTS_SEEK, zfs_ioc_events_seek,", "\t zfs_secpolicy_config, NO_NAME, B_FALSE, POOL_CHECK_NONE);", "\tzfs_ioctl_init_os();", "}" ] } ], "type": "fnptr-global-struct" }
null
null
null
null
null
null
{ "callees": { "targets": { "aes_encrypt_block": null, "aes_xor_block": null, "count_unflushed_space_cb": null, "ddt_zap_lookup": null, "dsl_dataset_hold": null, "dsl_dataset_hold_obj_string": null, "dump_acl": null, "dump_bpobj": null, "dump_bpobj_subobjs": null, "dump_ddt_zap": null, "dump_dmu_objset": null, "dump_dnode": null, "dump_dsl_dataset": null, "dump_dsl_dir": null, "dump_history_offsets": null, "dump_none": null, "dump_packed_nvlist": null, "dump_sa_attrs": null, "dump_sa_layouts": null, "dump_uint64": null, "dump_uint8": null, "dump_unknown": null, "dump_zap": null, "dump_znode": null, "dump_zpldir": null, "fletcher_4_scalar_native": null, "fletcher_4_superscalar4_native": null, "fletcher_4_superscalar_native": null, "gzip_decompress": null, "load_unflushed_cb": null, "load_unflushed_svr_segs_cb": null, "log_spacemap_obsolete_stats_cb": null, "lz4_decompress_zfs": null, "lzjb_decompress": null, "mul_x1_0": null, "mul_x1_1": null, "mul_x1_10": null, "mul_x1_100": null, "mul_x1_101": null, "mul_x1_102": null, "mul_x1_103": null, "mul_x1_104": null, "mul_x1_105": null, "mul_x1_106": null, "mul_x1_107": null, "mul_x1_108": null, "mul_x1_109": null, "mul_x1_11": null, "mul_x1_110": null, "mul_x1_111": null, "mul_x1_112": null, "mul_x1_113": null, "mul_x1_114": null, "mul_x1_115": null, "mul_x1_116": null, "mul_x1_117": null, "mul_x1_118": null, "mul_x1_119": null, "mul_x1_12": null, "mul_x1_120": null, "mul_x1_121": null, "mul_x1_122": null, "mul_x1_123": null, "mul_x1_124": null, "mul_x1_125": null, "mul_x1_126": null, "mul_x1_127": null, "mul_x1_128": null, "mul_x1_129": null, "mul_x1_13": null, "mul_x1_130": null, "mul_x1_131": null, "mul_x1_132": null, "mul_x1_133": null, "mul_x1_134": null, "mul_x1_135": null, "mul_x1_136": null, "mul_x1_137": null, "mul_x1_138": null, "mul_x1_139": null, "mul_x1_14": null, "mul_x1_140": null, "mul_x1_141": null, "mul_x1_142": null, "mul_x1_143": null, "mul_x1_144": null, "mul_x1_145": null, "mul_x1_146": null, "mul_x1_147": null, "mul_x1_148": null, "mul_x1_149": null, "mul_x1_15": null, "mul_x1_150": null, "mul_x1_151": null, "mul_x1_152": null, "mul_x1_153": null, "mul_x1_154": null, "mul_x1_155": null, "mul_x1_156": null, "mul_x1_157": null, "mul_x1_158": null, "mul_x1_159": null, "mul_x1_16": null, "mul_x1_160": null, "mul_x1_161": null, "mul_x1_162": null, "mul_x1_163": null, "mul_x1_164": null, "mul_x1_165": null, "mul_x1_166": null, "mul_x1_167": null, "mul_x1_168": null, "mul_x1_169": null, "mul_x1_17": null, "mul_x1_170": null, "mul_x1_171": null, "mul_x1_172": null, "mul_x1_173": null, "mul_x1_174": null, "mul_x1_175": null, "mul_x1_176": null, "mul_x1_177": null, "mul_x1_178": null, "mul_x1_179": null, "mul_x1_18": null, "mul_x1_180": null, "mul_x1_181": null, "mul_x1_182": null, "mul_x1_183": null, "mul_x1_184": null, "mul_x1_185": null, "mul_x1_186": null, "mul_x1_187": null, "mul_x1_188": null, "mul_x1_189": null, "mul_x1_19": null, "mul_x1_190": null, "mul_x1_191": null, "mul_x1_192": null, "mul_x1_193": null, "mul_x1_194": null, "mul_x1_195": null, "mul_x1_196": null, "mul_x1_197": null, "mul_x1_198": null, "mul_x1_199": null, "mul_x1_2": null, "mul_x1_20": null, "mul_x1_200": null, "mul_x1_201": null, "mul_x1_202": null, "mul_x1_203": null, "mul_x1_204": null, "mul_x1_205": null, "mul_x1_206": null, "mul_x1_207": null, "mul_x1_208": null, "mul_x1_209": null, "mul_x1_21": null, "mul_x1_210": null, "mul_x1_211": null, "mul_x1_212": null, "mul_x1_213": null, "mul_x1_214": null, "mul_x1_215": null, "mul_x1_216": null, "mul_x1_217": null, "mul_x1_218": null, "mul_x1_219": null, "mul_x1_22": null, "mul_x1_220": null, "mul_x1_221": null, "mul_x1_222": null, "mul_x1_223": null, "mul_x1_224": null, "mul_x1_225": null, "mul_x1_226": null, "mul_x1_227": null, "mul_x1_228": null, "mul_x1_229": null, "mul_x1_23": null, "mul_x1_230": null, "mul_x1_231": null, "mul_x1_232": null, "mul_x1_233": null, "mul_x1_234": null, "mul_x1_235": null, "mul_x1_236": null, "mul_x1_237": null, "mul_x1_238": null, "mul_x1_239": null, "mul_x1_24": null, "mul_x1_240": null, "mul_x1_241": null, "mul_x1_242": null, "mul_x1_243": null, "mul_x1_244": null, "mul_x1_245": null, "mul_x1_246": null, "mul_x1_247": null, "mul_x1_248": null, "mul_x1_249": null, "mul_x1_25": null, "mul_x1_250": null, "mul_x1_251": null, "mul_x1_252": null, "mul_x1_253": null, "mul_x1_254": null, "mul_x1_255": null, "mul_x1_26": null, "mul_x1_27": null, "mul_x1_28": null, "mul_x1_29": null, "mul_x1_3": null, "mul_x1_30": null, "mul_x1_31": null, "mul_x1_32": null, "mul_x1_33": null, "mul_x1_34": null, "mul_x1_35": null, "mul_x1_36": null, "mul_x1_37": null, "mul_x1_38": null, "mul_x1_39": null, "mul_x1_4": null, "mul_x1_40": null, "mul_x1_41": null, "mul_x1_42": null, "mul_x1_43": null, "mul_x1_44": null, "mul_x1_45": null, "mul_x1_46": null, "mul_x1_47": null, "mul_x1_48": null, "mul_x1_49": null, "mul_x1_5": null, "mul_x1_50": null, "mul_x1_51": null, "mul_x1_52": null, "mul_x1_53": null, "mul_x1_54": null, "mul_x1_55": null, "mul_x1_56": null, "mul_x1_57": null, "mul_x1_58": null, "mul_x1_59": null, "mul_x1_6": null, "mul_x1_60": null, "mul_x1_61": null, "mul_x1_62": null, "mul_x1_63": null, "mul_x1_64": null, "mul_x1_65": null, "mul_x1_66": null, "mul_x1_67": null, "mul_x1_68": null, "mul_x1_69": null, "mul_x1_7": null, "mul_x1_70": null, "mul_x1_71": null, "mul_x1_72": null, "mul_x1_73": null, "mul_x1_74": null, "mul_x1_75": null, "mul_x1_76": null, "mul_x1_77": null, "mul_x1_78": null, "mul_x1_79": null, "mul_x1_8": null, "mul_x1_80": null, "mul_x1_81": null, "mul_x1_82": null, "mul_x1_83": null, "mul_x1_84": null, "mul_x1_85": null, "mul_x1_86": null, "mul_x1_87": null, "mul_x1_88": null, "mul_x1_89": null, "mul_x1_9": null, "mul_x1_90": null, "mul_x1_91": null, "mul_x1_92": null, "mul_x1_93": null, "mul_x1_94": null, "mul_x1_95": null, "mul_x1_96": null, "mul_x1_97": null, "mul_x1_98": null, "mul_x1_99": null, "nfs_commit_shares": null, "nfs_copy_entries_cb": null, "nfs_is_shared_cb": null, "sha256_generic": null, "sha512_generic": null, "smb_update_shares": null, "spacemap_check_sm_log_cb": null, "tf_sha256_transform_x64": null, "tf_sha512_transform_x64": null, "vdev_indirect_remap": null, "zfs_ace_fuid_size": "", "zfs_ace_v0_size": "", "zfs_do_allow": null, "zfs_do_bookmark": null, "zfs_do_change_key": null, "zfs_do_channel_program": null, "zfs_do_clone": null, "zfs_do_create": null, "zfs_do_destroy": null, "zfs_do_diff": null, "zfs_do_get": null, "zfs_do_hold": null, "zfs_do_holds": null, "zfs_do_inherit": null, "zfs_do_list": null, "zfs_do_load_key": null, "zfs_do_mount": null, "zfs_do_project": null, "zfs_do_promote": null, "zfs_do_receive": null, "zfs_do_redact": null, "zfs_do_release": null, "zfs_do_rename": null, "zfs_do_rollback": null, "zfs_do_send": null, "zfs_do_set": null, "zfs_do_share": null, "zfs_do_snapshot": null, "zfs_do_unallow": null, "zfs_do_unload_key": null, "zfs_do_unmount": null, "zfs_do_unshare": null, "zfs_do_unzone": null, "zfs_do_upgrade": null, "zfs_do_userspace": null, "zfs_do_version": null, "zfs_do_wait": null, "zfs_do_zone": null, "zfs_fm_close": null, "zfs_ioc_clear": null, "zfs_ioc_clear_fault": null, "zfs_ioc_dataset_list_next": null, "zfs_ioc_destroy": null, "zfs_ioc_diff": null, "zfs_ioc_dsobj_to_dsname": null, "zfs_ioc_error_log": null, "zfs_ioc_events_clear": null, "zfs_ioc_events_next": null, "zfs_ioc_events_seek": null, "zfs_ioc_get_fsacl": null, "zfs_ioc_inherit_prop": null, "zfs_ioc_inject_fault": null, "zfs_ioc_inject_list_next": null, "zfs_ioc_next_obj": null, "zfs_ioc_obj_to_path": null, "zfs_ioc_obj_to_stats": null, "zfs_ioc_objset_recvd_props": null, "zfs_ioc_objset_stats": null, "zfs_ioc_objset_zplprops": null, "zfs_ioc_pool_configs": null, "zfs_ioc_pool_create": null, "zfs_ioc_pool_destroy": null, "zfs_ioc_pool_export": null, "zfs_ioc_pool_freeze": null, "zfs_ioc_pool_get_history": null, "zfs_ioc_pool_get_props": null, "zfs_ioc_pool_import": null, "zfs_ioc_pool_reguid": null, "zfs_ioc_pool_scan": null, "zfs_ioc_pool_set_props": null, "zfs_ioc_pool_stats": null, "zfs_ioc_pool_tryimport": null, "zfs_ioc_pool_upgrade": null, "zfs_ioc_promote": null, "zfs_ioc_recv": null, "zfs_ioc_rename": null, "zfs_ioc_send": null, "zfs_ioc_send_progress": null, "zfs_ioc_set_fsacl": null, "zfs_ioc_set_prop": null, "zfs_ioc_share": null, "zfs_ioc_smb_acl": null, "zfs_ioc_snapshot_list_next": null, "zfs_ioc_space_written": null, "zfs_ioc_tmp_snapshot": null, "zfs_ioc_userspace_many": null, "zfs_ioc_userspace_one": null, "zfs_ioc_userspace_upgrade": null, "zfs_ioc_vdev_add": null, "zfs_ioc_vdev_attach": null, "zfs_ioc_vdev_detach": null, "zfs_ioc_vdev_remove": null, "zfs_ioc_vdev_set_state": null, "zfs_ioc_vdev_setfru": null, "zfs_ioc_vdev_setpath": null, "zfs_ioc_vdev_split": null, "zfs_zstd_decompress": null, "zle_decompress": null } }, "callsite": "aclp->z_ops->ace_size", "chain_summary": [ { "parent": "", "source_code": [ "static void", "zfs_acl_chmod(boolean_t isdir, uint64_t mode, boolean_t split, boolean_t trim,", " zfs_acl_t *aclp)", "{", "\t...", "\twhile ((acep = zfs_acl_next_ace(aclp, acep, &who, &access_mask,", "\t &iflags, &type))) {", "\t\t...", "\t\tzfs_set_ace(aclp, zacep, access_mask, type, who, iflags);", "\t\tace_size = aclp->z_ops->ace_size(acep);", "\t\tzacep = (void *)((uintptr_t)zacep + ace_size);", "\t\tnew_count++;", "\t\tnew_bytes += ace_size;", "\t}", "}" ] }, { "parent": "", "source_code": [ "int", "zfs_acl_chmod_setattr(znode_t *zp, zfs_acl_t **aclp, uint64_t mode)", "{", "\tint error = 0;", "\tmutex_enter(&zp->z_acl_lock);", "\tmutex_enter(&zp->z_lock);", "\tif (ZTOZSB(zp)->z_acl_mode == ZFS_ACL_DISCARD)", "\t\t*aclp = zfs_acl_alloc(zfs_acl_version_zp(zp));", "\telse", "\t\terror = zfs_acl_node_read(zp, B_TRUE, aclp, B_TRUE);", "\tif (error == 0) {", "\t\t(*aclp)->z_hints = zp->z_pflags & V4_ACL_WIDE_FLAGS;", "\t\tzfs_acl_chmod(S_ISDIR(ZTOI(zp)->i_mode), mode, B_TRUE,", "\t\t (ZTOZSB(zp)->z_acl_mode == ZFS_ACL_GROUPMASK), *aclp);", "\t}", "\tmutex_exit(&zp->z_lock);", "\tmutex_exit(&zp->z_acl_lock);", "\treturn (error);", "}" ] }, { "parent": "", "source_code": [ "int", "zfs_acl_ids_create(znode_t *dzp, int flag, vattr_t *vap, cred_t *cr,", " vsecattr_t *vsecp, zfs_acl_ids_t *acl_ids, zidmap_t *mnt_ns)", "{", "\t...", "\tmemset(acl_ids, 0, sizeof (zfs_acl_ids_t));", "\tacl_ids->z_mode = vap->va_mode;", "\t...", "\tif (acl_ids->z_aclp == NULL) {", "\t\t...", "\t\tif (!(flag & IS_ROOT_NODE) &&", "\t\t (dzp->z_pflags & ZFS_INHERIT_ACE) &&", "\t\t !(dzp->z_pflags & ZFS_XATTR)) {", "\t\t\t...", "\t\t\tacl_ids->z_aclp = zfs_acl_inherit(zfsvfs,", "\t\t\t vap->va_mode, paclp, acl_ids->z_mode, &need_chmod);", "\t\t\tinherited = B_TRUE;", "\t\t} else {", "\t\t\tacl_ids->z_aclp =", "\t\t\t zfs_acl_alloc(zfs_acl_version_zp(dzp));", "\t\t\tacl_ids->z_aclp->z_hints |= ZFS_ACL_TRIVIAL;", "\t\t}", "\t\tmutex_exit(&dzp->z_lock);", "\t\tmutex_exit(&dzp->z_acl_lock);", "\t\tif (need_chmod) {", "\t\t\tif (S_ISDIR(vap->va_mode))", "\t\t\t\tacl_ids->z_aclp->z_hints |=", "\t\t\t\t ZFS_ACL_AUTO_INHERIT;", "\t\t\tif (zfsvfs->z_acl_mode == ZFS_ACL_GROUPMASK &&", "\t\t\t zfsvfs->z_acl_inherit != ZFS_ACL_PASSTHROUGH &&", "\t\t\t zfsvfs->z_acl_inherit != ZFS_ACL_PASSTHROUGH_X)", "\t\t\t\ttrim = B_TRUE;", "\t\t\tzfs_acl_chmod(vap->va_mode, acl_ids->z_mode, B_FALSE,", "\t\t\t trim, acl_ids->z_aclp);", "\t\t}", "\t}", "\tif (inherited || vsecp) {", "\t\tacl_ids->z_mode = zfs_mode_compute(acl_ids->z_mode,", "\t\t acl_ids->z_aclp, &acl_ids->z_aclp->z_hints,", "\t\t acl_ids->z_fuid, acl_ids->z_fgid);", "\t\tif (ace_trivial_common(acl_ids->z_aclp, 0, zfs_ace_walk) == 0)", "\t\t\tacl_ids->z_aclp->z_hints |= ZFS_ACL_TRIVIAL;", "\t}", "\treturn (0);", "}" ] }, { "parent": "", "source_code": [ "static zfs_acl_t *", "zfs_acl_inherit(zfsvfs_t *zfsvfs, umode_t va_mode, zfs_acl_t *paclp,", " uint64_t mode, boolean_t *need_chmod)", "{", "\tvoid\t\t*pacep = NULL;", "\tvoid\t\t*acep;", "\t...", "\taclp = zfs_acl_alloc(paclp->z_version);", "\taclinherit = zfsvfs->z_acl_inherit;", "\tif (aclinherit == ZFS_ACL_DISCARD || S_ISLNK(va_mode))", "\t\treturn (aclp);", "\twhile ((pacep = zfs_acl_next_ace(paclp, pacep, &who,", "\t &access_mask, &iflags, &type))) {", "\t\t\t...", "\t}", "\treturn (aclp);", "}" ] }, { "parent": "", "source_code": [ "zfs_acl_t *", "zfs_acl_alloc(int vers)", "{", "\tzfs_acl_t *aclp;", "\taclp = kmem_zalloc(sizeof (zfs_acl_t), KM_SLEEP);", "\tlist_create(&aclp->z_acl, sizeof (zfs_acl_node_t),", "\t offsetof(zfs_acl_node_t, z_next));", "\taclp->z_version = vers;", "\tif (vers == ZFS_ACL_VERSION_FUID)", "\t\taclp->z_ops = &zfs_acl_fuid_ops;", "\telse", "\t\taclp->z_ops = &zfs_acl_v0_ops;", "\treturn (aclp);", "}" ] }, { "parent": "", "source_code": [ "static const acl_ops_t zfs_acl_v0_ops = {", "\t.ace_mask_get = zfs_ace_v0_get_mask,", "\t.ace_mask_set = zfs_ace_v0_set_mask,", "\t.ace_flags_get = zfs_ace_v0_get_flags,", "\t.ace_flags_set = zfs_ace_v0_set_flags,", "\t.ace_type_get = zfs_ace_v0_get_type,", "\t.ace_type_set = zfs_ace_v0_set_type,", "\t.ace_who_get = zfs_ace_v0_get_who,", "\t.ace_who_set = zfs_ace_v0_set_who,", "\t.ace_size = zfs_ace_v0_size,", "\t.ace_abstract_size = zfs_ace_v0_abstract_size,", "\t.ace_mask_off = zfs_ace_v0_mask_off,", "\t.ace_data = zfs_ace_v0_data", "};", "static const acl_ops_t zfs_acl_fuid_ops = {", "\t.ace_mask_get = zfs_ace_fuid_get_mask,", "\t.ace_mask_set = zfs_ace_fuid_set_mask,", "\t.ace_flags_get = zfs_ace_fuid_get_flags,", "\t.ace_flags_set = zfs_ace_fuid_set_flags,", "\t.ace_type_get = zfs_ace_fuid_get_type,", "\t.ace_type_set = zfs_ace_fuid_set_type,", "\t.ace_who_get = zfs_ace_fuid_get_who,", "\t.ace_who_set = zfs_ace_fuid_set_who,", "\t.ace_size = zfs_ace_fuid_size,", "\t.ace_abstract_size = zfs_ace_fuid_abstract_size,", "\t.ace_mask_off = zfs_ace_fuid_mask_off,", "\t.ace_data = zfs_ace_fuid_data", "};" ] } ], "type": "fnptr-global-struct" }
null
null
null
null
null
null
{ "callees": { "targets": { "aes_encrypt_block": null, "aes_xor_block": null, "count_unflushed_space_cb": null, "ddt_zap_lookup": null, "dsl_dataset_hold": null, "dsl_dataset_hold_obj_string": null, "dump_acl": null, "dump_bpobj": null, "dump_bpobj_subobjs": null, "dump_ddt_zap": null, "dump_dmu_objset": null, "dump_dnode": null, "dump_dsl_dataset": null, "dump_dsl_dir": null, "dump_history_offsets": null, "dump_none": null, "dump_packed_nvlist": null, "dump_sa_attrs": null, "dump_sa_layouts": null, "dump_uint64": null, "dump_uint8": null, "dump_unknown": null, "dump_zap": null, "dump_znode": null, "dump_zpldir": null, "fletcher_4_scalar_native": null, "fletcher_4_superscalar4_native": null, "fletcher_4_superscalar_native": null, "gzip_decompress": "", "load_unflushed_cb": null, "load_unflushed_svr_segs_cb": null, "log_spacemap_obsolete_stats_cb": null, "lz4_decompress_zfs": "", "lzjb_decompress": "", "mul_x1_0": null, "mul_x1_1": null, "mul_x1_10": null, "mul_x1_100": null, "mul_x1_101": null, "mul_x1_102": null, "mul_x1_103": null, "mul_x1_104": null, "mul_x1_105": null, "mul_x1_106": null, "mul_x1_107": null, "mul_x1_108": null, "mul_x1_109": null, "mul_x1_11": null, "mul_x1_110": null, "mul_x1_111": null, "mul_x1_112": null, "mul_x1_113": null, "mul_x1_114": null, "mul_x1_115": null, "mul_x1_116": null, "mul_x1_117": null, "mul_x1_118": null, "mul_x1_119": null, "mul_x1_12": null, "mul_x1_120": null, "mul_x1_121": null, "mul_x1_122": null, "mul_x1_123": null, "mul_x1_124": null, "mul_x1_125": null, "mul_x1_126": null, "mul_x1_127": null, "mul_x1_128": null, "mul_x1_129": null, "mul_x1_13": null, "mul_x1_130": null, "mul_x1_131": null, "mul_x1_132": null, "mul_x1_133": null, "mul_x1_134": null, "mul_x1_135": null, "mul_x1_136": null, "mul_x1_137": null, "mul_x1_138": null, "mul_x1_139": null, "mul_x1_14": null, "mul_x1_140": null, "mul_x1_141": null, "mul_x1_142": null, "mul_x1_143": null, "mul_x1_144": null, "mul_x1_145": null, "mul_x1_146": null, "mul_x1_147": null, "mul_x1_148": null, "mul_x1_149": null, "mul_x1_15": null, "mul_x1_150": null, "mul_x1_151": null, "mul_x1_152": null, "mul_x1_153": null, "mul_x1_154": null, "mul_x1_155": null, "mul_x1_156": null, "mul_x1_157": null, "mul_x1_158": null, "mul_x1_159": null, "mul_x1_16": null, "mul_x1_160": null, "mul_x1_161": null, "mul_x1_162": null, "mul_x1_163": null, "mul_x1_164": null, "mul_x1_165": null, "mul_x1_166": null, "mul_x1_167": null, "mul_x1_168": null, "mul_x1_169": null, "mul_x1_17": null, "mul_x1_170": null, "mul_x1_171": null, "mul_x1_172": null, "mul_x1_173": null, "mul_x1_174": null, "mul_x1_175": null, "mul_x1_176": null, "mul_x1_177": null, "mul_x1_178": null, "mul_x1_179": null, "mul_x1_18": null, "mul_x1_180": null, "mul_x1_181": null, "mul_x1_182": null, "mul_x1_183": null, "mul_x1_184": null, "mul_x1_185": null, "mul_x1_186": null, "mul_x1_187": null, "mul_x1_188": null, "mul_x1_189": null, "mul_x1_19": null, "mul_x1_190": null, "mul_x1_191": null, "mul_x1_192": null, "mul_x1_193": null, "mul_x1_194": null, "mul_x1_195": null, "mul_x1_196": null, "mul_x1_197": null, "mul_x1_198": null, "mul_x1_199": null, "mul_x1_2": null, "mul_x1_20": null, "mul_x1_200": null, "mul_x1_201": null, "mul_x1_202": null, "mul_x1_203": null, "mul_x1_204": null, "mul_x1_205": null, "mul_x1_206": null, "mul_x1_207": null, "mul_x1_208": null, "mul_x1_209": null, "mul_x1_21": null, "mul_x1_210": null, "mul_x1_211": null, "mul_x1_212": null, "mul_x1_213": null, "mul_x1_214": null, "mul_x1_215": null, "mul_x1_216": null, "mul_x1_217": null, "mul_x1_218": null, "mul_x1_219": null, "mul_x1_22": null, "mul_x1_220": null, "mul_x1_221": null, "mul_x1_222": null, "mul_x1_223": null, "mul_x1_224": null, "mul_x1_225": null, "mul_x1_226": null, "mul_x1_227": null, "mul_x1_228": null, "mul_x1_229": null, "mul_x1_23": null, "mul_x1_230": null, "mul_x1_231": null, "mul_x1_232": null, "mul_x1_233": null, "mul_x1_234": null, "mul_x1_235": null, "mul_x1_236": null, "mul_x1_237": null, "mul_x1_238": null, "mul_x1_239": null, "mul_x1_24": null, "mul_x1_240": null, "mul_x1_241": null, "mul_x1_242": null, "mul_x1_243": null, "mul_x1_244": null, "mul_x1_245": null, "mul_x1_246": null, "mul_x1_247": null, "mul_x1_248": null, "mul_x1_249": null, "mul_x1_25": null, "mul_x1_250": null, "mul_x1_251": null, "mul_x1_252": null, "mul_x1_253": null, "mul_x1_254": null, "mul_x1_255": null, "mul_x1_26": null, "mul_x1_27": null, "mul_x1_28": null, "mul_x1_29": null, "mul_x1_3": null, "mul_x1_30": null, "mul_x1_31": null, "mul_x1_32": null, "mul_x1_33": null, "mul_x1_34": null, "mul_x1_35": null, "mul_x1_36": null, "mul_x1_37": null, "mul_x1_38": null, "mul_x1_39": null, "mul_x1_4": null, "mul_x1_40": null, "mul_x1_41": null, "mul_x1_42": null, "mul_x1_43": null, "mul_x1_44": null, "mul_x1_45": null, "mul_x1_46": null, "mul_x1_47": null, "mul_x1_48": null, "mul_x1_49": null, "mul_x1_5": null, "mul_x1_50": null, "mul_x1_51": null, "mul_x1_52": null, "mul_x1_53": null, "mul_x1_54": null, "mul_x1_55": null, "mul_x1_56": null, "mul_x1_57": null, "mul_x1_58": null, "mul_x1_59": null, "mul_x1_6": null, "mul_x1_60": null, "mul_x1_61": null, "mul_x1_62": null, "mul_x1_63": null, "mul_x1_64": null, "mul_x1_65": null, "mul_x1_66": null, "mul_x1_67": null, "mul_x1_68": null, "mul_x1_69": null, "mul_x1_7": null, "mul_x1_70": null, "mul_x1_71": null, "mul_x1_72": null, "mul_x1_73": null, "mul_x1_74": null, "mul_x1_75": null, "mul_x1_76": null, "mul_x1_77": null, "mul_x1_78": null, "mul_x1_79": null, "mul_x1_8": null, "mul_x1_80": null, "mul_x1_81": null, "mul_x1_82": null, "mul_x1_83": null, "mul_x1_84": null, "mul_x1_85": null, "mul_x1_86": null, "mul_x1_87": null, "mul_x1_88": null, "mul_x1_89": null, "mul_x1_9": null, "mul_x1_90": null, "mul_x1_91": null, "mul_x1_92": null, "mul_x1_93": null, "mul_x1_94": null, "mul_x1_95": null, "mul_x1_96": null, "mul_x1_97": null, "mul_x1_98": null, "mul_x1_99": null, "nfs_commit_shares": null, "nfs_copy_entries_cb": null, "nfs_is_shared_cb": null, "sha256_generic": null, "sha512_generic": null, "smb_update_shares": null, "spacemap_check_sm_log_cb": null, "tf_sha256_transform_x64": null, "tf_sha512_transform_x64": null, "vdev_indirect_remap": null, "zfs_ace_fuid_size": null, "zfs_ace_v0_size": null, "zfs_do_allow": null, "zfs_do_bookmark": null, "zfs_do_change_key": null, "zfs_do_channel_program": null, "zfs_do_clone": null, "zfs_do_create": null, "zfs_do_destroy": null, "zfs_do_diff": null, "zfs_do_get": null, "zfs_do_hold": null, "zfs_do_holds": null, "zfs_do_inherit": null, "zfs_do_list": null, "zfs_do_load_key": null, "zfs_do_mount": null, "zfs_do_project": null, "zfs_do_promote": null, "zfs_do_receive": null, "zfs_do_redact": null, "zfs_do_release": null, "zfs_do_rename": null, "zfs_do_rollback": null, "zfs_do_send": null, "zfs_do_set": null, "zfs_do_share": null, "zfs_do_snapshot": null, "zfs_do_unallow": null, "zfs_do_unload_key": null, "zfs_do_unmount": null, "zfs_do_unshare": null, "zfs_do_unzone": null, "zfs_do_upgrade": null, "zfs_do_userspace": null, "zfs_do_version": null, "zfs_do_wait": null, "zfs_do_zone": null, "zfs_fm_close": null, "zfs_ioc_clear": null, "zfs_ioc_clear_fault": null, "zfs_ioc_dataset_list_next": null, "zfs_ioc_destroy": null, "zfs_ioc_diff": null, "zfs_ioc_dsobj_to_dsname": null, "zfs_ioc_error_log": null, "zfs_ioc_events_clear": null, "zfs_ioc_events_next": null, "zfs_ioc_events_seek": null, "zfs_ioc_get_fsacl": null, "zfs_ioc_inherit_prop": null, "zfs_ioc_inject_fault": null, "zfs_ioc_inject_list_next": null, "zfs_ioc_next_obj": null, "zfs_ioc_obj_to_path": null, "zfs_ioc_obj_to_stats": null, "zfs_ioc_objset_recvd_props": null, "zfs_ioc_objset_stats": null, "zfs_ioc_objset_zplprops": null, "zfs_ioc_pool_configs": null, "zfs_ioc_pool_create": null, "zfs_ioc_pool_destroy": null, "zfs_ioc_pool_export": null, "zfs_ioc_pool_freeze": null, "zfs_ioc_pool_get_history": null, "zfs_ioc_pool_get_props": null, "zfs_ioc_pool_import": null, "zfs_ioc_pool_reguid": null, "zfs_ioc_pool_scan": null, "zfs_ioc_pool_set_props": null, "zfs_ioc_pool_stats": null, "zfs_ioc_pool_tryimport": null, "zfs_ioc_pool_upgrade": null, "zfs_ioc_promote": null, "zfs_ioc_recv": null, "zfs_ioc_rename": null, "zfs_ioc_send": null, "zfs_ioc_send_progress": null, "zfs_ioc_set_fsacl": null, "zfs_ioc_set_prop": null, "zfs_ioc_share": null, "zfs_ioc_smb_acl": null, "zfs_ioc_snapshot_list_next": null, "zfs_ioc_space_written": null, "zfs_ioc_tmp_snapshot": null, "zfs_ioc_userspace_many": null, "zfs_ioc_userspace_one": null, "zfs_ioc_userspace_upgrade": null, "zfs_ioc_vdev_add": null, "zfs_ioc_vdev_attach": null, "zfs_ioc_vdev_detach": null, "zfs_ioc_vdev_remove": null, "zfs_ioc_vdev_set_state": null, "zfs_ioc_vdev_setfru": null, "zfs_ioc_vdev_setpath": null, "zfs_ioc_vdev_split": null, "zfs_zstd_decompress": "", "zle_decompress": "" } }, "callsite": "ci_decompress", "chain_summary": [ { "parent": "", "source_code": [ "int zstream_do_recompress(int argc, char *argv[])", "{", "\tint bufsz = SPA_MAXBLOCKSIZE;", "\tchar *buf = safe_malloc(bufsz);", "\tdmu_replay_record_t thedrr;", "\tdmu_replay_record_t *drr = &thedrr;", "\tzio_cksum_t stream_cksum;", "\tint c;", "\tint level = -1;", " ...", " (void) sfread(cbuf, payload_size, stdin);", " if (dinfo->ci_decompress != NULL) {", "\t if (0 != dinfo->ci_decompress(cbuf, dbuf,", "\t\t\t\t payload_size, MIN(bufsz,", "\t\t\t\t drrw->drr_logical_size), dinfo->ci_level))", " ...", " }", "}" ] }, { "parent": "", "source_code": [ "/*", " * Compression vectors.", " */", "zio_compress_info_t zio_compress_table[ZIO_COMPRESS_FUNCTIONS] = {", "\t{\"inherit\",\t0,\tNULL,\t\tNULL, NULL},", "\t{\"on\",\t\t0,\tNULL,\t\tNULL, NULL},", "\t{\"uncompressed\", 0,\tNULL,\t\tNULL, NULL},", "\t{\"lzjb\",\t0,\tlzjb_compress,\tlzjb_decompress, NULL},", "\t{\"empty\",\t0,\tNULL,\t\tNULL, NULL},", "\t{\"gzip-1\",\t1,\tgzip_compress,\tgzip_decompress, NULL},", "\t{\"gzip-2\",\t2,\tgzip_compress,\tgzip_decompress, NULL},", "\t{\"gzip-3\",\t3,\tgzip_compress,\tgzip_decompress, NULL},", "\t{\"gzip-4\",\t4,\tgzip_compress,\tgzip_decompress, NULL},", "\t{\"gzip-5\",\t5,\tgzip_compress,\tgzip_decompress, NULL},", "\t{\"gzip-6\",\t6,\tgzip_compress,\tgzip_decompress, NULL},", "\t{\"gzip-7\",\t7,\tgzip_compress,\tgzip_decompress, NULL},", "\t{\"gzip-8\",\t8,\tgzip_compress,\tgzip_decompress, NULL},", "\t{\"gzip-9\",\t9,\tgzip_compress,\tgzip_decompress, NULL},", "\t{\"zle\",\t\t64,\tzle_compress,\tzle_decompress, NULL},", "\t{\"lz4\",\t\t0,\tlz4_compress_zfs, lz4_decompress_zfs, NULL},", "\t{\"zstd\",\tZIO_ZSTD_LEVEL_DEFAULT,\tzfs_zstd_compress_wrap,", "\t zfs_zstd_decompress, zfs_zstd_decompress_level},", "};" ] }, { "parent": "", "source_code": [ "typedef const struct zio_compress_info {", "\tconst char\t\t\t*ci_name;", "\tint\t\t\t\tci_level;", "\tzio_compress_func_t\t\t*ci_compress;", "\tzio_decompress_func_t\t\t*ci_decompress;", "\tzio_decompresslevel_func_t\t*ci_decompress_level;", "} zio_compress_info_t;" ] } ], "type": "fnptr-global-struct-array" }
null
null
null
null
null
null
{ "callees": { "targets": { "aes_encrypt_block": null, "aes_xor_block": null, "count_unflushed_space_cb": null, "ddt_zap_lookup": null, "dsl_dataset_hold": null, "dsl_dataset_hold_obj_string": null, "dump_acl": null, "dump_bpobj": null, "dump_bpobj_subobjs": null, "dump_ddt_zap": null, "dump_dmu_objset": null, "dump_dnode": null, "dump_dsl_dataset": null, "dump_dsl_dir": null, "dump_history_offsets": null, "dump_none": null, "dump_packed_nvlist": null, "dump_sa_attrs": null, "dump_sa_layouts": null, "dump_uint64": null, "dump_uint8": null, "dump_unknown": null, "dump_zap": null, "dump_znode": null, "dump_zpldir": null, "fletcher_4_scalar_native": null, "fletcher_4_superscalar4_native": null, "fletcher_4_superscalar_native": null, "gzip_decompress": null, "load_unflushed_cb": null, "load_unflushed_svr_segs_cb": null, "log_spacemap_obsolete_stats_cb": null, "lz4_decompress_zfs": null, "lzjb_decompress": null, "mul_x1_0": null, "mul_x1_1": null, "mul_x1_10": null, "mul_x1_100": null, "mul_x1_101": null, "mul_x1_102": null, "mul_x1_103": null, "mul_x1_104": null, "mul_x1_105": null, "mul_x1_106": null, "mul_x1_107": null, "mul_x1_108": null, "mul_x1_109": null, "mul_x1_11": null, "mul_x1_110": null, "mul_x1_111": null, "mul_x1_112": null, "mul_x1_113": null, "mul_x1_114": null, "mul_x1_115": null, "mul_x1_116": null, "mul_x1_117": null, "mul_x1_118": null, "mul_x1_119": null, "mul_x1_12": null, "mul_x1_120": null, "mul_x1_121": null, "mul_x1_122": null, "mul_x1_123": null, "mul_x1_124": null, "mul_x1_125": null, "mul_x1_126": null, "mul_x1_127": null, "mul_x1_128": null, "mul_x1_129": null, "mul_x1_13": null, "mul_x1_130": null, "mul_x1_131": null, "mul_x1_132": null, "mul_x1_133": null, "mul_x1_134": null, "mul_x1_135": null, "mul_x1_136": null, "mul_x1_137": null, "mul_x1_138": null, "mul_x1_139": null, "mul_x1_14": null, "mul_x1_140": null, "mul_x1_141": null, "mul_x1_142": null, "mul_x1_143": null, "mul_x1_144": null, "mul_x1_145": null, "mul_x1_146": null, "mul_x1_147": null, "mul_x1_148": null, "mul_x1_149": null, "mul_x1_15": null, "mul_x1_150": null, "mul_x1_151": null, "mul_x1_152": null, "mul_x1_153": null, "mul_x1_154": null, "mul_x1_155": null, "mul_x1_156": null, "mul_x1_157": null, "mul_x1_158": null, "mul_x1_159": null, "mul_x1_16": null, "mul_x1_160": null, "mul_x1_161": null, "mul_x1_162": null, "mul_x1_163": null, "mul_x1_164": null, "mul_x1_165": null, "mul_x1_166": null, "mul_x1_167": null, "mul_x1_168": null, "mul_x1_169": null, "mul_x1_17": null, "mul_x1_170": null, "mul_x1_171": null, "mul_x1_172": null, "mul_x1_173": null, "mul_x1_174": null, "mul_x1_175": null, "mul_x1_176": null, "mul_x1_177": null, "mul_x1_178": null, "mul_x1_179": null, "mul_x1_18": null, "mul_x1_180": null, "mul_x1_181": null, "mul_x1_182": null, "mul_x1_183": null, "mul_x1_184": null, "mul_x1_185": null, "mul_x1_186": null, "mul_x1_187": null, "mul_x1_188": null, "mul_x1_189": null, "mul_x1_19": null, "mul_x1_190": null, "mul_x1_191": null, "mul_x1_192": null, "mul_x1_193": null, "mul_x1_194": null, "mul_x1_195": null, "mul_x1_196": null, "mul_x1_197": null, "mul_x1_198": null, "mul_x1_199": null, "mul_x1_2": null, "mul_x1_20": null, "mul_x1_200": null, "mul_x1_201": null, "mul_x1_202": null, "mul_x1_203": null, "mul_x1_204": null, "mul_x1_205": null, "mul_x1_206": null, "mul_x1_207": null, "mul_x1_208": null, "mul_x1_209": null, "mul_x1_21": null, "mul_x1_210": null, "mul_x1_211": null, "mul_x1_212": null, "mul_x1_213": null, "mul_x1_214": null, "mul_x1_215": null, "mul_x1_216": null, "mul_x1_217": null, "mul_x1_218": null, "mul_x1_219": null, "mul_x1_22": null, "mul_x1_220": null, "mul_x1_221": null, "mul_x1_222": null, "mul_x1_223": null, "mul_x1_224": null, "mul_x1_225": null, "mul_x1_226": null, "mul_x1_227": null, "mul_x1_228": null, "mul_x1_229": null, "mul_x1_23": null, "mul_x1_230": null, "mul_x1_231": null, "mul_x1_232": null, "mul_x1_233": null, "mul_x1_234": null, "mul_x1_235": null, "mul_x1_236": null, "mul_x1_237": null, "mul_x1_238": null, "mul_x1_239": null, "mul_x1_24": null, "mul_x1_240": null, "mul_x1_241": null, "mul_x1_242": null, "mul_x1_243": null, "mul_x1_244": null, "mul_x1_245": null, "mul_x1_246": null, "mul_x1_247": null, "mul_x1_248": null, "mul_x1_249": null, "mul_x1_25": null, "mul_x1_250": null, "mul_x1_251": null, "mul_x1_252": null, "mul_x1_253": null, "mul_x1_254": null, "mul_x1_255": null, "mul_x1_26": null, "mul_x1_27": null, "mul_x1_28": null, "mul_x1_29": null, "mul_x1_3": null, "mul_x1_30": null, "mul_x1_31": null, "mul_x1_32": null, "mul_x1_33": null, "mul_x1_34": null, "mul_x1_35": null, "mul_x1_36": null, "mul_x1_37": null, "mul_x1_38": null, "mul_x1_39": null, "mul_x1_4": null, "mul_x1_40": null, "mul_x1_41": null, "mul_x1_42": null, "mul_x1_43": null, "mul_x1_44": null, "mul_x1_45": null, "mul_x1_46": null, "mul_x1_47": null, "mul_x1_48": null, "mul_x1_49": null, "mul_x1_5": null, "mul_x1_50": null, "mul_x1_51": null, "mul_x1_52": null, "mul_x1_53": null, "mul_x1_54": null, "mul_x1_55": null, "mul_x1_56": null, "mul_x1_57": null, "mul_x1_58": null, "mul_x1_59": null, "mul_x1_6": null, "mul_x1_60": null, "mul_x1_61": null, "mul_x1_62": null, "mul_x1_63": null, "mul_x1_64": null, "mul_x1_65": null, "mul_x1_66": null, "mul_x1_67": null, "mul_x1_68": null, "mul_x1_69": null, "mul_x1_7": null, "mul_x1_70": null, "mul_x1_71": null, "mul_x1_72": null, "mul_x1_73": null, "mul_x1_74": null, "mul_x1_75": null, "mul_x1_76": null, "mul_x1_77": null, "mul_x1_78": null, "mul_x1_79": null, "mul_x1_8": null, "mul_x1_80": null, "mul_x1_81": null, "mul_x1_82": null, "mul_x1_83": null, "mul_x1_84": null, "mul_x1_85": null, "mul_x1_86": null, "mul_x1_87": null, "mul_x1_88": null, "mul_x1_89": null, "mul_x1_9": null, "mul_x1_90": null, "mul_x1_91": null, "mul_x1_92": null, "mul_x1_93": null, "mul_x1_94": null, "mul_x1_95": null, "mul_x1_96": null, "mul_x1_97": null, "mul_x1_98": null, "mul_x1_99": null, "nfs_commit_shares": "", "nfs_copy_entries_cb": null, "nfs_is_shared_cb": null, "sha256_generic": null, "sha512_generic": null, "smb_update_shares": "", "spacemap_check_sm_log_cb": null, "tf_sha256_transform_x64": null, "tf_sha512_transform_x64": null, "vdev_indirect_remap": null, "zfs_ace_fuid_size": null, "zfs_ace_v0_size": null, "zfs_do_allow": null, "zfs_do_bookmark": null, "zfs_do_change_key": null, "zfs_do_channel_program": null, "zfs_do_clone": null, "zfs_do_create": null, "zfs_do_destroy": null, "zfs_do_diff": null, "zfs_do_get": null, "zfs_do_hold": null, "zfs_do_holds": null, "zfs_do_inherit": null, "zfs_do_list": null, "zfs_do_load_key": null, "zfs_do_mount": null, "zfs_do_project": null, "zfs_do_promote": null, "zfs_do_receive": null, "zfs_do_redact": null, "zfs_do_release": null, "zfs_do_rename": null, "zfs_do_rollback": null, "zfs_do_send": null, "zfs_do_set": null, "zfs_do_share": null, "zfs_do_snapshot": null, "zfs_do_unallow": null, "zfs_do_unload_key": null, "zfs_do_unmount": null, "zfs_do_unshare": null, "zfs_do_unzone": null, "zfs_do_upgrade": null, "zfs_do_userspace": null, "zfs_do_version": null, "zfs_do_wait": null, "zfs_do_zone": null, "zfs_fm_close": null, "zfs_ioc_clear": null, "zfs_ioc_clear_fault": null, "zfs_ioc_dataset_list_next": null, "zfs_ioc_destroy": null, "zfs_ioc_diff": null, "zfs_ioc_dsobj_to_dsname": null, "zfs_ioc_error_log": null, "zfs_ioc_events_clear": null, "zfs_ioc_events_next": null, "zfs_ioc_events_seek": null, "zfs_ioc_get_fsacl": null, "zfs_ioc_inherit_prop": null, "zfs_ioc_inject_fault": null, "zfs_ioc_inject_list_next": null, "zfs_ioc_next_obj": null, "zfs_ioc_obj_to_path": null, "zfs_ioc_obj_to_stats": null, "zfs_ioc_objset_recvd_props": null, "zfs_ioc_objset_stats": null, "zfs_ioc_objset_zplprops": null, "zfs_ioc_pool_configs": null, "zfs_ioc_pool_create": null, "zfs_ioc_pool_destroy": null, "zfs_ioc_pool_export": null, "zfs_ioc_pool_freeze": null, "zfs_ioc_pool_get_history": null, "zfs_ioc_pool_get_props": null, "zfs_ioc_pool_import": null, "zfs_ioc_pool_reguid": null, "zfs_ioc_pool_scan": null, "zfs_ioc_pool_set_props": null, "zfs_ioc_pool_stats": null, "zfs_ioc_pool_tryimport": null, "zfs_ioc_pool_upgrade": null, "zfs_ioc_promote": null, "zfs_ioc_recv": null, "zfs_ioc_rename": null, "zfs_ioc_send": null, "zfs_ioc_send_progress": null, "zfs_ioc_set_fsacl": null, "zfs_ioc_set_prop": null, "zfs_ioc_share": null, "zfs_ioc_smb_acl": null, "zfs_ioc_snapshot_list_next": null, "zfs_ioc_space_written": null, "zfs_ioc_tmp_snapshot": null, "zfs_ioc_userspace_many": null, "zfs_ioc_userspace_one": null, "zfs_ioc_userspace_upgrade": null, "zfs_ioc_vdev_add": null, "zfs_ioc_vdev_attach": null, "zfs_ioc_vdev_detach": null, "zfs_ioc_vdev_remove": null, "zfs_ioc_vdev_set_state": null, "zfs_ioc_vdev_setfru": null, "zfs_ioc_vdev_setpath": null, "zfs_ioc_vdev_split": null, "zfs_zstd_decompress": null, "zle_decompress": null } }, "callsite": "fstypes[protocol]->commit_shares", "chain_summary": [ { "parent": "", "source_code": [ "void sa_commit_shares(enum sa_protocol protocol)", "{", "\t/* CSTYLED */", "\tVALIDATE_PROTOCOL(protocol, );", "\tfstypes[protocol]->commit_shares();", "}" ] }, { "parent": "", "source_code": [ "static const sa_fstype_t *fstypes[SA_PROTOCOL_COUNT] =", "\t{&libshare_nfs_type, &libshare_smb_type};" ] }, { "parent": "", "source_code": [ "const sa_fstype_t libshare_nfs_type = {", " .enable_share = nfs_enable_share,", "\t.disable_share = nfs_disable_share,", "\t.is_shared = nfs_is_shared,", "\t.validate_shareopts = nfs_validate_shareopts,", "\t.commit_shares = nfs_commit_shares,", "\t.truncate_shares = nfs_truncate_shares,", "};", "const sa_fstype_t libshare_smb_type = {", "\t.enable_share = smb_enable_share,", "\t.disable_share = smb_disable_share,", "\t.is_shared = smb_is_share_active,", "\t.validate_shareopts = smb_validate_shareopts,", "\t.commit_shares = smb_update_shares,", "};" ] } ], "type": "fnptr-global-struct-array" }
null
null
null
null
null
null
{ "callees": { "targets": { "aes_encrypt_block": null, "aes_xor_block": null, "count_unflushed_space_cb": null, "ddt_zap_lookup": null, "dsl_dataset_hold": null, "dsl_dataset_hold_obj_string": null, "dump_acl": null, "dump_bpobj": null, "dump_bpobj_subobjs": null, "dump_ddt_zap": null, "dump_dmu_objset": null, "dump_dnode": null, "dump_dsl_dataset": null, "dump_dsl_dir": null, "dump_history_offsets": null, "dump_none": null, "dump_packed_nvlist": null, "dump_sa_attrs": null, "dump_sa_layouts": null, "dump_uint64": null, "dump_uint8": null, "dump_unknown": null, "dump_zap": null, "dump_znode": null, "dump_zpldir": null, "fletcher_4_scalar_native": null, "fletcher_4_superscalar4_native": null, "fletcher_4_superscalar_native": null, "gzip_decompress": null, "load_unflushed_cb": null, "load_unflushed_svr_segs_cb": null, "log_spacemap_obsolete_stats_cb": null, "lz4_decompress_zfs": null, "lzjb_decompress": null, "mul_x1_0": null, "mul_x1_1": null, "mul_x1_10": null, "mul_x1_100": null, "mul_x1_101": null, "mul_x1_102": null, "mul_x1_103": null, "mul_x1_104": null, "mul_x1_105": null, "mul_x1_106": null, "mul_x1_107": null, "mul_x1_108": null, "mul_x1_109": null, "mul_x1_11": null, "mul_x1_110": null, "mul_x1_111": null, "mul_x1_112": null, "mul_x1_113": null, "mul_x1_114": null, "mul_x1_115": null, "mul_x1_116": null, "mul_x1_117": null, "mul_x1_118": null, "mul_x1_119": null, "mul_x1_12": null, "mul_x1_120": null, "mul_x1_121": null, "mul_x1_122": null, "mul_x1_123": null, "mul_x1_124": null, "mul_x1_125": null, "mul_x1_126": null, "mul_x1_127": null, "mul_x1_128": null, "mul_x1_129": null, "mul_x1_13": null, "mul_x1_130": null, "mul_x1_131": null, "mul_x1_132": null, "mul_x1_133": null, "mul_x1_134": null, "mul_x1_135": null, "mul_x1_136": null, "mul_x1_137": null, "mul_x1_138": null, "mul_x1_139": null, "mul_x1_14": null, "mul_x1_140": null, "mul_x1_141": null, "mul_x1_142": null, "mul_x1_143": null, "mul_x1_144": null, "mul_x1_145": null, "mul_x1_146": null, "mul_x1_147": null, "mul_x1_148": null, "mul_x1_149": null, "mul_x1_15": null, "mul_x1_150": null, "mul_x1_151": null, "mul_x1_152": null, "mul_x1_153": null, "mul_x1_154": null, "mul_x1_155": null, "mul_x1_156": null, "mul_x1_157": null, "mul_x1_158": null, "mul_x1_159": null, "mul_x1_16": null, "mul_x1_160": null, "mul_x1_161": null, "mul_x1_162": null, "mul_x1_163": null, "mul_x1_164": null, "mul_x1_165": null, "mul_x1_166": null, "mul_x1_167": null, "mul_x1_168": null, "mul_x1_169": null, "mul_x1_17": null, "mul_x1_170": null, "mul_x1_171": null, "mul_x1_172": null, "mul_x1_173": null, "mul_x1_174": null, "mul_x1_175": null, "mul_x1_176": null, "mul_x1_177": null, "mul_x1_178": null, "mul_x1_179": null, "mul_x1_18": null, "mul_x1_180": null, "mul_x1_181": null, "mul_x1_182": null, "mul_x1_183": null, "mul_x1_184": null, "mul_x1_185": null, "mul_x1_186": null, "mul_x1_187": null, "mul_x1_188": null, "mul_x1_189": null, "mul_x1_19": null, "mul_x1_190": null, "mul_x1_191": null, "mul_x1_192": null, "mul_x1_193": null, "mul_x1_194": null, "mul_x1_195": null, "mul_x1_196": null, "mul_x1_197": null, "mul_x1_198": null, "mul_x1_199": null, "mul_x1_2": null, "mul_x1_20": null, "mul_x1_200": null, "mul_x1_201": null, "mul_x1_202": null, "mul_x1_203": null, "mul_x1_204": null, "mul_x1_205": null, "mul_x1_206": null, "mul_x1_207": null, "mul_x1_208": null, "mul_x1_209": null, "mul_x1_21": null, "mul_x1_210": null, "mul_x1_211": null, "mul_x1_212": null, "mul_x1_213": null, "mul_x1_214": null, "mul_x1_215": null, "mul_x1_216": null, "mul_x1_217": null, "mul_x1_218": null, "mul_x1_219": null, "mul_x1_22": null, "mul_x1_220": null, "mul_x1_221": null, "mul_x1_222": null, "mul_x1_223": null, "mul_x1_224": null, "mul_x1_225": null, "mul_x1_226": null, "mul_x1_227": null, "mul_x1_228": null, "mul_x1_229": null, "mul_x1_23": null, "mul_x1_230": null, "mul_x1_231": null, "mul_x1_232": null, "mul_x1_233": null, "mul_x1_234": null, "mul_x1_235": null, "mul_x1_236": null, "mul_x1_237": null, "mul_x1_238": null, "mul_x1_239": null, "mul_x1_24": null, "mul_x1_240": null, "mul_x1_241": null, "mul_x1_242": null, "mul_x1_243": null, "mul_x1_244": null, "mul_x1_245": null, "mul_x1_246": null, "mul_x1_247": null, "mul_x1_248": null, "mul_x1_249": null, "mul_x1_25": null, "mul_x1_250": null, "mul_x1_251": null, "mul_x1_252": null, "mul_x1_253": null, "mul_x1_254": null, "mul_x1_255": null, "mul_x1_26": null, "mul_x1_27": null, "mul_x1_28": null, "mul_x1_29": null, "mul_x1_3": null, "mul_x1_30": null, "mul_x1_31": null, "mul_x1_32": null, "mul_x1_33": null, "mul_x1_34": null, "mul_x1_35": null, "mul_x1_36": null, "mul_x1_37": null, "mul_x1_38": null, "mul_x1_39": null, "mul_x1_4": null, "mul_x1_40": null, "mul_x1_41": null, "mul_x1_42": null, "mul_x1_43": null, "mul_x1_44": null, "mul_x1_45": null, "mul_x1_46": null, "mul_x1_47": null, "mul_x1_48": null, "mul_x1_49": null, "mul_x1_5": null, "mul_x1_50": null, "mul_x1_51": null, "mul_x1_52": null, "mul_x1_53": null, "mul_x1_54": null, "mul_x1_55": null, "mul_x1_56": null, "mul_x1_57": null, "mul_x1_58": null, "mul_x1_59": null, "mul_x1_6": null, "mul_x1_60": null, "mul_x1_61": null, "mul_x1_62": null, "mul_x1_63": null, "mul_x1_64": null, "mul_x1_65": null, "mul_x1_66": null, "mul_x1_67": null, "mul_x1_68": null, "mul_x1_69": null, "mul_x1_7": null, "mul_x1_70": null, "mul_x1_71": null, "mul_x1_72": null, "mul_x1_73": null, "mul_x1_74": null, "mul_x1_75": null, "mul_x1_76": null, "mul_x1_77": null, "mul_x1_78": null, "mul_x1_79": null, "mul_x1_8": null, "mul_x1_80": null, "mul_x1_81": null, "mul_x1_82": null, "mul_x1_83": null, "mul_x1_84": null, "mul_x1_85": null, "mul_x1_86": null, "mul_x1_87": null, "mul_x1_88": null, "mul_x1_89": null, "mul_x1_9": null, "mul_x1_90": null, "mul_x1_91": null, "mul_x1_92": null, "mul_x1_93": null, "mul_x1_94": null, "mul_x1_95": null, "mul_x1_96": null, "mul_x1_97": null, "mul_x1_98": null, "mul_x1_99": null, "nfs_commit_shares": null, "nfs_copy_entries_cb": null, "nfs_is_shared_cb": null, "sha256_generic": null, "sha512_generic": null, "smb_update_shares": null, "spacemap_check_sm_log_cb": null, "tf_sha256_transform_x64": null, "tf_sha512_transform_x64": null, "vdev_indirect_remap": null, "zfs_ace_fuid_size": null, "zfs_ace_v0_size": null, "zfs_do_allow": "", "zfs_do_bookmark": "", "zfs_do_change_key": "", "zfs_do_channel_program": "", "zfs_do_clone": "", "zfs_do_create": "", "zfs_do_destroy": "", "zfs_do_diff": "", "zfs_do_get": "", "zfs_do_hold": "", "zfs_do_holds": "", "zfs_do_inherit": "", "zfs_do_list": "", "zfs_do_load_key": "", "zfs_do_mount": "", "zfs_do_project": "", "zfs_do_promote": "", "zfs_do_receive": "", "zfs_do_redact": "", "zfs_do_release": "", "zfs_do_rename": "", "zfs_do_rollback": "", "zfs_do_send": "", "zfs_do_set": "", "zfs_do_share": "", "zfs_do_snapshot": "", "zfs_do_unallow": "", "zfs_do_unload_key": "", "zfs_do_unmount": "", "zfs_do_unshare": "", "zfs_do_unzone": "", "zfs_do_upgrade": "", "zfs_do_userspace": "", "zfs_do_version": "", "zfs_do_wait": "", "zfs_do_zone": "", "zfs_fm_close": null, "zfs_ioc_clear": null, "zfs_ioc_clear_fault": null, "zfs_ioc_dataset_list_next": null, "zfs_ioc_destroy": null, "zfs_ioc_diff": null, "zfs_ioc_dsobj_to_dsname": null, "zfs_ioc_error_log": null, "zfs_ioc_events_clear": null, "zfs_ioc_events_next": null, "zfs_ioc_events_seek": null, "zfs_ioc_get_fsacl": null, "zfs_ioc_inherit_prop": null, "zfs_ioc_inject_fault": null, "zfs_ioc_inject_list_next": null, "zfs_ioc_next_obj": null, "zfs_ioc_obj_to_path": null, "zfs_ioc_obj_to_stats": null, "zfs_ioc_objset_recvd_props": null, "zfs_ioc_objset_stats": null, "zfs_ioc_objset_zplprops": null, "zfs_ioc_pool_configs": null, "zfs_ioc_pool_create": null, "zfs_ioc_pool_destroy": null, "zfs_ioc_pool_export": null, "zfs_ioc_pool_freeze": null, "zfs_ioc_pool_get_history": null, "zfs_ioc_pool_get_props": null, "zfs_ioc_pool_import": null, "zfs_ioc_pool_reguid": null, "zfs_ioc_pool_scan": null, "zfs_ioc_pool_set_props": null, "zfs_ioc_pool_stats": null, "zfs_ioc_pool_tryimport": null, "zfs_ioc_pool_upgrade": null, "zfs_ioc_promote": null, "zfs_ioc_recv": null, "zfs_ioc_rename": null, "zfs_ioc_send": null, "zfs_ioc_send_progress": null, "zfs_ioc_set_fsacl": null, "zfs_ioc_set_prop": null, "zfs_ioc_share": null, "zfs_ioc_smb_acl": null, "zfs_ioc_snapshot_list_next": null, "zfs_ioc_space_written": null, "zfs_ioc_tmp_snapshot": null, "zfs_ioc_userspace_many": null, "zfs_ioc_userspace_one": null, "zfs_ioc_userspace_upgrade": null, "zfs_ioc_vdev_add": null, "zfs_ioc_vdev_attach": null, "zfs_ioc_vdev_detach": null, "zfs_ioc_vdev_remove": null, "zfs_ioc_vdev_set_state": null, "zfs_ioc_vdev_setfru": null, "zfs_ioc_vdev_setpath": null, "zfs_ioc_vdev_split": null, "zfs_zstd_decompress": null, "zle_decompress": null } }, "callsite": "command_table[i].func", "chain_summary": [ { "parent": "", "source_code": [ "int", "main(int argc, char **argv)", "{", "\t...", "\tlibzfs_mnttab_cache(g_zfs, B_TRUE);", "\tif (find_command_idx(cmdname, &i) == 0) {", "\t\tcurrent_command = &command_table[i];", "\t\tret = command_table[i].func(argc - 1, newargv + 1);", " }", "}" ] }, { "parent": "", "source_code": [ "static zfs_command_t command_table[] = {", "\t{ \"version\",\tzfs_do_version, \tHELP_VERSION\t\t},", "\t{ NULL },", "\t{ \"create\",\tzfs_do_create,\t\tHELP_CREATE\t\t},", "\t{ \"destroy\",\tzfs_do_destroy,\t\tHELP_DESTROY\t\t},", "\t{ NULL },", "\t{ \"snapshot\",\tzfs_do_snapshot,\tHELP_SNAPSHOT\t\t},", "\t{ \"rollback\",\tzfs_do_rollback,\tHELP_ROLLBACK\t\t},", "\t{ \"clone\",\tzfs_do_clone,\t\tHELP_CLONE\t\t},", "\t{ \"promote\",\tzfs_do_promote,\t\tHELP_PROMOTE\t\t},", "\t{ \"rename\",\tzfs_do_rename,\t\tHELP_RENAME\t\t},", "\t{ \"bookmark\",\tzfs_do_bookmark,\tHELP_BOOKMARK\t\t},", "\t{ \"program\", zfs_do_channel_program, HELP_CHANNEL_PROGRAM },", "\t{ NULL },", "\t{ \"list\",\tzfs_do_list,\t\tHELP_LIST\t\t},", "\t{ NULL },", "\t{ \"set\",\tzfs_do_set,\t\tHELP_SET\t\t},", "\t{ \"get\",\tzfs_do_get,\t\tHELP_GET\t\t},", "\t{ \"inherit\",\tzfs_do_inherit,\t\tHELP_INHERIT\t\t},", "\t{ \"upgrade\",\tzfs_do_upgrade,\t\tHELP_UPGRADE\t\t},", "\t{ NULL },", "\t{ \"userspace\",\tzfs_do_userspace,\tHELP_USERSPACE\t\t},", "\t{ \"groupspace\",\tzfs_do_userspace,\tHELP_GROUPSPACE\t\t},", "\t{ \"projectspace\", zfs_do_userspace,\tHELP_PROJECTSPACE\t},", "\t{ NULL },", "\t{ \"project\",\tzfs_do_project,\t\tHELP_PROJECT\t\t},", "\t{ NULL },", "\t{ \"mount\",\tzfs_do_mount,\t\tHELP_MOUNT\t\t},", "\t{ \"unmount\",\tzfs_do_unmount,\t\tHELP_UNMOUNT\t\t},", "\t{ \"share\",\tzfs_do_share,\t\tHELP_SHARE\t\t},", "\t{ \"unshare\",\tzfs_do_unshare,\t\tHELP_UNSHARE\t\t},", "\t{ NULL },", "\t{ \"send\",\tzfs_do_send,\t\tHELP_SEND\t\t},", "\t{ \"receive\",\tzfs_do_receive,\t\tHELP_RECEIVE\t\t},", "\t{ NULL },", "\t{ \"allow\",\tzfs_do_allow,\t\tHELP_ALLOW\t\t},", "\t{ NULL },", "\t{ \"unallow\",\tzfs_do_unallow,\t\tHELP_UNALLOW\t\t},", "\t{ NULL },", "\t{ \"hold\",\tzfs_do_hold,\t\tHELP_HOLD\t\t},", "\t{ \"holds\",\tzfs_do_holds,\t\tHELP_HOLDS\t\t},", "\t{ \"release\",\tzfs_do_release,\t\tHELP_RELEASE\t\t},", "\t{ \"diff\",\tzfs_do_diff,\t\tHELP_DIFF\t\t},", "\t{ \"load-key\",\tzfs_do_load_key,\tHELP_LOAD_KEY\t\t},", "\t{ \"unload-key\",\tzfs_do_unload_key,\tHELP_UNLOAD_KEY\t\t},", "\t{ \"change-key\",\tzfs_do_change_key,\tHELP_CHANGE_KEY\t\t},", "\t{ \"redact\",\tzfs_do_redact,\t\tHELP_REDACT\t\t},", "\t{ \"wait\",\tzfs_do_wait,\t\tHELP_WAIT\t\t},", "#ifdef __FreeBSD__", "\t{ \"jail\",\tzfs_do_jail,\t\tHELP_JAIL\t\t},", "\t{ \"unjail\",\tzfs_do_unjail,\t\tHELP_UNJAIL\t\t},", "#endif", "#ifdef __linux__", "\t{ \"zone\",\tzfs_do_zone,\t\tHELP_ZONE\t\t},", "\t{ \"unzone\",\tzfs_do_unzone,\t\tHELP_UNZONE\t\t},", "#endif", "};" ] } ], "type": "fnptr-global-struct-array" }
null
null
null
null
null
null
{ "callees": { "targets": { "aes_encrypt_block": null, "aes_xor_block": null, "count_unflushed_space_cb": null, "ddt_zap_lookup": null, "dsl_dataset_hold": null, "dsl_dataset_hold_obj_string": null, "dump_acl": null, "dump_bpobj": null, "dump_bpobj_subobjs": null, "dump_ddt_zap": null, "dump_dmu_objset": null, "dump_dnode": null, "dump_dsl_dataset": null, "dump_dsl_dir": null, "dump_history_offsets": null, "dump_none": null, "dump_packed_nvlist": null, "dump_sa_attrs": null, "dump_sa_layouts": null, "dump_uint64": null, "dump_uint8": null, "dump_unknown": null, "dump_zap": null, "dump_znode": null, "dump_zpldir": null, "fletcher_4_scalar_native": null, "fletcher_4_superscalar4_native": null, "fletcher_4_superscalar_native": null, "gzip_decompress": null, "load_unflushed_cb": null, "load_unflushed_svr_segs_cb": null, "log_spacemap_obsolete_stats_cb": null, "lz4_decompress_zfs": null, "lzjb_decompress": null, "mul_x1_0": null, "mul_x1_1": null, "mul_x1_10": null, "mul_x1_100": null, "mul_x1_101": null, "mul_x1_102": null, "mul_x1_103": null, "mul_x1_104": null, "mul_x1_105": null, "mul_x1_106": null, "mul_x1_107": null, "mul_x1_108": null, "mul_x1_109": null, "mul_x1_11": null, "mul_x1_110": null, "mul_x1_111": null, "mul_x1_112": null, "mul_x1_113": null, "mul_x1_114": null, "mul_x1_115": null, "mul_x1_116": null, "mul_x1_117": null, "mul_x1_118": null, "mul_x1_119": null, "mul_x1_12": null, "mul_x1_120": null, "mul_x1_121": null, "mul_x1_122": null, "mul_x1_123": null, "mul_x1_124": null, "mul_x1_125": null, "mul_x1_126": null, "mul_x1_127": null, "mul_x1_128": null, "mul_x1_129": null, "mul_x1_13": null, "mul_x1_130": null, "mul_x1_131": null, "mul_x1_132": null, "mul_x1_133": null, "mul_x1_134": null, "mul_x1_135": null, "mul_x1_136": null, "mul_x1_137": null, "mul_x1_138": null, "mul_x1_139": null, "mul_x1_14": null, "mul_x1_140": null, "mul_x1_141": null, "mul_x1_142": null, "mul_x1_143": null, "mul_x1_144": null, "mul_x1_145": null, "mul_x1_146": null, "mul_x1_147": null, "mul_x1_148": null, "mul_x1_149": null, "mul_x1_15": null, "mul_x1_150": null, "mul_x1_151": null, "mul_x1_152": null, "mul_x1_153": null, "mul_x1_154": null, "mul_x1_155": null, "mul_x1_156": null, "mul_x1_157": null, "mul_x1_158": null, "mul_x1_159": null, "mul_x1_16": null, "mul_x1_160": null, "mul_x1_161": null, "mul_x1_162": null, "mul_x1_163": null, "mul_x1_164": null, "mul_x1_165": null, "mul_x1_166": null, "mul_x1_167": null, "mul_x1_168": null, "mul_x1_169": null, "mul_x1_17": null, "mul_x1_170": null, "mul_x1_171": null, "mul_x1_172": null, "mul_x1_173": null, "mul_x1_174": null, "mul_x1_175": null, "mul_x1_176": null, "mul_x1_177": null, "mul_x1_178": null, "mul_x1_179": null, "mul_x1_18": null, "mul_x1_180": null, "mul_x1_181": null, "mul_x1_182": null, "mul_x1_183": null, "mul_x1_184": null, "mul_x1_185": null, "mul_x1_186": null, "mul_x1_187": null, "mul_x1_188": null, "mul_x1_189": null, "mul_x1_19": null, "mul_x1_190": null, "mul_x1_191": null, "mul_x1_192": null, "mul_x1_193": null, "mul_x1_194": null, "mul_x1_195": null, "mul_x1_196": null, "mul_x1_197": null, "mul_x1_198": null, "mul_x1_199": null, "mul_x1_2": null, "mul_x1_20": null, "mul_x1_200": null, "mul_x1_201": null, "mul_x1_202": null, "mul_x1_203": null, "mul_x1_204": null, "mul_x1_205": null, "mul_x1_206": null, "mul_x1_207": null, "mul_x1_208": null, "mul_x1_209": null, "mul_x1_21": null, "mul_x1_210": null, "mul_x1_211": null, "mul_x1_212": null, "mul_x1_213": null, "mul_x1_214": null, "mul_x1_215": null, "mul_x1_216": null, "mul_x1_217": null, "mul_x1_218": null, "mul_x1_219": null, "mul_x1_22": null, "mul_x1_220": null, "mul_x1_221": null, "mul_x1_222": null, "mul_x1_223": null, "mul_x1_224": null, "mul_x1_225": null, "mul_x1_226": null, "mul_x1_227": null, "mul_x1_228": null, "mul_x1_229": null, "mul_x1_23": null, "mul_x1_230": null, "mul_x1_231": null, "mul_x1_232": null, "mul_x1_233": null, "mul_x1_234": null, "mul_x1_235": null, "mul_x1_236": null, "mul_x1_237": null, "mul_x1_238": null, "mul_x1_239": null, "mul_x1_24": null, "mul_x1_240": null, "mul_x1_241": null, "mul_x1_242": null, "mul_x1_243": null, "mul_x1_244": null, "mul_x1_245": null, "mul_x1_246": null, "mul_x1_247": null, "mul_x1_248": null, "mul_x1_249": null, "mul_x1_25": null, "mul_x1_250": null, "mul_x1_251": null, "mul_x1_252": null, "mul_x1_253": null, "mul_x1_254": null, "mul_x1_255": null, "mul_x1_26": null, "mul_x1_27": null, "mul_x1_28": null, "mul_x1_29": null, "mul_x1_3": null, "mul_x1_30": null, "mul_x1_31": null, "mul_x1_32": null, "mul_x1_33": null, "mul_x1_34": null, "mul_x1_35": null, "mul_x1_36": null, "mul_x1_37": null, "mul_x1_38": null, "mul_x1_39": null, "mul_x1_4": null, "mul_x1_40": null, "mul_x1_41": null, "mul_x1_42": null, "mul_x1_43": null, "mul_x1_44": null, "mul_x1_45": null, "mul_x1_46": null, "mul_x1_47": null, "mul_x1_48": null, "mul_x1_49": null, "mul_x1_5": null, "mul_x1_50": null, "mul_x1_51": null, "mul_x1_52": null, "mul_x1_53": null, "mul_x1_54": null, "mul_x1_55": null, "mul_x1_56": null, "mul_x1_57": null, "mul_x1_58": null, "mul_x1_59": null, "mul_x1_6": null, "mul_x1_60": null, "mul_x1_61": null, "mul_x1_62": null, "mul_x1_63": null, "mul_x1_64": null, "mul_x1_65": null, "mul_x1_66": null, "mul_x1_67": null, "mul_x1_68": null, "mul_x1_69": null, "mul_x1_7": null, "mul_x1_70": null, "mul_x1_71": null, "mul_x1_72": null, "mul_x1_73": null, "mul_x1_74": null, "mul_x1_75": null, "mul_x1_76": null, "mul_x1_77": null, "mul_x1_78": null, "mul_x1_79": null, "mul_x1_8": null, "mul_x1_80": null, "mul_x1_81": null, "mul_x1_82": null, "mul_x1_83": null, "mul_x1_84": null, "mul_x1_85": null, "mul_x1_86": null, "mul_x1_87": null, "mul_x1_88": null, "mul_x1_89": null, "mul_x1_9": null, "mul_x1_90": null, "mul_x1_91": null, "mul_x1_92": null, "mul_x1_93": null, "mul_x1_94": null, "mul_x1_95": null, "mul_x1_96": null, "mul_x1_97": null, "mul_x1_98": null, "mul_x1_99": null, "nfs_commit_shares": null, "nfs_copy_entries_cb": null, "nfs_is_shared_cb": null, "sha256_generic": "", "sha512_generic": "", "smb_update_shares": null, "spacemap_check_sm_log_cb": null, "tf_sha256_transform_x64": "", "tf_sha512_transform_x64": "", "vdev_indirect_remap": null, "zfs_ace_fuid_size": null, "zfs_ace_v0_size": null, "zfs_do_allow": null, "zfs_do_bookmark": null, "zfs_do_change_key": null, "zfs_do_channel_program": null, "zfs_do_clone": null, "zfs_do_create": null, "zfs_do_destroy": null, "zfs_do_diff": null, "zfs_do_get": null, "zfs_do_hold": null, "zfs_do_holds": null, "zfs_do_inherit": null, "zfs_do_list": null, "zfs_do_load_key": null, "zfs_do_mount": null, "zfs_do_project": null, "zfs_do_promote": null, "zfs_do_receive": null, "zfs_do_redact": null, "zfs_do_release": null, "zfs_do_rename": null, "zfs_do_rollback": null, "zfs_do_send": null, "zfs_do_set": null, "zfs_do_share": null, "zfs_do_snapshot": null, "zfs_do_unallow": null, "zfs_do_unload_key": null, "zfs_do_unmount": null, "zfs_do_unshare": null, "zfs_do_unzone": null, "zfs_do_upgrade": null, "zfs_do_userspace": null, "zfs_do_version": null, "zfs_do_wait": null, "zfs_do_zone": null, "zfs_fm_close": null, "zfs_ioc_clear": null, "zfs_ioc_clear_fault": null, "zfs_ioc_dataset_list_next": null, "zfs_ioc_destroy": null, "zfs_ioc_diff": null, "zfs_ioc_dsobj_to_dsname": null, "zfs_ioc_error_log": null, "zfs_ioc_events_clear": null, "zfs_ioc_events_next": null, "zfs_ioc_events_seek": null, "zfs_ioc_get_fsacl": null, "zfs_ioc_inherit_prop": null, "zfs_ioc_inject_fault": null, "zfs_ioc_inject_list_next": null, "zfs_ioc_next_obj": null, "zfs_ioc_obj_to_path": null, "zfs_ioc_obj_to_stats": null, "zfs_ioc_objset_recvd_props": null, "zfs_ioc_objset_stats": null, "zfs_ioc_objset_zplprops": null, "zfs_ioc_pool_configs": null, "zfs_ioc_pool_create": null, "zfs_ioc_pool_destroy": null, "zfs_ioc_pool_export": null, "zfs_ioc_pool_freeze": null, "zfs_ioc_pool_get_history": null, "zfs_ioc_pool_get_props": null, "zfs_ioc_pool_import": null, "zfs_ioc_pool_reguid": null, "zfs_ioc_pool_scan": null, "zfs_ioc_pool_set_props": null, "zfs_ioc_pool_stats": null, "zfs_ioc_pool_tryimport": null, "zfs_ioc_pool_upgrade": null, "zfs_ioc_promote": null, "zfs_ioc_recv": null, "zfs_ioc_rename": null, "zfs_ioc_send": null, "zfs_ioc_send_progress": null, "zfs_ioc_set_fsacl": null, "zfs_ioc_set_prop": null, "zfs_ioc_share": null, "zfs_ioc_smb_acl": null, "zfs_ioc_snapshot_list_next": null, "zfs_ioc_space_written": null, "zfs_ioc_tmp_snapshot": null, "zfs_ioc_userspace_many": null, "zfs_ioc_userspace_one": null, "zfs_ioc_userspace_upgrade": null, "zfs_ioc_vdev_add": null, "zfs_ioc_vdev_attach": null, "zfs_ioc_vdev_detach": null, "zfs_ioc_vdev_remove": null, "zfs_ioc_vdev_set_state": null, "zfs_ioc_vdev_setfru": null, "zfs_ioc_vdev_setpath": null, "zfs_ioc_vdev_split": null, "zfs_zstd_decompress": null, "zle_decompress": null } }, "callsite": "ops->transform", "chain_summary": [ { "parent": "", "source_code": [ "static void sha256_update(sha256_ctx *ctx, const uint8_t *data, size_t len)", "{", "\tuint64_t pos = ctx->count[0];", "\tuint64_t total = ctx->count[1];", "\tuint8_t *m = ctx->wbuf;", "\tconst sha256_ops_t *ops = ctx->ops;", "\tif (pos && pos + len >= 64) {", "\t\tmemcpy(m + pos, data, 64 - pos);", "\t\tops->transform(ctx->state, m, 1);", "\t\tlen -= 64 - pos;", "\t\ttotal += (64 - pos) * 8;", "\t\tdata += 64 - pos;", "\t\tpos = 0;", "\t}", "\tif (len >= 64) {", "\t\tuint32_t blocks = len / 64;", "\t\tuint32_t bytes = blocks * 64;", "\t\tops->transform(ctx->state, data, blocks);", "\t\tlen -= bytes;", "\t\ttotal += (bytes) * 8;", "\t\tdata += bytes;", "\t}", "\tmemcpy(m + pos, data, len);", "\tpos += len;", "\ttotal += len * 8;", "\tctx->count[0] = pos;", "\tctx->count[1] = total;", "}" ] }, { "parent": "", "source_code": [ "void", "SHA2Update(SHA2_CTX *ctx, const void *data, size_t len)", "{", "\t/* check for zero input length */", "\tif (len == 0)", "\t\treturn;", "\tASSERT3P(data, !=, NULL);", "\tswitch (ctx->algotype) {", "\t\tcase SHA256_MECH_INFO_TYPE:", "\t\tcase SHA256_HMAC_MECH_INFO_TYPE:", "\t\tcase SHA256_HMAC_GEN_MECH_INFO_TYPE:", "\t\t\tsha256_update(&ctx->sha256, data, len);", "\t\t\tbreak;", "\t\tcase SHA384_MECH_INFO_TYPE:", "\t\tcase SHA384_HMAC_MECH_INFO_TYPE:", "\t\tcase SHA384_HMAC_GEN_MECH_INFO_TYPE:", "\t\t\tsha512_update(&ctx->sha512, data, len);", "\t\t\tbreak;", "\t\tcase SHA512_MECH_INFO_TYPE:", "\t\tcase SHA512_HMAC_MECH_INFO_TYPE:", "\t\tcase SHA512_HMAC_GEN_MECH_INFO_TYPE:", "\t\t\tsha512_update(&ctx->sha512, data, len);", "\t\t\tbreak;", "\t\tcase SHA512_224_MECH_INFO_TYPE:", "\t\t\tsha512_update(&ctx->sha512, data, len);", "\t\t\tbreak;", "\t\tcase SHA512_256_MECH_INFO_TYPE:", "\t\t\tsha512_update(&ctx->sha512, data, len);", "\t\t\tbreak;", "\t}", "}" ] }, { "parent": "", "source_code": [ "static void", "sha2_mac_init_ctx(sha2_hmac_ctx_t *ctx, void *keyval, uint_t length_in_bytes)", "{", "\tuint64_t ipad[SHA512_HMAC_BLOCK_SIZE / sizeof (uint64_t)] = {0};", "\tuint64_t opad[SHA512_HMAC_BLOCK_SIZE / sizeof (uint64_t)] = {0};", "\tint i, block_size, blocks_per_int64;", "\t/* Determine the block size */", "\tif (ctx->hc_mech_type <= SHA256_HMAC_GEN_MECH_INFO_TYPE) {", "\t\tblock_size = SHA256_HMAC_BLOCK_SIZE;", "\t\tblocks_per_int64 = SHA256_HMAC_BLOCK_SIZE / sizeof (uint64_t);", "\t} else {", "\t\tblock_size = SHA512_HMAC_BLOCK_SIZE;", "\t\tblocks_per_int64 = SHA512_HMAC_BLOCK_SIZE / sizeof (uint64_t);", "\t}", "\t(void) memset(ipad, 0, block_size);", "\t(void) memset(opad, 0, block_size);", "\tif (keyval != NULL) {", "\t\t(void) memcpy(ipad, keyval, length_in_bytes);", "\t\t(void) memcpy(opad, keyval, length_in_bytes);", "\t} else {", "\t\tASSERT0(length_in_bytes);", "\t}", "\t/* XOR key with ipad (0x36) and opad (0x5c) */", "\tfor (i = 0; i < blocks_per_int64; i ++) {", "\t\tipad[i] ^= 0x3636363636363636;", "\t\topad[i] ^= 0x5c5c5c5c5c5c5c5c;", "\t}", "\t/* perform SHA2 on ipad */", "\tSHA2Init(ctx->hc_mech_type, &ctx->hc_icontext);", "\tSHA2Update(&ctx->hc_icontext, (uint8_t *)ipad, block_size);", "\t/* perform SHA2 on opad */", "\tSHA2Init(ctx->hc_mech_type, &ctx->hc_ocontext);", "\tSHA2Update(&ctx->hc_ocontext, (uint8_t *)opad, block_size);", "}" ] }, { "parent": "", "source_code": [ "void", "SHA2Init(int algotype, SHA2_CTX *ctx)", "{", "\tsha256_ctx *ctx256 = &ctx->sha256;", "\tsha512_ctx *ctx512 = &ctx->sha512;", "\tASSERT3S(algotype, >=, SHA256_MECH_INFO_TYPE);", "\tASSERT3S(algotype, <=, SHA512_256_MECH_INFO_TYPE);", "\tmemset(ctx, 0, sizeof (*ctx));", "\tctx->algotype = algotype;", "\tswitch (ctx->algotype) {", "\t\tcase SHA256_MECH_INFO_TYPE:", "\t\tcase SHA256_HMAC_MECH_INFO_TYPE:", "\t\tcase SHA256_HMAC_GEN_MECH_INFO_TYPE:", "\t\t\tctx256->state[0] = 0x6a09e667;", "\t\t\tctx256->state[1] = 0xbb67ae85;", "\t\t\tctx256->state[2] = 0x3c6ef372;", "\t\t\tctx256->state[3] = 0xa54ff53a;", "\t\t\tctx256->state[4] = 0x510e527f;", "\t\t\tctx256->state[5] = 0x9b05688c;", "\t\t\tctx256->state[6] = 0x1f83d9ab;", "\t\t\tctx256->state[7] = 0x5be0cd19;", "\t\t\tctx256->count[0] = 0;", "\t\t\tctx256->ops = sha256_get_ops();", "\t\t\tbreak;", "\t\tcase SHA384_MECH_INFO_TYPE:", "\t\tcase SHA384_HMAC_MECH_INFO_TYPE:", "\t\tcase SHA384_HMAC_GEN_MECH_INFO_TYPE:", "\t\t\tctx512->state[0] = 0xcbbb9d5dc1059ed8ULL;", "\t\t\tctx512->state[1] = 0x629a292a367cd507ULL;", "\t\t\tctx512->state[2] = 0x9159015a3070dd17ULL;", "\t\t\tctx512->state[3] = 0x152fecd8f70e5939ULL;", "\t\t\tctx512->state[4] = 0x67332667ffc00b31ULL;", "\t\t\tctx512->state[5] = 0x8eb44a8768581511ULL;", "\t\t\tctx512->state[6] = 0xdb0c2e0d64f98fa7ULL;", "\t\t\tctx512->state[7] = 0x47b5481dbefa4fa4ULL;", "\t\t\tctx512->count[0] = 0;", "\t\t\tctx512->count[1] = 0;", "\t\t\tctx512->ops = sha512_get_ops();", "\t\t\tbreak;", "\t\tcase SHA512_MECH_INFO_TYPE:", "\t\tcase SHA512_HMAC_MECH_INFO_TYPE:", "\t\tcase SHA512_HMAC_GEN_MECH_INFO_TYPE:", "\t\t\tctx512->state[0] = 0x6a09e667f3bcc908ULL;", "\t\t\tctx512->state[1] = 0xbb67ae8584caa73bULL;", "\t\t\tctx512->state[2] = 0x3c6ef372fe94f82bULL;", "\t\t\tctx512->state[3] = 0xa54ff53a5f1d36f1ULL;", "\t\t\tctx512->state[4] = 0x510e527fade682d1ULL;", "\t\t\tctx512->state[5] = 0x9b05688c2b3e6c1fULL;", "\t\t\tctx512->state[6] = 0x1f83d9abfb41bd6bULL;", "\t\t\tctx512->state[7] = 0x5be0cd19137e2179ULL;", "\t\t\tctx512->count[0] = 0;", "\t\t\tctx512->count[1] = 0;", "\t\t\tctx512->ops = sha512_get_ops();", "\t\t\tbreak;", "\t\tcase SHA512_224_MECH_INFO_TYPE:", "\t\t\tctx512->state[0] = 0x8c3d37c819544da2ULL;", "\t\t\tctx512->state[1] = 0x73e1996689dcd4d6ULL;", "\t\t\tctx512->state[2] = 0x1dfab7ae32ff9c82ULL;", "\t\t\tctx512->state[3] = 0x679dd514582f9fcfULL;", "\t\t\tctx512->state[4] = 0x0f6d2b697bd44da8ULL;", "\t\t\tctx512->state[5] = 0x77e36f7304c48942ULL;", "\t\t\tctx512->state[6] = 0x3f9d85a86a1d36c8ULL;", "\t\t\tctx512->state[7] = 0x1112e6ad91d692a1ULL;", "\t\t\tctx512->count[0] = 0;", "\t\t\tctx512->count[1] = 0;", "\t\t\tctx512->ops = sha512_get_ops();", "\t\t\tbreak;", "\t\tcase SHA512_256_MECH_INFO_TYPE:", "\t\t\tctx512->state[0] = 0x22312194fc2bf72cULL;", "\t\t\tctx512->state[1] = 0x9f555fa3c84c64c2ULL;", "\t\t\tctx512->state[2] = 0x2393b86b6f53b151ULL;", "\t\t\tctx512->state[3] = 0x963877195940eabdULL;", "\t\t\tctx512->state[4] = 0x96283ee2a88effe3ULL;", "\t\t\tctx512->state[5] = 0xbe5e1e2553863992ULL;", "\t\t\tctx512->state[6] = 0x2b0199fc2c85b8aaULL;", "\t\t\tctx512->state[7] = 0x0eb72ddc81c52ca2ULL;", "\t\t\tctx512->count[0] = 0;", "\t\t\tctx512->count[1] = 0;", "\t\t\tctx512->ops = sha512_get_ops();", "\t\t\tbreak;", "\t}", "}" ] }, { "parent": "", "source_code": [ "#define\tIMPL_NAME\t\t\"sha256\"", "#define\tIMPL_OPS_T\t\tsha256_ops_t", "#define\tIMPL_ARRAY\t\tsha256_impls", "#define\tIMPL_GET_OPS\t\tsha256_get_ops", "#define\tZFS_IMPL_OPS\t\tzfs_sha256_ops" ] }, { "parent": "", "source_code": [ "#define\tIMPL_NAME\t\t\"sha512\"", "#define\tIMPL_OPS_T\t\tsha512_ops_t", "#define\tIMPL_ARRAY\t\tsha512_impls", "#define\tIMPL_GET_OPS\t\tsha512_get_ops", "#define\tZFS_IMPL_OPS\t\tzfs_sha512_ops" ] }, { "parent": "", "source_code": [ "const IMPL_OPS_T *", "IMPL_GET_OPS(void)", "{", "\tconst IMPL_OPS_T *ops = NULL;", "\tuint32_t idx, impl = IMPL_READ(generic_impl_chosen);", "\tstatic uint32_t cycle_count = 0;", "\tgeneric_impl_init();", "\tswitch (impl) {", "\tcase IMPL_FASTEST:", "\t\tops = &generic_fastest_impl;", "\t\tbreak;", "\tcase IMPL_CYCLE:", "\t\tidx = (++cycle_count) % generic_supp_impls_cnt;", "\t\tops = generic_supp_impls[idx];", "\t\tbreak;", "\tdefault:", "\t\tASSERT3U(impl, <, generic_supp_impls_cnt);", "\t\tops = generic_supp_impls[impl];", "\t\tbreak;", "\t}", "\tASSERT3P(ops, !=, NULL);", "\treturn (ops);", "}" ] }, { "parent": "", "source_code": [ "/* Implementation that contains the fastest method */", "static IMPL_OPS_T generic_fastest_impl = {", "\t.name = \"fastest\"", "};", "static void", "generic_impl_init(void)", "{", "\tint i, c;", "\t/* init only once */", "\tif (likely(generic_supp_impls_cnt != 0))", "\t\treturn;", "\t/* Move supported implementations into generic_supp_impls */", "\tfor (i = 0, c = 0; i < ARRAY_SIZE(IMPL_ARRAY); i++) {", "\t\tconst IMPL_OPS_T *impl = IMPL_ARRAY[i];", "\t\tif (impl->is_supported && impl->is_supported())", "\t\t\tgeneric_supp_impls[c++] = impl;", "\t}", "\tgeneric_supp_impls_cnt = c;", "\t/* first init generic impl, may be changed via set_fastest() */", "\tmemcpy(&generic_fastest_impl, generic_supp_impls[0],", "\t sizeof (generic_fastest_impl));", "}", "static void", "generic_impl_set_fastest(uint32_t id)", "{", "\tgeneric_impl_init();", "\tmemcpy(&generic_fastest_impl, generic_supp_impls[id],", "\t sizeof (generic_fastest_impl));", "}" ] }, { "parent": "", "source_code": [ "static const IMPL_OPS_T *generic_supp_impls[ARRAY_SIZE(IMPL_ARRAY)];", "static void", "generic_impl_init(void)", "{", "\tint i, c;", "\t/* init only once */", "\tif (likely(generic_supp_impls_cnt != 0))", "\t\treturn;", "\t/* Move supported implementations into generic_supp_impls */", "\tfor (i = 0, c = 0; i < ARRAY_SIZE(IMPL_ARRAY); i++) {", "\t\tconst IMPL_OPS_T *impl = IMPL_ARRAY[i];", "\t\tif (impl->is_supported && impl->is_supported())", "\t\t\tgeneric_supp_impls[c++] = impl;", "\t}", "\tgeneric_supp_impls_cnt = c;", "\t/* first init generic impl, may be changed via set_fastest() */", "\tmemcpy(&generic_fastest_impl, generic_supp_impls[0],", "\t sizeof (generic_fastest_impl));", "}" ] }, { "parent": "", "source_code": [ "static const sha256_ops_t *const sha256_impls[] = {", "\t&sha256_generic_impl,", "#if defined(__x86_64)", "\t&sha256_x64_impl,", "#endif", "#if defined(__x86_64) && defined(HAVE_SSSE3)", "\t&sha256_ssse3_impl,", "#endif", "#if defined(__x86_64) && defined(HAVE_AVX)", "\t&sha256_avx_impl,", "#endif", "#if defined(__x86_64) && defined(HAVE_AVX2)", "\t&sha256_avx2_impl,", "#endif", "#if defined(__x86_64) && defined(HAVE_SSE4_1)", "\t&sha256_shani_impl,", "#endif", "#if defined(__aarch64__) || (defined(__arm__) && __ARM_ARCH > 6)", "\t&sha256_armv7_impl,", "\t&sha256_neon_impl,", "\t&sha256_armv8_impl,", "#endif", "#if defined(__PPC64__)", "\t&sha256_ppc_impl,", "\t&sha256_power8_impl,", "#endif /* __PPC64__ */", "};" ] }, { "parent": "", "source_code": [ "const sha256_ops_t sha256_generic_impl = {", "\t.name = \"generic\",", "\t.transform = sha256_generic,", "\t.is_supported = sha2_is_supported", "};", "const sha512_ops_t sha512_generic_impl = {", "\t.name = \"generic\",", "\t.transform = sha512_generic,", "\t.is_supported = sha2_is_supported", "};" ] }, { "parent": "", "source_code": [ "static const sha512_ops_t *const sha512_impls[] = {", "\t&sha512_generic_impl,", "#if defined(__x86_64)", "\t&sha512_x64_impl,", "#endif", "#if defined(__x86_64) && defined(HAVE_AVX)", "\t&sha512_avx_impl,", "#endif", "#if defined(__x86_64) && defined(HAVE_AVX2)", "\t&sha512_avx2_impl,", "#endif", "#if defined(__aarch64__)", "\t&sha512_armv7_impl,", "\t&sha512_armv8_impl,", "#endif", "#if defined(__arm__) && __ARM_ARCH > 6", "\t&sha512_armv7_impl,", "\t&sha512_neon_impl,", "#endif", "#if defined(__PPC64__)", "\t&sha512_ppc_impl,", "\t&sha512_power8_impl,", "#endif /* __PPC64__ */", "};" ] }, { "parent": "", "source_code": [ "const sha512_ops_t sha512_x64_impl = {", "\t.is_supported = sha2_is_supported,", "\t.transform = tf_sha512_transform_x64,", "\t.name = \"x64\"", "};" ] }, { "parent": "", "source_code": [ "const sha256_ops_t sha256_x64_impl = {", "\t.is_supported = sha2_is_supported,", "\t.transform = tf_sha256_transform_x64,", "\t.name = \"x64\"", "};" ] } ], "type": "fnptr-global-struct-array" }
null
null
null
null
null
null
{ "callees": { "targets": { "aes_encrypt_block": null, "aes_xor_block": null, "count_unflushed_space_cb": null, "ddt_zap_lookup": "", "dsl_dataset_hold": null, "dsl_dataset_hold_obj_string": null, "dump_acl": null, "dump_bpobj": null, "dump_bpobj_subobjs": null, "dump_ddt_zap": null, "dump_dmu_objset": null, "dump_dnode": null, "dump_dsl_dataset": null, "dump_dsl_dir": null, "dump_history_offsets": null, "dump_none": null, "dump_packed_nvlist": null, "dump_sa_attrs": null, "dump_sa_layouts": null, "dump_uint64": null, "dump_uint8": null, "dump_unknown": null, "dump_zap": null, "dump_znode": null, "dump_zpldir": null, "fletcher_4_scalar_native": null, "fletcher_4_superscalar4_native": null, "fletcher_4_superscalar_native": null, "gzip_decompress": null, "load_unflushed_cb": null, "load_unflushed_svr_segs_cb": null, "log_spacemap_obsolete_stats_cb": null, "lz4_decompress_zfs": null, "lzjb_decompress": null, "mul_x1_0": null, "mul_x1_1": null, "mul_x1_10": null, "mul_x1_100": null, "mul_x1_101": null, "mul_x1_102": null, "mul_x1_103": null, "mul_x1_104": null, "mul_x1_105": null, "mul_x1_106": null, "mul_x1_107": null, "mul_x1_108": null, "mul_x1_109": null, "mul_x1_11": null, "mul_x1_110": null, "mul_x1_111": null, "mul_x1_112": null, "mul_x1_113": null, "mul_x1_114": null, "mul_x1_115": null, "mul_x1_116": null, "mul_x1_117": null, "mul_x1_118": null, "mul_x1_119": null, "mul_x1_12": null, "mul_x1_120": null, "mul_x1_121": null, "mul_x1_122": null, "mul_x1_123": null, "mul_x1_124": null, "mul_x1_125": null, "mul_x1_126": null, "mul_x1_127": null, "mul_x1_128": null, "mul_x1_129": null, "mul_x1_13": null, "mul_x1_130": null, "mul_x1_131": null, "mul_x1_132": null, "mul_x1_133": null, "mul_x1_134": null, "mul_x1_135": null, "mul_x1_136": null, "mul_x1_137": null, "mul_x1_138": null, "mul_x1_139": null, "mul_x1_14": null, "mul_x1_140": null, "mul_x1_141": null, "mul_x1_142": null, "mul_x1_143": null, "mul_x1_144": null, "mul_x1_145": null, "mul_x1_146": null, "mul_x1_147": null, "mul_x1_148": null, "mul_x1_149": null, "mul_x1_15": null, "mul_x1_150": null, "mul_x1_151": null, "mul_x1_152": null, "mul_x1_153": null, "mul_x1_154": null, "mul_x1_155": null, "mul_x1_156": null, "mul_x1_157": null, "mul_x1_158": null, "mul_x1_159": null, "mul_x1_16": null, "mul_x1_160": null, "mul_x1_161": null, "mul_x1_162": null, "mul_x1_163": null, "mul_x1_164": null, "mul_x1_165": null, "mul_x1_166": null, "mul_x1_167": null, "mul_x1_168": null, "mul_x1_169": null, "mul_x1_17": null, "mul_x1_170": null, "mul_x1_171": null, "mul_x1_172": null, "mul_x1_173": null, "mul_x1_174": null, "mul_x1_175": null, "mul_x1_176": null, "mul_x1_177": null, "mul_x1_178": null, "mul_x1_179": null, "mul_x1_18": null, "mul_x1_180": null, "mul_x1_181": null, "mul_x1_182": null, "mul_x1_183": null, "mul_x1_184": null, "mul_x1_185": null, "mul_x1_186": null, "mul_x1_187": null, "mul_x1_188": null, "mul_x1_189": null, "mul_x1_19": null, "mul_x1_190": null, "mul_x1_191": null, "mul_x1_192": null, "mul_x1_193": null, "mul_x1_194": null, "mul_x1_195": null, "mul_x1_196": null, "mul_x1_197": null, "mul_x1_198": null, "mul_x1_199": null, "mul_x1_2": null, "mul_x1_20": null, "mul_x1_200": null, "mul_x1_201": null, "mul_x1_202": null, "mul_x1_203": null, "mul_x1_204": null, "mul_x1_205": null, "mul_x1_206": null, "mul_x1_207": null, "mul_x1_208": null, "mul_x1_209": null, "mul_x1_21": null, "mul_x1_210": null, "mul_x1_211": null, "mul_x1_212": null, "mul_x1_213": null, "mul_x1_214": null, "mul_x1_215": null, "mul_x1_216": null, "mul_x1_217": null, "mul_x1_218": null, "mul_x1_219": null, "mul_x1_22": null, "mul_x1_220": null, "mul_x1_221": null, "mul_x1_222": null, "mul_x1_223": null, "mul_x1_224": null, "mul_x1_225": null, "mul_x1_226": null, "mul_x1_227": null, "mul_x1_228": null, "mul_x1_229": null, "mul_x1_23": null, "mul_x1_230": null, "mul_x1_231": null, "mul_x1_232": null, "mul_x1_233": null, "mul_x1_234": null, "mul_x1_235": null, "mul_x1_236": null, "mul_x1_237": null, "mul_x1_238": null, "mul_x1_239": null, "mul_x1_24": null, "mul_x1_240": null, "mul_x1_241": null, "mul_x1_242": null, "mul_x1_243": null, "mul_x1_244": null, "mul_x1_245": null, "mul_x1_246": null, "mul_x1_247": null, "mul_x1_248": null, "mul_x1_249": null, "mul_x1_25": null, "mul_x1_250": null, "mul_x1_251": null, "mul_x1_252": null, "mul_x1_253": null, "mul_x1_254": null, "mul_x1_255": null, "mul_x1_26": null, "mul_x1_27": null, "mul_x1_28": null, "mul_x1_29": null, "mul_x1_3": null, "mul_x1_30": null, "mul_x1_31": null, "mul_x1_32": null, "mul_x1_33": null, "mul_x1_34": null, "mul_x1_35": null, "mul_x1_36": null, "mul_x1_37": null, "mul_x1_38": null, "mul_x1_39": null, "mul_x1_4": null, "mul_x1_40": null, "mul_x1_41": null, "mul_x1_42": null, "mul_x1_43": null, "mul_x1_44": null, "mul_x1_45": null, "mul_x1_46": null, "mul_x1_47": null, "mul_x1_48": null, "mul_x1_49": null, "mul_x1_5": null, "mul_x1_50": null, "mul_x1_51": null, "mul_x1_52": null, "mul_x1_53": null, "mul_x1_54": null, "mul_x1_55": null, "mul_x1_56": null, "mul_x1_57": null, "mul_x1_58": null, "mul_x1_59": null, "mul_x1_6": null, "mul_x1_60": null, "mul_x1_61": null, "mul_x1_62": null, "mul_x1_63": null, "mul_x1_64": null, "mul_x1_65": null, "mul_x1_66": null, "mul_x1_67": null, "mul_x1_68": null, "mul_x1_69": null, "mul_x1_7": null, "mul_x1_70": null, "mul_x1_71": null, "mul_x1_72": null, "mul_x1_73": null, "mul_x1_74": null, "mul_x1_75": null, "mul_x1_76": null, "mul_x1_77": null, "mul_x1_78": null, "mul_x1_79": null, "mul_x1_8": null, "mul_x1_80": null, "mul_x1_81": null, "mul_x1_82": null, "mul_x1_83": null, "mul_x1_84": null, "mul_x1_85": null, "mul_x1_86": null, "mul_x1_87": null, "mul_x1_88": null, "mul_x1_89": null, "mul_x1_9": null, "mul_x1_90": null, "mul_x1_91": null, "mul_x1_92": null, "mul_x1_93": null, "mul_x1_94": null, "mul_x1_95": null, "mul_x1_96": null, "mul_x1_97": null, "mul_x1_98": null, "mul_x1_99": null, "nfs_commit_shares": null, "nfs_copy_entries_cb": null, "nfs_is_shared_cb": null, "sha256_generic": null, "sha512_generic": null, "smb_update_shares": null, "spacemap_check_sm_log_cb": null, "tf_sha256_transform_x64": null, "tf_sha512_transform_x64": null, "vdev_indirect_remap": null, "zfs_ace_fuid_size": null, "zfs_ace_v0_size": null, "zfs_do_allow": null, "zfs_do_bookmark": null, "zfs_do_change_key": null, "zfs_do_channel_program": null, "zfs_do_clone": null, "zfs_do_create": null, "zfs_do_destroy": null, "zfs_do_diff": null, "zfs_do_get": null, "zfs_do_hold": null, "zfs_do_holds": null, "zfs_do_inherit": null, "zfs_do_list": null, "zfs_do_load_key": null, "zfs_do_mount": null, "zfs_do_project": null, "zfs_do_promote": null, "zfs_do_receive": null, "zfs_do_redact": null, "zfs_do_release": null, "zfs_do_rename": null, "zfs_do_rollback": null, "zfs_do_send": null, "zfs_do_set": null, "zfs_do_share": null, "zfs_do_snapshot": null, "zfs_do_unallow": null, "zfs_do_unload_key": null, "zfs_do_unmount": null, "zfs_do_unshare": null, "zfs_do_unzone": null, "zfs_do_upgrade": null, "zfs_do_userspace": null, "zfs_do_version": null, "zfs_do_wait": null, "zfs_do_zone": null, "zfs_fm_close": null, "zfs_ioc_clear": null, "zfs_ioc_clear_fault": null, "zfs_ioc_dataset_list_next": null, "zfs_ioc_destroy": null, "zfs_ioc_diff": null, "zfs_ioc_dsobj_to_dsname": null, "zfs_ioc_error_log": null, "zfs_ioc_events_clear": null, "zfs_ioc_events_next": null, "zfs_ioc_events_seek": null, "zfs_ioc_get_fsacl": null, "zfs_ioc_inherit_prop": null, "zfs_ioc_inject_fault": null, "zfs_ioc_inject_list_next": null, "zfs_ioc_next_obj": null, "zfs_ioc_obj_to_path": null, "zfs_ioc_obj_to_stats": null, "zfs_ioc_objset_recvd_props": null, "zfs_ioc_objset_stats": null, "zfs_ioc_objset_zplprops": null, "zfs_ioc_pool_configs": null, "zfs_ioc_pool_create": null, "zfs_ioc_pool_destroy": null, "zfs_ioc_pool_export": null, "zfs_ioc_pool_freeze": null, "zfs_ioc_pool_get_history": null, "zfs_ioc_pool_get_props": null, "zfs_ioc_pool_import": null, "zfs_ioc_pool_reguid": null, "zfs_ioc_pool_scan": null, "zfs_ioc_pool_set_props": null, "zfs_ioc_pool_stats": null, "zfs_ioc_pool_tryimport": null, "zfs_ioc_pool_upgrade": null, "zfs_ioc_promote": null, "zfs_ioc_recv": null, "zfs_ioc_rename": null, "zfs_ioc_send": null, "zfs_ioc_send_progress": null, "zfs_ioc_set_fsacl": null, "zfs_ioc_set_prop": null, "zfs_ioc_share": null, "zfs_ioc_smb_acl": null, "zfs_ioc_snapshot_list_next": null, "zfs_ioc_space_written": null, "zfs_ioc_tmp_snapshot": null, "zfs_ioc_userspace_many": null, "zfs_ioc_userspace_one": null, "zfs_ioc_userspace_upgrade": null, "zfs_ioc_vdev_add": null, "zfs_ioc_vdev_attach": null, "zfs_ioc_vdev_detach": null, "zfs_ioc_vdev_remove": null, "zfs_ioc_vdev_set_state": null, "zfs_ioc_vdev_setfru": null, "zfs_ioc_vdev_setpath": null, "zfs_ioc_vdev_split": null, "zfs_zstd_decompress": null, "zle_decompress": null } }, "callsite": "ddt_ops[type]->ddt_op_lookup", "chain_summary": [ { "parent": "", "source_code": [ "static int", "ddt_object_lookup(ddt_t *ddt, enum ddt_type type, enum ddt_class class,", " ddt_entry_t *dde)", "{", "\tif (!ddt_object_exists(ddt, type, class))", "\t\treturn (SET_ERROR(ENOENT));", "\treturn (ddt_ops[type]->ddt_op_lookup(ddt->ddt_os,", "\t ddt->ddt_object[type][class], dde));", "}" ] }, { "parent": "", "source_code": [ "static const ddt_ops_t *const ddt_ops[DDT_TYPES] = {", "\t&ddt_zap_ops,", "};" ] }, { "parent": "", "source_code": [ "const ddt_ops_t ddt_zap_ops = {", "\t\"zap\",", "\tddt_zap_create,", "\tddt_zap_destroy,", "\tddt_zap_lookup,", "\tddt_zap_prefetch,", "\tddt_zap_update,", "\tddt_zap_remove,", "\tddt_zap_walk,", "\tddt_zap_count,", "};" ] }, { "parent": "", "source_code": [ "typedef struct ddt_ops {", "\tchar ddt_op_name[32];", "\tint (*ddt_op_create)(objset_t *os, uint64_t *object, dmu_tx_t *tx,", "\t boolean_t prehash);", "\tint (*ddt_op_destroy)(objset_t *os, uint64_t object, dmu_tx_t *tx);", "\tint (*ddt_op_lookup)(objset_t *os, uint64_t object, ddt_entry_t *dde);", "\tvoid (*ddt_op_prefetch)(objset_t *os, uint64_t object,", "\t ddt_entry_t *dde);", "\tint (*ddt_op_update)(objset_t *os, uint64_t object, ddt_entry_t *dde,", "\t dmu_tx_t *tx);", "\tint (*ddt_op_remove)(objset_t *os, uint64_t object, ddt_entry_t *dde,", "\t dmu_tx_t *tx);", "\tint (*ddt_op_walk)(objset_t *os, uint64_t object, ddt_entry_t *dde,", "\t uint64_t *walk);", "\tint (*ddt_op_count)(objset_t *os, uint64_t object, uint64_t *count);", "} ddt_ops_t;" ] } ], "type": "fnptr-global-struct-array" }
null
null
null
null
null
null
{ "callees": { "targets": { "aes_encrypt_block": null, "aes_xor_block": null, "count_unflushed_space_cb": null, "ddt_zap_lookup": null, "dsl_dataset_hold": null, "dsl_dataset_hold_obj_string": null, "dump_acl": null, "dump_bpobj": null, "dump_bpobj_subobjs": null, "dump_ddt_zap": null, "dump_dmu_objset": null, "dump_dnode": null, "dump_dsl_dataset": null, "dump_dsl_dir": null, "dump_history_offsets": null, "dump_none": null, "dump_packed_nvlist": null, "dump_sa_attrs": null, "dump_sa_layouts": null, "dump_uint64": null, "dump_uint8": null, "dump_unknown": null, "dump_zap": null, "dump_znode": null, "dump_zpldir": null, "fletcher_4_scalar_native": null, "fletcher_4_superscalar4_native": null, "fletcher_4_superscalar_native": null, "gzip_decompress": null, "load_unflushed_cb": null, "load_unflushed_svr_segs_cb": null, "log_spacemap_obsolete_stats_cb": null, "lz4_decompress_zfs": null, "lzjb_decompress": null, "mul_x1_0": null, "mul_x1_1": null, "mul_x1_10": null, "mul_x1_100": null, "mul_x1_101": null, "mul_x1_102": null, "mul_x1_103": null, "mul_x1_104": null, "mul_x1_105": null, "mul_x1_106": null, "mul_x1_107": null, "mul_x1_108": null, "mul_x1_109": null, "mul_x1_11": null, "mul_x1_110": null, "mul_x1_111": null, "mul_x1_112": null, "mul_x1_113": null, "mul_x1_114": null, "mul_x1_115": null, "mul_x1_116": null, "mul_x1_117": null, "mul_x1_118": null, "mul_x1_119": null, "mul_x1_12": null, "mul_x1_120": null, "mul_x1_121": null, "mul_x1_122": null, "mul_x1_123": null, "mul_x1_124": null, "mul_x1_125": null, "mul_x1_126": null, "mul_x1_127": null, "mul_x1_128": null, "mul_x1_129": null, "mul_x1_13": null, "mul_x1_130": null, "mul_x1_131": null, "mul_x1_132": null, "mul_x1_133": null, "mul_x1_134": null, "mul_x1_135": null, "mul_x1_136": null, "mul_x1_137": null, "mul_x1_138": null, "mul_x1_139": null, "mul_x1_14": null, "mul_x1_140": null, "mul_x1_141": null, "mul_x1_142": null, "mul_x1_143": null, "mul_x1_144": null, "mul_x1_145": null, "mul_x1_146": null, "mul_x1_147": null, "mul_x1_148": null, "mul_x1_149": null, "mul_x1_15": null, "mul_x1_150": null, "mul_x1_151": null, "mul_x1_152": null, "mul_x1_153": null, "mul_x1_154": null, "mul_x1_155": null, "mul_x1_156": null, "mul_x1_157": null, "mul_x1_158": null, "mul_x1_159": null, "mul_x1_16": null, "mul_x1_160": null, "mul_x1_161": null, "mul_x1_162": null, "mul_x1_163": null, "mul_x1_164": null, "mul_x1_165": null, "mul_x1_166": null, "mul_x1_167": null, "mul_x1_168": null, "mul_x1_169": null, "mul_x1_17": null, "mul_x1_170": null, "mul_x1_171": null, "mul_x1_172": null, "mul_x1_173": null, "mul_x1_174": null, "mul_x1_175": null, "mul_x1_176": null, "mul_x1_177": null, "mul_x1_178": null, "mul_x1_179": null, "mul_x1_18": null, "mul_x1_180": null, "mul_x1_181": null, "mul_x1_182": null, "mul_x1_183": null, "mul_x1_184": null, "mul_x1_185": null, "mul_x1_186": null, "mul_x1_187": null, "mul_x1_188": null, "mul_x1_189": null, "mul_x1_19": null, "mul_x1_190": null, "mul_x1_191": null, "mul_x1_192": null, "mul_x1_193": null, "mul_x1_194": null, "mul_x1_195": null, "mul_x1_196": null, "mul_x1_197": null, "mul_x1_198": null, "mul_x1_199": null, "mul_x1_2": null, "mul_x1_20": null, "mul_x1_200": null, "mul_x1_201": null, "mul_x1_202": null, "mul_x1_203": null, "mul_x1_204": null, "mul_x1_205": null, "mul_x1_206": null, "mul_x1_207": null, "mul_x1_208": null, "mul_x1_209": null, "mul_x1_21": null, "mul_x1_210": null, "mul_x1_211": null, "mul_x1_212": null, "mul_x1_213": null, "mul_x1_214": null, "mul_x1_215": null, "mul_x1_216": null, "mul_x1_217": null, "mul_x1_218": null, "mul_x1_219": null, "mul_x1_22": null, "mul_x1_220": null, "mul_x1_221": null, "mul_x1_222": null, "mul_x1_223": null, "mul_x1_224": null, "mul_x1_225": null, "mul_x1_226": null, "mul_x1_227": null, "mul_x1_228": null, "mul_x1_229": null, "mul_x1_23": null, "mul_x1_230": null, "mul_x1_231": null, "mul_x1_232": null, "mul_x1_233": null, "mul_x1_234": null, "mul_x1_235": null, "mul_x1_236": null, "mul_x1_237": null, "mul_x1_238": null, "mul_x1_239": null, "mul_x1_24": null, "mul_x1_240": null, "mul_x1_241": null, "mul_x1_242": null, "mul_x1_243": null, "mul_x1_244": null, "mul_x1_245": null, "mul_x1_246": null, "mul_x1_247": null, "mul_x1_248": null, "mul_x1_249": null, "mul_x1_25": null, "mul_x1_250": null, "mul_x1_251": null, "mul_x1_252": null, "mul_x1_253": null, "mul_x1_254": null, "mul_x1_255": null, "mul_x1_26": null, "mul_x1_27": null, "mul_x1_28": null, "mul_x1_29": null, "mul_x1_3": null, "mul_x1_30": null, "mul_x1_31": null, "mul_x1_32": null, "mul_x1_33": null, "mul_x1_34": null, "mul_x1_35": null, "mul_x1_36": null, "mul_x1_37": null, "mul_x1_38": null, "mul_x1_39": null, "mul_x1_4": null, "mul_x1_40": null, "mul_x1_41": null, "mul_x1_42": null, "mul_x1_43": null, "mul_x1_44": null, "mul_x1_45": null, "mul_x1_46": null, "mul_x1_47": null, "mul_x1_48": null, "mul_x1_49": null, "mul_x1_5": null, "mul_x1_50": null, "mul_x1_51": null, "mul_x1_52": null, "mul_x1_53": null, "mul_x1_54": null, "mul_x1_55": null, "mul_x1_56": null, "mul_x1_57": null, "mul_x1_58": null, "mul_x1_59": null, "mul_x1_6": null, "mul_x1_60": null, "mul_x1_61": null, "mul_x1_62": null, "mul_x1_63": null, "mul_x1_64": null, "mul_x1_65": null, "mul_x1_66": null, "mul_x1_67": null, "mul_x1_68": null, "mul_x1_69": null, "mul_x1_7": null, "mul_x1_70": null, "mul_x1_71": null, "mul_x1_72": null, "mul_x1_73": null, "mul_x1_74": null, "mul_x1_75": null, "mul_x1_76": null, "mul_x1_77": null, "mul_x1_78": null, "mul_x1_79": null, "mul_x1_8": null, "mul_x1_80": null, "mul_x1_81": null, "mul_x1_82": null, "mul_x1_83": null, "mul_x1_84": null, "mul_x1_85": null, "mul_x1_86": null, "mul_x1_87": null, "mul_x1_88": null, "mul_x1_89": null, "mul_x1_9": null, "mul_x1_90": null, "mul_x1_91": null, "mul_x1_92": null, "mul_x1_93": null, "mul_x1_94": null, "mul_x1_95": null, "mul_x1_96": null, "mul_x1_97": null, "mul_x1_98": null, "mul_x1_99": null, "nfs_commit_shares": null, "nfs_copy_entries_cb": "", "nfs_is_shared_cb": "", "sha256_generic": null, "sha512_generic": null, "smb_update_shares": null, "spacemap_check_sm_log_cb": null, "tf_sha256_transform_x64": null, "tf_sha512_transform_x64": null, "vdev_indirect_remap": null, "zfs_ace_fuid_size": null, "zfs_ace_v0_size": null, "zfs_do_allow": null, "zfs_do_bookmark": null, "zfs_do_change_key": null, "zfs_do_channel_program": null, "zfs_do_clone": null, "zfs_do_create": null, "zfs_do_destroy": null, "zfs_do_diff": null, "zfs_do_get": null, "zfs_do_hold": null, "zfs_do_holds": null, "zfs_do_inherit": null, "zfs_do_list": null, "zfs_do_load_key": null, "zfs_do_mount": null, "zfs_do_project": null, "zfs_do_promote": null, "zfs_do_receive": null, "zfs_do_redact": null, "zfs_do_release": null, "zfs_do_rename": null, "zfs_do_rollback": null, "zfs_do_send": null, "zfs_do_set": null, "zfs_do_share": null, "zfs_do_snapshot": null, "zfs_do_unallow": null, "zfs_do_unload_key": null, "zfs_do_unmount": null, "zfs_do_unshare": null, "zfs_do_unzone": null, "zfs_do_upgrade": null, "zfs_do_userspace": null, "zfs_do_version": null, "zfs_do_wait": null, "zfs_do_zone": null, "zfs_fm_close": null, "zfs_ioc_clear": null, "zfs_ioc_clear_fault": null, "zfs_ioc_dataset_list_next": null, "zfs_ioc_destroy": null, "zfs_ioc_diff": null, "zfs_ioc_dsobj_to_dsname": null, "zfs_ioc_error_log": null, "zfs_ioc_events_clear": null, "zfs_ioc_events_next": null, "zfs_ioc_events_seek": null, "zfs_ioc_get_fsacl": null, "zfs_ioc_inherit_prop": null, "zfs_ioc_inject_fault": null, "zfs_ioc_inject_list_next": null, "zfs_ioc_next_obj": null, "zfs_ioc_obj_to_path": null, "zfs_ioc_obj_to_stats": null, "zfs_ioc_objset_recvd_props": null, "zfs_ioc_objset_stats": null, "zfs_ioc_objset_zplprops": null, "zfs_ioc_pool_configs": null, "zfs_ioc_pool_create": null, "zfs_ioc_pool_destroy": null, "zfs_ioc_pool_export": null, "zfs_ioc_pool_freeze": null, "zfs_ioc_pool_get_history": null, "zfs_ioc_pool_get_props": null, "zfs_ioc_pool_import": null, "zfs_ioc_pool_reguid": null, "zfs_ioc_pool_scan": null, "zfs_ioc_pool_set_props": null, "zfs_ioc_pool_stats": null, "zfs_ioc_pool_tryimport": null, "zfs_ioc_pool_upgrade": null, "zfs_ioc_promote": null, "zfs_ioc_recv": null, "zfs_ioc_rename": null, "zfs_ioc_send": null, "zfs_ioc_send_progress": null, "zfs_ioc_set_fsacl": null, "zfs_ioc_set_prop": null, "zfs_ioc_share": null, "zfs_ioc_smb_acl": null, "zfs_ioc_snapshot_list_next": null, "zfs_ioc_space_written": null, "zfs_ioc_tmp_snapshot": null, "zfs_ioc_userspace_many": null, "zfs_ioc_userspace_one": null, "zfs_ioc_userspace_upgrade": null, "zfs_ioc_vdev_add": null, "zfs_ioc_vdev_attach": null, "zfs_ioc_vdev_detach": null, "zfs_ioc_vdev_remove": null, "zfs_ioc_vdev_set_state": null, "zfs_ioc_vdev_setfru": null, "zfs_ioc_vdev_setpath": null, "zfs_ioc_vdev_split": null, "zfs_zstd_decompress": null, "zle_decompress": null } }, "callsite": "cbk", "chain_summary": [ { "parent": "", "source_code": [ "static nfs_process_exports(const char *exports, const char *mountpoint,", " boolean_t (*cbk)(void *userdata, char *line, boolean_t found_mountpoint),", " void *userdata)", "{", "\tint error = SA_OK;", "\tboolean_t cont = B_TRUE;", "\tFILE *oldfp = fopen(exports, \"re\");", "\tif (oldfp != NULL) {", "\t\t...", "\t\twhile (cont && getline(&buf, &buflen, oldfp) != -1) {", "\t\t\tif (buf[0] == '\\n' || buf[0] == '#')", "\t\t\t\tcontinue;", "\t\t\tcont = cbk(userdata, buf,", "\t\t\t (sep = strpbrk(buf, \"\\t \\n\")) != NULL &&", "\t\t\t sep - buf == mplen &&", "\t\t\t strncmp(buf, mp, mplen) == 0);", "\t\t... ", "\t }", "\t return (error);", " }", "}" ] }, { "parent": "", "source_code": [ "static nfs_copy_entries(FILE *newfp, const char *exports, const char *mountpoint)", "{", "\tfputs(FILE_HEADER, newfp);", "\tint error = nfs_process_exports(", "\t exports, mountpoint, nfs_copy_entries_cb, newfp);", "\tif (error == SA_OK && ferror(newfp) != 0)", "\t\terror = ferror(newfp);", "\treturn (error);", "}" ] }, { "parent": "", "source_code": [ "boolean_t nfs_is_shared_impl(const char *exports, sa_share_impl_t impl_share)", "{", "\tboolean_t found = B_FALSE;", "\tnfs_process_exports(exports, impl_share->sa_mountpoint,", "\t nfs_is_shared_cb, &found);", "\treturn (found);", "}" ] } ], "type": "fnptr-callback" }
null
null
null
null
null
null
{ "callees": { "targets": { "aes_encrypt_block": "", "aes_xor_block": null, "count_unflushed_space_cb": null, "ddt_zap_lookup": null, "dsl_dataset_hold": null, "dsl_dataset_hold_obj_string": null, "dump_acl": null, "dump_bpobj": null, "dump_bpobj_subobjs": null, "dump_ddt_zap": null, "dump_dmu_objset": null, "dump_dnode": null, "dump_dsl_dataset": null, "dump_dsl_dir": null, "dump_history_offsets": null, "dump_none": null, "dump_packed_nvlist": null, "dump_sa_attrs": null, "dump_sa_layouts": null, "dump_uint64": null, "dump_uint8": null, "dump_unknown": null, "dump_zap": null, "dump_znode": null, "dump_zpldir": null, "fletcher_4_scalar_native": null, "fletcher_4_superscalar4_native": null, "fletcher_4_superscalar_native": null, "gzip_decompress": null, "load_unflushed_cb": null, "load_unflushed_svr_segs_cb": null, "log_spacemap_obsolete_stats_cb": null, "lz4_decompress_zfs": null, "lzjb_decompress": null, "mul_x1_0": null, "mul_x1_1": null, "mul_x1_10": null, "mul_x1_100": null, "mul_x1_101": null, "mul_x1_102": null, "mul_x1_103": null, "mul_x1_104": null, "mul_x1_105": null, "mul_x1_106": null, "mul_x1_107": null, "mul_x1_108": null, "mul_x1_109": null, "mul_x1_11": null, "mul_x1_110": null, "mul_x1_111": null, "mul_x1_112": null, "mul_x1_113": null, "mul_x1_114": null, "mul_x1_115": null, "mul_x1_116": null, "mul_x1_117": null, "mul_x1_118": null, "mul_x1_119": null, "mul_x1_12": null, "mul_x1_120": null, "mul_x1_121": null, "mul_x1_122": null, "mul_x1_123": null, "mul_x1_124": null, "mul_x1_125": null, "mul_x1_126": null, "mul_x1_127": null, "mul_x1_128": null, "mul_x1_129": null, "mul_x1_13": null, "mul_x1_130": null, "mul_x1_131": null, "mul_x1_132": null, "mul_x1_133": null, "mul_x1_134": null, "mul_x1_135": null, "mul_x1_136": null, "mul_x1_137": null, "mul_x1_138": null, "mul_x1_139": null, "mul_x1_14": null, "mul_x1_140": null, "mul_x1_141": null, "mul_x1_142": null, "mul_x1_143": null, "mul_x1_144": null, "mul_x1_145": null, "mul_x1_146": null, "mul_x1_147": null, "mul_x1_148": null, "mul_x1_149": null, "mul_x1_15": null, "mul_x1_150": null, "mul_x1_151": null, "mul_x1_152": null, "mul_x1_153": null, "mul_x1_154": null, "mul_x1_155": null, "mul_x1_156": null, "mul_x1_157": null, "mul_x1_158": null, "mul_x1_159": null, "mul_x1_16": null, "mul_x1_160": null, "mul_x1_161": null, "mul_x1_162": null, "mul_x1_163": null, "mul_x1_164": null, "mul_x1_165": null, "mul_x1_166": null, "mul_x1_167": null, "mul_x1_168": null, "mul_x1_169": null, "mul_x1_17": null, "mul_x1_170": null, "mul_x1_171": null, "mul_x1_172": null, "mul_x1_173": null, "mul_x1_174": null, "mul_x1_175": null, "mul_x1_176": null, "mul_x1_177": null, "mul_x1_178": null, "mul_x1_179": null, "mul_x1_18": null, "mul_x1_180": null, "mul_x1_181": null, "mul_x1_182": null, "mul_x1_183": null, "mul_x1_184": null, "mul_x1_185": null, "mul_x1_186": null, "mul_x1_187": null, "mul_x1_188": null, "mul_x1_189": null, "mul_x1_19": null, "mul_x1_190": null, "mul_x1_191": null, "mul_x1_192": null, "mul_x1_193": null, "mul_x1_194": null, "mul_x1_195": null, "mul_x1_196": null, "mul_x1_197": null, "mul_x1_198": null, "mul_x1_199": null, "mul_x1_2": null, "mul_x1_20": null, "mul_x1_200": null, "mul_x1_201": null, "mul_x1_202": null, "mul_x1_203": null, "mul_x1_204": null, "mul_x1_205": null, "mul_x1_206": null, "mul_x1_207": null, "mul_x1_208": null, "mul_x1_209": null, "mul_x1_21": null, "mul_x1_210": null, "mul_x1_211": null, "mul_x1_212": null, "mul_x1_213": null, "mul_x1_214": null, "mul_x1_215": null, "mul_x1_216": null, "mul_x1_217": null, "mul_x1_218": null, "mul_x1_219": null, "mul_x1_22": null, "mul_x1_220": null, "mul_x1_221": null, "mul_x1_222": null, "mul_x1_223": null, "mul_x1_224": null, "mul_x1_225": null, "mul_x1_226": null, "mul_x1_227": null, "mul_x1_228": null, "mul_x1_229": null, "mul_x1_23": null, "mul_x1_230": null, "mul_x1_231": null, "mul_x1_232": null, "mul_x1_233": null, "mul_x1_234": null, "mul_x1_235": null, "mul_x1_236": null, "mul_x1_237": null, "mul_x1_238": null, "mul_x1_239": null, "mul_x1_24": null, "mul_x1_240": null, "mul_x1_241": null, "mul_x1_242": null, "mul_x1_243": null, "mul_x1_244": null, "mul_x1_245": null, "mul_x1_246": null, "mul_x1_247": null, "mul_x1_248": null, "mul_x1_249": null, "mul_x1_25": null, "mul_x1_250": null, "mul_x1_251": null, "mul_x1_252": null, "mul_x1_253": null, "mul_x1_254": null, "mul_x1_255": null, "mul_x1_26": null, "mul_x1_27": null, "mul_x1_28": null, "mul_x1_29": null, "mul_x1_3": null, "mul_x1_30": null, "mul_x1_31": null, "mul_x1_32": null, "mul_x1_33": null, "mul_x1_34": null, "mul_x1_35": null, "mul_x1_36": null, "mul_x1_37": null, "mul_x1_38": null, "mul_x1_39": null, "mul_x1_4": null, "mul_x1_40": null, "mul_x1_41": null, "mul_x1_42": null, "mul_x1_43": null, "mul_x1_44": null, "mul_x1_45": null, "mul_x1_46": null, "mul_x1_47": null, "mul_x1_48": null, "mul_x1_49": null, "mul_x1_5": null, "mul_x1_50": null, "mul_x1_51": null, "mul_x1_52": null, "mul_x1_53": null, "mul_x1_54": null, "mul_x1_55": null, "mul_x1_56": null, "mul_x1_57": null, "mul_x1_58": null, "mul_x1_59": null, "mul_x1_6": null, "mul_x1_60": null, "mul_x1_61": null, "mul_x1_62": null, "mul_x1_63": null, "mul_x1_64": null, "mul_x1_65": null, "mul_x1_66": null, "mul_x1_67": null, "mul_x1_68": null, "mul_x1_69": null, "mul_x1_7": null, "mul_x1_70": null, "mul_x1_71": null, "mul_x1_72": null, "mul_x1_73": null, "mul_x1_74": null, "mul_x1_75": null, "mul_x1_76": null, "mul_x1_77": null, "mul_x1_78": null, "mul_x1_79": null, "mul_x1_8": null, "mul_x1_80": null, "mul_x1_81": null, "mul_x1_82": null, "mul_x1_83": null, "mul_x1_84": null, "mul_x1_85": null, "mul_x1_86": null, "mul_x1_87": null, "mul_x1_88": null, "mul_x1_89": null, "mul_x1_9": null, "mul_x1_90": null, "mul_x1_91": null, "mul_x1_92": null, "mul_x1_93": null, "mul_x1_94": null, "mul_x1_95": null, "mul_x1_96": null, "mul_x1_97": null, "mul_x1_98": null, "mul_x1_99": null, "nfs_commit_shares": null, "nfs_copy_entries_cb": null, "nfs_is_shared_cb": null, "sha256_generic": null, "sha512_generic": null, "smb_update_shares": null, "spacemap_check_sm_log_cb": null, "tf_sha256_transform_x64": null, "tf_sha512_transform_x64": null, "vdev_indirect_remap": null, "zfs_ace_fuid_size": null, "zfs_ace_v0_size": null, "zfs_do_allow": null, "zfs_do_bookmark": null, "zfs_do_change_key": null, "zfs_do_channel_program": null, "zfs_do_clone": null, "zfs_do_create": null, "zfs_do_destroy": null, "zfs_do_diff": null, "zfs_do_get": null, "zfs_do_hold": null, "zfs_do_holds": null, "zfs_do_inherit": null, "zfs_do_list": null, "zfs_do_load_key": null, "zfs_do_mount": null, "zfs_do_project": null, "zfs_do_promote": null, "zfs_do_receive": null, "zfs_do_redact": null, "zfs_do_release": null, "zfs_do_rename": null, "zfs_do_rollback": null, "zfs_do_send": null, "zfs_do_set": null, "zfs_do_share": null, "zfs_do_snapshot": null, "zfs_do_unallow": null, "zfs_do_unload_key": null, "zfs_do_unmount": null, "zfs_do_unshare": null, "zfs_do_unzone": null, "zfs_do_upgrade": null, "zfs_do_userspace": null, "zfs_do_version": null, "zfs_do_wait": null, "zfs_do_zone": null, "zfs_fm_close": null, "zfs_ioc_clear": null, "zfs_ioc_clear_fault": null, "zfs_ioc_dataset_list_next": null, "zfs_ioc_destroy": null, "zfs_ioc_diff": null, "zfs_ioc_dsobj_to_dsname": null, "zfs_ioc_error_log": null, "zfs_ioc_events_clear": null, "zfs_ioc_events_next": null, "zfs_ioc_events_seek": null, "zfs_ioc_get_fsacl": null, "zfs_ioc_inherit_prop": null, "zfs_ioc_inject_fault": null, "zfs_ioc_inject_list_next": null, "zfs_ioc_next_obj": null, "zfs_ioc_obj_to_path": null, "zfs_ioc_obj_to_stats": null, "zfs_ioc_objset_recvd_props": null, "zfs_ioc_objset_stats": null, "zfs_ioc_objset_zplprops": null, "zfs_ioc_pool_configs": null, "zfs_ioc_pool_create": null, "zfs_ioc_pool_destroy": null, "zfs_ioc_pool_export": null, "zfs_ioc_pool_freeze": null, "zfs_ioc_pool_get_history": null, "zfs_ioc_pool_get_props": null, "zfs_ioc_pool_import": null, "zfs_ioc_pool_reguid": null, "zfs_ioc_pool_scan": null, "zfs_ioc_pool_set_props": null, "zfs_ioc_pool_stats": null, "zfs_ioc_pool_tryimport": null, "zfs_ioc_pool_upgrade": null, "zfs_ioc_promote": null, "zfs_ioc_recv": null, "zfs_ioc_rename": null, "zfs_ioc_send": null, "zfs_ioc_send_progress": null, "zfs_ioc_set_fsacl": null, "zfs_ioc_set_prop": null, "zfs_ioc_share": null, "zfs_ioc_smb_acl": null, "zfs_ioc_snapshot_list_next": null, "zfs_ioc_space_written": null, "zfs_ioc_tmp_snapshot": null, "zfs_ioc_userspace_many": null, "zfs_ioc_userspace_one": null, "zfs_ioc_userspace_upgrade": null, "zfs_ioc_vdev_add": null, "zfs_ioc_vdev_attach": null, "zfs_ioc_vdev_detach": null, "zfs_ioc_vdev_remove": null, "zfs_ioc_vdev_set_state": null, "zfs_ioc_vdev_setfru": null, "zfs_ioc_vdev_setpath": null, "zfs_ioc_vdev_split": null, "zfs_zstd_decompress": null, "zle_decompress": null } }, "callsite": "encrypt_block", "chain_summary": [ { "parent": "", "source_code": [ "int ccm_mode_encrypt_contiguous_blocks(ccm_ctx_t *ctx, char *data, size_t length,", " crypto_data_t *out, size_t block_size,", " int (*encrypt_block)(const void *, const uint8_t *, uint8_t *),", " void (*copy_block)(uint8_t *, uint8_t *),", " void (*xor_block)(uint8_t *, uint8_t *))", "{", " size_t remainder = length;", "\t...", "\tif (length + ctx->ccm_remainder_len < block_size) {", "\t\t/* accumulate bytes here and return */", "\t\tmemcpy((uint8_t *)ctx->ccm_remainder + ctx->ccm_remainder_len,", "\t\t datap,", "\t\t length);", "\t\tctx->ccm_remainder_len += length;", "\t\tctx->ccm_copy_to = datap;", "\t\treturn (CRYPTO_SUCCESS);", "\t}", "\tcrypto_init_ptrs(out, &iov_or_mp, &offset);", "\tmac_buf = (uint8_t *)ctx->ccm_mac_buf;", "\tdo {", "\t\t/* Unprocessed data from last call. */", "\t\t...", "\t\txor_block(blockp, mac_buf);", "\t\tencrypt_block(ctx->ccm_keysched, mac_buf, mac_buf);", "\t\t/* ccm_cb is the counter block */", "\t\tencrypt_block(ctx->ccm_keysched, (uint8_t *)ctx->ccm_cb,", "\t\t (uint8_t *)ctx->ccm_tmp);", "\t\t...", "\t\tctx->ccm_copy_to = NULL;", "\t} while (remainder > 0);", "out:", "\treturn (CRYPTO_SUCCESS);", "}" ] }, { "parent": "", "source_code": [ "int aes_encrypt_contiguous_blocks(void *ctx, char *data, size_t length,", " crypto_data_t *out)", "{", "\taes_ctx_t *aes_ctx = ctx;", "\tint rv;", "\tif (aes_ctx->ac_flags & CTR_MODE) {", "\t\trv = ctr_mode_contiguous_blocks(ctx, data, length, out,", "\t\t AES_BLOCK_LEN, aes_encrypt_block, aes_xor_block);", "\t} else if (aes_ctx->ac_flags & CCM_MODE) {", "\t\trv = ccm_mode_encrypt_contiguous_blocks(ctx, data, length,", "\t\t out, AES_BLOCK_LEN, aes_encrypt_block, aes_copy_block,", "\t\t aes_xor_block);", " }", " ...", "}" ] } ], "type": "fnptr-callback" }
null
null
null
null
null
null
{ "callees": { "targets": { "aes_encrypt_block": null, "aes_xor_block": "", "count_unflushed_space_cb": null, "ddt_zap_lookup": null, "dsl_dataset_hold": null, "dsl_dataset_hold_obj_string": null, "dump_acl": null, "dump_bpobj": null, "dump_bpobj_subobjs": null, "dump_ddt_zap": null, "dump_dmu_objset": null, "dump_dnode": null, "dump_dsl_dataset": null, "dump_dsl_dir": null, "dump_history_offsets": null, "dump_none": null, "dump_packed_nvlist": null, "dump_sa_attrs": null, "dump_sa_layouts": null, "dump_uint64": null, "dump_uint8": null, "dump_unknown": null, "dump_zap": null, "dump_znode": null, "dump_zpldir": null, "fletcher_4_scalar_native": null, "fletcher_4_superscalar4_native": null, "fletcher_4_superscalar_native": null, "gzip_decompress": null, "load_unflushed_cb": null, "load_unflushed_svr_segs_cb": null, "log_spacemap_obsolete_stats_cb": null, "lz4_decompress_zfs": null, "lzjb_decompress": null, "mul_x1_0": null, "mul_x1_1": null, "mul_x1_10": null, "mul_x1_100": null, "mul_x1_101": null, "mul_x1_102": null, "mul_x1_103": null, "mul_x1_104": null, "mul_x1_105": null, "mul_x1_106": null, "mul_x1_107": null, "mul_x1_108": null, "mul_x1_109": null, "mul_x1_11": null, "mul_x1_110": null, "mul_x1_111": null, "mul_x1_112": null, "mul_x1_113": null, "mul_x1_114": null, "mul_x1_115": null, "mul_x1_116": null, "mul_x1_117": null, "mul_x1_118": null, "mul_x1_119": null, "mul_x1_12": null, "mul_x1_120": null, "mul_x1_121": null, "mul_x1_122": null, "mul_x1_123": null, "mul_x1_124": null, "mul_x1_125": null, "mul_x1_126": null, "mul_x1_127": null, "mul_x1_128": null, "mul_x1_129": null, "mul_x1_13": null, "mul_x1_130": null, "mul_x1_131": null, "mul_x1_132": null, "mul_x1_133": null, "mul_x1_134": null, "mul_x1_135": null, "mul_x1_136": null, "mul_x1_137": null, "mul_x1_138": null, "mul_x1_139": null, "mul_x1_14": null, "mul_x1_140": null, "mul_x1_141": null, "mul_x1_142": null, "mul_x1_143": null, "mul_x1_144": null, "mul_x1_145": null, "mul_x1_146": null, "mul_x1_147": null, "mul_x1_148": null, "mul_x1_149": null, "mul_x1_15": null, "mul_x1_150": null, "mul_x1_151": null, "mul_x1_152": null, "mul_x1_153": null, "mul_x1_154": null, "mul_x1_155": null, "mul_x1_156": null, "mul_x1_157": null, "mul_x1_158": null, "mul_x1_159": null, "mul_x1_16": null, "mul_x1_160": null, "mul_x1_161": null, "mul_x1_162": null, "mul_x1_163": null, "mul_x1_164": null, "mul_x1_165": null, "mul_x1_166": null, "mul_x1_167": null, "mul_x1_168": null, "mul_x1_169": null, "mul_x1_17": null, "mul_x1_170": null, "mul_x1_171": null, "mul_x1_172": null, "mul_x1_173": null, "mul_x1_174": null, "mul_x1_175": null, "mul_x1_176": null, "mul_x1_177": null, "mul_x1_178": null, "mul_x1_179": null, "mul_x1_18": null, "mul_x1_180": null, "mul_x1_181": null, "mul_x1_182": null, "mul_x1_183": null, "mul_x1_184": null, "mul_x1_185": null, "mul_x1_186": null, "mul_x1_187": null, "mul_x1_188": null, "mul_x1_189": null, "mul_x1_19": null, "mul_x1_190": null, "mul_x1_191": null, "mul_x1_192": null, "mul_x1_193": null, "mul_x1_194": null, "mul_x1_195": null, "mul_x1_196": null, "mul_x1_197": null, "mul_x1_198": null, "mul_x1_199": null, "mul_x1_2": null, "mul_x1_20": null, "mul_x1_200": null, "mul_x1_201": null, "mul_x1_202": null, "mul_x1_203": null, "mul_x1_204": null, "mul_x1_205": null, "mul_x1_206": null, "mul_x1_207": null, "mul_x1_208": null, "mul_x1_209": null, "mul_x1_21": null, "mul_x1_210": null, "mul_x1_211": null, "mul_x1_212": null, "mul_x1_213": null, "mul_x1_214": null, "mul_x1_215": null, "mul_x1_216": null, "mul_x1_217": null, "mul_x1_218": null, "mul_x1_219": null, "mul_x1_22": null, "mul_x1_220": null, "mul_x1_221": null, "mul_x1_222": null, "mul_x1_223": null, "mul_x1_224": null, "mul_x1_225": null, "mul_x1_226": null, "mul_x1_227": null, "mul_x1_228": null, "mul_x1_229": null, "mul_x1_23": null, "mul_x1_230": null, "mul_x1_231": null, "mul_x1_232": null, "mul_x1_233": null, "mul_x1_234": null, "mul_x1_235": null, "mul_x1_236": null, "mul_x1_237": null, "mul_x1_238": null, "mul_x1_239": null, "mul_x1_24": null, "mul_x1_240": null, "mul_x1_241": null, "mul_x1_242": null, "mul_x1_243": null, "mul_x1_244": null, "mul_x1_245": null, "mul_x1_246": null, "mul_x1_247": null, "mul_x1_248": null, "mul_x1_249": null, "mul_x1_25": null, "mul_x1_250": null, "mul_x1_251": null, "mul_x1_252": null, "mul_x1_253": null, "mul_x1_254": null, "mul_x1_255": null, "mul_x1_26": null, "mul_x1_27": null, "mul_x1_28": null, "mul_x1_29": null, "mul_x1_3": null, "mul_x1_30": null, "mul_x1_31": null, "mul_x1_32": null, "mul_x1_33": null, "mul_x1_34": null, "mul_x1_35": null, "mul_x1_36": null, "mul_x1_37": null, "mul_x1_38": null, "mul_x1_39": null, "mul_x1_4": null, "mul_x1_40": null, "mul_x1_41": null, "mul_x1_42": null, "mul_x1_43": null, "mul_x1_44": null, "mul_x1_45": null, "mul_x1_46": null, "mul_x1_47": null, "mul_x1_48": null, "mul_x1_49": null, "mul_x1_5": null, "mul_x1_50": null, "mul_x1_51": null, "mul_x1_52": null, "mul_x1_53": null, "mul_x1_54": null, "mul_x1_55": null, "mul_x1_56": null, "mul_x1_57": null, "mul_x1_58": null, "mul_x1_59": null, "mul_x1_6": null, "mul_x1_60": null, "mul_x1_61": null, "mul_x1_62": null, "mul_x1_63": null, "mul_x1_64": null, "mul_x1_65": null, "mul_x1_66": null, "mul_x1_67": null, "mul_x1_68": null, "mul_x1_69": null, "mul_x1_7": null, "mul_x1_70": null, "mul_x1_71": null, "mul_x1_72": null, "mul_x1_73": null, "mul_x1_74": null, "mul_x1_75": null, "mul_x1_76": null, "mul_x1_77": null, "mul_x1_78": null, "mul_x1_79": null, "mul_x1_8": null, "mul_x1_80": null, "mul_x1_81": null, "mul_x1_82": null, "mul_x1_83": null, "mul_x1_84": null, "mul_x1_85": null, "mul_x1_86": null, "mul_x1_87": null, "mul_x1_88": null, "mul_x1_89": null, "mul_x1_9": null, "mul_x1_90": null, "mul_x1_91": null, "mul_x1_92": null, "mul_x1_93": null, "mul_x1_94": null, "mul_x1_95": null, "mul_x1_96": null, "mul_x1_97": null, "mul_x1_98": null, "mul_x1_99": null, "nfs_commit_shares": null, "nfs_copy_entries_cb": null, "nfs_is_shared_cb": null, "sha256_generic": null, "sha512_generic": null, "smb_update_shares": null, "spacemap_check_sm_log_cb": null, "tf_sha256_transform_x64": null, "tf_sha512_transform_x64": null, "vdev_indirect_remap": null, "zfs_ace_fuid_size": null, "zfs_ace_v0_size": null, "zfs_do_allow": null, "zfs_do_bookmark": null, "zfs_do_change_key": null, "zfs_do_channel_program": null, "zfs_do_clone": null, "zfs_do_create": null, "zfs_do_destroy": null, "zfs_do_diff": null, "zfs_do_get": null, "zfs_do_hold": null, "zfs_do_holds": null, "zfs_do_inherit": null, "zfs_do_list": null, "zfs_do_load_key": null, "zfs_do_mount": null, "zfs_do_project": null, "zfs_do_promote": null, "zfs_do_receive": null, "zfs_do_redact": null, "zfs_do_release": null, "zfs_do_rename": null, "zfs_do_rollback": null, "zfs_do_send": null, "zfs_do_set": null, "zfs_do_share": null, "zfs_do_snapshot": null, "zfs_do_unallow": null, "zfs_do_unload_key": null, "zfs_do_unmount": null, "zfs_do_unshare": null, "zfs_do_unzone": null, "zfs_do_upgrade": null, "zfs_do_userspace": null, "zfs_do_version": null, "zfs_do_wait": null, "zfs_do_zone": null, "zfs_fm_close": null, "zfs_ioc_clear": null, "zfs_ioc_clear_fault": null, "zfs_ioc_dataset_list_next": null, "zfs_ioc_destroy": null, "zfs_ioc_diff": null, "zfs_ioc_dsobj_to_dsname": null, "zfs_ioc_error_log": null, "zfs_ioc_events_clear": null, "zfs_ioc_events_next": null, "zfs_ioc_events_seek": null, "zfs_ioc_get_fsacl": null, "zfs_ioc_inherit_prop": null, "zfs_ioc_inject_fault": null, "zfs_ioc_inject_list_next": null, "zfs_ioc_next_obj": null, "zfs_ioc_obj_to_path": null, "zfs_ioc_obj_to_stats": null, "zfs_ioc_objset_recvd_props": null, "zfs_ioc_objset_stats": null, "zfs_ioc_objset_zplprops": null, "zfs_ioc_pool_configs": null, "zfs_ioc_pool_create": null, "zfs_ioc_pool_destroy": null, "zfs_ioc_pool_export": null, "zfs_ioc_pool_freeze": null, "zfs_ioc_pool_get_history": null, "zfs_ioc_pool_get_props": null, "zfs_ioc_pool_import": null, "zfs_ioc_pool_reguid": null, "zfs_ioc_pool_scan": null, "zfs_ioc_pool_set_props": null, "zfs_ioc_pool_stats": null, "zfs_ioc_pool_tryimport": null, "zfs_ioc_pool_upgrade": null, "zfs_ioc_promote": null, "zfs_ioc_recv": null, "zfs_ioc_rename": null, "zfs_ioc_send": null, "zfs_ioc_send_progress": null, "zfs_ioc_set_fsacl": null, "zfs_ioc_set_prop": null, "zfs_ioc_share": null, "zfs_ioc_smb_acl": null, "zfs_ioc_snapshot_list_next": null, "zfs_ioc_space_written": null, "zfs_ioc_tmp_snapshot": null, "zfs_ioc_userspace_many": null, "zfs_ioc_userspace_one": null, "zfs_ioc_userspace_upgrade": null, "zfs_ioc_vdev_add": null, "zfs_ioc_vdev_attach": null, "zfs_ioc_vdev_detach": null, "zfs_ioc_vdev_remove": null, "zfs_ioc_vdev_set_state": null, "zfs_ioc_vdev_setfru": null, "zfs_ioc_vdev_setpath": null, "zfs_ioc_vdev_split": null, "zfs_zstd_decompress": null, "zle_decompress": null } }, "callsite": "xor_block", "chain_summary": [ { "parent": "", "source_code": [ "int ccm_encrypt_final(ccm_ctx_t *ctx, crypto_data_t *out, size_t block_size,", " int (*encrypt_block)(const void *, const uint8_t *, uint8_t *),", " void (*xor_block)(uint8_t *, uint8_t *))", "{", "\t...", "\tif (ctx->ccm_remainder_len > 0) {", "\t\t...", "\t\t/* calculate the CBC MAC */", "\t\txor_block(macp, mac_buf);", "\t\tencrypt_block(ctx->ccm_keysched, mac_buf, mac_buf);", "\t\t/* calculate the counter mode */", "\t\tlastp = (uint8_t *)ctx->ccm_tmp;", "\t\tencrypt_block(ctx->ccm_keysched, (uint8_t *)ctx->ccm_cb, lastp);", "\t\t/* XOR with counter block */", "\t\tfor (i = 0; i < ctx->ccm_remainder_len; i++) {", "\t\t\tmacp[i] ^= lastp[i];", "\t\t}", "\t\tctx->ccm_processed_data_len += ctx->ccm_remainder_len;", "\t}", "}" ] }, { "parent": "", "source_code": [ "static int", "aes_encrypt_atomic(crypto_mechanism_t *mechanism,", " crypto_key_t *key, crypto_data_t *plaintext, crypto_data_t *ciphertext,", " crypto_spi_ctx_template_t template)", "{", "\t...", "\tif (ret == CRYPTO_SUCCESS) {", "\t\tif (mechanism->cm_type == AES_CCM_MECH_INFO_TYPE) {", "\t\t\tret = ccm_encrypt_final((ccm_ctx_t *)&aes_ctx,", "\t\t\t ciphertext, AES_BLOCK_LEN, aes_encrypt_block,", "\t\t\t aes_xor_block);", " }", " }", " ...", "}" ] }, { "parent": "", "source_code": [ "static int", "aes_encrypt_final(crypto_ctx_t *ctx, crypto_data_t *data)", "{", "\taes_ctx_t *aes_ctx;", "\t...", "\tif (aes_ctx->ac_flags & CTR_MODE) {", "\t\t...", "\t} else if (aes_ctx->ac_flags & CCM_MODE) {", "\t\tret = ccm_encrypt_final((ccm_ctx_t *)aes_ctx, data,", "\t\t AES_BLOCK_LEN, aes_encrypt_block, aes_xor_block);", " }", "}" ] }, { "parent": "", "source_code": [ "static int", "aes_encrypt(crypto_ctx_t *ctx, crypto_data_t *plaintext,", " crypto_data_t *ciphertext)", "{", "\t...", "\tif (aes_ctx->ac_flags & CCM_MODE) {", "\t\t/*", "\t\t * ccm_encrypt_final() will compute the MAC and append", "\t\t * it to existing ciphertext. So, need to adjust the left over", "\t\t * length value accordingly", "\t\t */", "\t\t/* order of following 2 lines MUST not be reversed */", "\t\tciphertext->cd_offset = ciphertext->cd_length;", "\t\tciphertext->cd_length = saved_length - ciphertext->cd_length;", "\t\tret = ccm_encrypt_final((ccm_ctx_t *)aes_ctx, ciphertext,", "\t\t AES_BLOCK_LEN, aes_encrypt_block, aes_xor_block);", "\t\tif (ret != CRYPTO_SUCCESS) {", "\t\t\treturn (ret);", "\t\t}", " }", "}" ] } ], "type": "fnptr-callback" }
null
null
null
null
null
null
null
{ "callees": { "targets": { "OMX_Init": null, "abs_pow34_v": null, "av_codec_is_decoder": null, "av_codec_is_encoder": null, "ball_to_xyz": null, "barrel_to_xyz": null, "barrelsplit_to_xyz": null, "bswap16_buf": null, "convert_alignment": null, "convert_color": null, "convert_flt": null, "convert_int": null, "convert_str": null, "convert_timestamp": null, "cube1x6_to_xyz": null, "cube3x2_to_xyz": null, "cube6x1_to_xyz": null, "cylindrical_to_xyz": null, "cylindricalea_to_xyz": null, "deinterleaveBytes_c": null, "dfisheye_to_xyz": null, "eac_to_xyz": null, "equirect_to_xyz": null, "equisolid_to_xyz": null, "ff_abs_pow34_sse": null, "ff_bswap16_buf_rvv": null, "ff_celp_lp_synthesis_filterf": null, "ff_celp_lp_synthesis_filterf_mips": null, "ff_h263_decode_mb": null, "ff_vector_fmul_neon": null, "ff_vector_fmul_vfp": null, "fisheye_to_xyz": null, "flat_to_xyz": null, "gray8aToPacked24": null, "gray8aToPacked32": null, "gray8aToPacked32_1": null, "hammer_to_xyz": null, "hequirect_to_xyz": null, "mercator_to_xyz": null, "nb_decode": null, "octahedron_to_xyz": null, "orthographic_to_xyz": null, "pannini_to_xyz": null, "perspective_to_xyz": null, "quantize_and_encode_band_cost_ESC": "", "quantize_and_encode_band_cost_ESC_RTZ": "", "quantize_and_encode_band_cost_NOISE": "", "quantize_and_encode_band_cost_NONE": "", "quantize_and_encode_band_cost_SPAIR": "", "quantize_and_encode_band_cost_SQUAD": "", "quantize_and_encode_band_cost_STEREO": "", "quantize_and_encode_band_cost_UPAIR": "", "quantize_and_encode_band_cost_UQUAD": "", "quantize_and_encode_band_cost_ZERO": "", "sb_decode": null, "sinusoidal_to_xyz": null, "stereographic_to_xyz": null, "sws_convertPalette8ToPacked24": null, "sws_convertPalette8ToPacked32": null, "synth_filter_avx": null, "synth_filter_fma3": null, "synth_filter_sse2": null, "tetrahedron_to_xyz": null, "trc_arib_std_b67": null, "trc_bt1361": null, "trc_bt709": null, "trc_gamma22": null, "trc_gamma28": null, "trc_iec61966_2_1": null, "trc_iec61966_2_4": null, "trc_linear": null, "trc_log": null, "trc_log_sqrt": null, "trc_smpte240M": null, "trc_smpte_st2084": null, "trc_smpte_st428_1": null, "tspyramid_to_xyz": null, "upsample_plane_c": null, "vector_fmul_c": null, "vectorscope16": null, "vectorscope8": null } }, "callsite": "uantize_and_encode_band_cost_arr)[cb]", "chain_summary": [ { "parent": "", "source_code": [ "static inline void quantize_and_encode_band(struct AACEncContext *s, PutBitContext *pb,", " const float *in, float *out, int size, int scale_idx,", " int cb, const float lambda, int rtz)", "{", " (rtz ? quantize_and_encode_band_cost_rtz_arr : quantize_and_encode_band_cost_arr)[cb](s, pb, in, out, NULL, size, scale_idx, cb,", " lambda, INFINITY, NULL, NULL);", "}" ] }, { "parent": "", "source_code": [ "static const quantize_and_encode_band_func quantize_and_encode_band_cost_arr[] =", "{", " quantize_and_encode_band_cost_ZERO,", " quantize_and_encode_band_cost_SQUAD,", " quantize_and_encode_band_cost_SQUAD,", " quantize_and_encode_band_cost_UQUAD,", " quantize_and_encode_band_cost_UQUAD,", " quantize_and_encode_band_cost_SPAIR,", " quantize_and_encode_band_cost_SPAIR,", " quantize_and_encode_band_cost_UPAIR,", " quantize_and_encode_band_cost_UPAIR,", " quantize_and_encode_band_cost_UPAIR,", " quantize_and_encode_band_cost_UPAIR,", " quantize_and_encode_band_cost_ESC,", " quantize_and_encode_band_cost_NONE, /* CB 12 doesn't exist */", " quantize_and_encode_band_cost_NOISE,", " quantize_and_encode_band_cost_STEREO,", " quantize_and_encode_band_cost_STEREO,", "};", "static const quantize_and_encode_band_func quantize_and_encode_band_cost_rtz_arr[] =", "{", " quantize_and_encode_band_cost_ZERO,", " quantize_and_encode_band_cost_SQUAD,", " quantize_and_encode_band_cost_SQUAD,", " quantize_and_encode_band_cost_UQUAD,", " quantize_and_encode_band_cost_UQUAD,", " quantize_and_encode_band_cost_SPAIR,", " quantize_and_encode_band_cost_SPAIR,", " quantize_and_encode_band_cost_UPAIR,", " quantize_and_encode_band_cost_UPAIR,", " quantize_and_encode_band_cost_UPAIR,", " quantize_and_encode_band_cost_UPAIR,", " quantize_and_encode_band_cost_ESC_RTZ,", " quantize_and_encode_band_cost_NONE, /* CB 12 doesn't exist */", " quantize_and_encode_band_cost_NOISE,", " quantize_and_encode_band_cost_STEREO,", " quantize_and_encode_band_cost_STEREO,", "};" ] } ], "type": "fnptr-global-array" }
null
null
null
null
null
null
{ "callees": { "targets": { "OMX_Init": null, "abs_pow34_v": null, "av_codec_is_decoder": null, "av_codec_is_encoder": null, "ball_to_xyz": null, "barrel_to_xyz": null, "barrelsplit_to_xyz": null, "bswap16_buf": null, "convert_alignment": "", "convert_color": "", "convert_flt": "", "convert_int": "", "convert_str": "", "convert_timestamp": "", "cube1x6_to_xyz": null, "cube3x2_to_xyz": null, "cube6x1_to_xyz": null, "cylindrical_to_xyz": null, "cylindricalea_to_xyz": null, "deinterleaveBytes_c": null, "dfisheye_to_xyz": null, "eac_to_xyz": null, "equirect_to_xyz": null, "equisolid_to_xyz": null, "ff_abs_pow34_sse": null, "ff_bswap16_buf_rvv": null, "ff_celp_lp_synthesis_filterf": null, "ff_celp_lp_synthesis_filterf_mips": null, "ff_h263_decode_mb": null, "ff_vector_fmul_neon": null, "ff_vector_fmul_vfp": null, "fisheye_to_xyz": null, "flat_to_xyz": null, "gray8aToPacked24": null, "gray8aToPacked32": null, "gray8aToPacked32_1": null, "hammer_to_xyz": null, "hequirect_to_xyz": null, "mercator_to_xyz": null, "nb_decode": null, "octahedron_to_xyz": null, "orthographic_to_xyz": null, "pannini_to_xyz": null, "perspective_to_xyz": null, "quantize_and_encode_band_cost_ESC": null, "quantize_and_encode_band_cost_ESC_RTZ": null, "quantize_and_encode_band_cost_NOISE": null, "quantize_and_encode_band_cost_NONE": null, "quantize_and_encode_band_cost_SPAIR": null, "quantize_and_encode_band_cost_SQUAD": null, "quantize_and_encode_band_cost_STEREO": null, "quantize_and_encode_band_cost_UPAIR": null, "quantize_and_encode_band_cost_UQUAD": null, "quantize_and_encode_band_cost_ZERO": null, "sb_decode": null, "sinusoidal_to_xyz": null, "stereographic_to_xyz": null, "sws_convertPalette8ToPacked24": null, "sws_convertPalette8ToPacked32": null, "synth_filter_avx": null, "synth_filter_fma3": null, "synth_filter_sse2": null, "tetrahedron_to_xyz": null, "trc_arib_std_b67": null, "trc_bt1361": null, "trc_bt709": null, "trc_gamma22": null, "trc_gamma28": null, "trc_iec61966_2_1": null, "trc_iec61966_2_4": null, "trc_linear": null, "trc_log": null, "trc_log_sqrt": null, "trc_smpte240M": null, "trc_smpte_st2084": null, "trc_smpte_st428_1": null, "tspyramid_to_xyz": null, "upsample_plane_c": null, "vector_fmul_c": null, "vectorscope16": null, "vectorscope8": null } }, "callsite": "convert_func[type]", "chain_summary": [ { "parent": "", "source_code": [ "static const char *ass_split_section(ASSSplitContext *ctx, const char *buf)", "{", " const ASSSection *section = &ass_sections[ctx->current_section];", " int *number = &ctx->field_number[ctx->current_section];", " int *order = ctx->field_order[ctx->current_section];", " int i, len;", " while (buf && *buf) {", "\t\t...", "\t\tbuf += len + 1;", "\t\tfor (i=0; !is_eol(*buf) && i < *number; i++) {", "\t\t\tint last = i == *number - 1;", "\t\t\tbuf = skip_space(buf);", "\t\t\tlen = strcspn(buf, last ? \"\\r\\n\" : \",\\r\\n\");", "\t\t\tif (order[i] >= 0) {", "\t\t\t\tASSFieldType type = section->fields[order[i]].type;", "\t\t\t\tptr = struct_ptr + section->fields[order[i]].offset;", "\t\t\t\tconvert_func[type](ptr, buf, len);", "\t\t\t}", "\t\t\tbuf += len;", "\t\t\tif (!last && *buf) buf++;", "\t\t\tbuf = skip_space(buf);", "\t\t}", "\t}", "\t... ", " return buf;", "}" ] }, { "parent": "", "source_code": [ "static const ASSConvertFunc convert_func[] = {", " [ASS_STR] = convert_str,", " [ASS_INT] = convert_int,", " [ASS_FLT] = convert_flt,", " [ASS_COLOR] = convert_color,", " [ASS_TIMESTAMP] = convert_timestamp,", " [ASS_ALGN] = convert_alignment,", "};" ] } ], "type": "fnptr-global-array" }
null
null
null
null
null
null
{ "callees": { "targets": { "OMX_Init": null, "abs_pow34_v": null, "av_codec_is_decoder": null, "av_codec_is_encoder": null, "ball_to_xyz": null, "barrel_to_xyz": null, "barrelsplit_to_xyz": null, "bswap16_buf": null, "convert_alignment": null, "convert_color": null, "convert_flt": null, "convert_int": null, "convert_str": null, "convert_timestamp": null, "cube1x6_to_xyz": null, "cube3x2_to_xyz": null, "cube6x1_to_xyz": null, "cylindrical_to_xyz": null, "cylindricalea_to_xyz": null, "deinterleaveBytes_c": null, "dfisheye_to_xyz": null, "eac_to_xyz": null, "equirect_to_xyz": null, "equisolid_to_xyz": null, "ff_abs_pow34_sse": null, "ff_bswap16_buf_rvv": null, "ff_celp_lp_synthesis_filterf": null, "ff_celp_lp_synthesis_filterf_mips": null, "ff_h263_decode_mb": null, "ff_vector_fmul_neon": null, "ff_vector_fmul_vfp": null, "fisheye_to_xyz": null, "flat_to_xyz": null, "gray8aToPacked24": null, "gray8aToPacked32": null, "gray8aToPacked32_1": null, "hammer_to_xyz": null, "hequirect_to_xyz": null, "mercator_to_xyz": null, "nb_decode": null, "octahedron_to_xyz": null, "orthographic_to_xyz": null, "pannini_to_xyz": null, "perspective_to_xyz": null, "quantize_and_encode_band_cost_ESC": null, "quantize_and_encode_band_cost_ESC_RTZ": null, "quantize_and_encode_band_cost_NOISE": null, "quantize_and_encode_band_cost_NONE": null, "quantize_and_encode_band_cost_SPAIR": null, "quantize_and_encode_band_cost_SQUAD": null, "quantize_and_encode_band_cost_STEREO": null, "quantize_and_encode_band_cost_UPAIR": null, "quantize_and_encode_band_cost_UQUAD": null, "quantize_and_encode_band_cost_ZERO": null, "sb_decode": null, "sinusoidal_to_xyz": null, "stereographic_to_xyz": null, "sws_convertPalette8ToPacked24": null, "sws_convertPalette8ToPacked32": null, "synth_filter_avx": null, "synth_filter_fma3": null, "synth_filter_sse2": null, "tetrahedron_to_xyz": null, "trc_arib_std_b67": "", "trc_bt1361": "", "trc_bt709": "", "trc_gamma22": "", "trc_gamma28": "", "trc_iec61966_2_1": "", "trc_iec61966_2_4": "", "trc_linear": "", "trc_log": "", "trc_log_sqrt": "", "trc_smpte240M": "", "trc_smpte_st2084": "", "trc_smpte_st428_1": "", "tspyramid_to_xyz": null, "upsample_plane_c": null, "vector_fmul_c": null, "vectorscope16": null, "vectorscope8": null } }, "callsite": "trc_func", "chain_summary": [ { "parent": "", "source_code": [ "static av_cold int decode_init(AVCodecContext *avctx)", "{", " EXRContext *s = avctx->priv_data;", " ...", " av_csp_trc_function trc_func = NULL;", " ff_init_half2float_tables(&s->h2f_tables);", " s->avctx = avctx;", " ff_exrdsp_init(&s->dsp);", " ...", " trc_func = av_csp_trc_func_from_id(s->apply_trc_type);", " if (trc_func) {", " for (i = 0; i < 65536; ++i) {", " t.i = half2float(i, &s->h2f_tables);", " t.f = trc_func(t.f);", " s->gamma_table[i] = t;", " }", " ...", " }", "}" ] }, { "parent": "", "source_code": [ "static const av_csp_trc_function trc_funcs[AVCOL_TRC_NB] = {", " [AVCOL_TRC_BT709] = trc_bt709,", " [AVCOL_TRC_GAMMA22] = trc_gamma22,", " [AVCOL_TRC_GAMMA28] = trc_gamma28,", " [AVCOL_TRC_SMPTE170M] = trc_bt709,", " [AVCOL_TRC_SMPTE240M] = trc_smpte240M,", " [AVCOL_TRC_LINEAR] = trc_linear,", " [AVCOL_TRC_LOG] = trc_log,", " [AVCOL_TRC_LOG_SQRT] = trc_log_sqrt,", " [AVCOL_TRC_IEC61966_2_4] = trc_iec61966_2_4,", " [AVCOL_TRC_BT1361_ECG] = trc_bt1361,", " [AVCOL_TRC_IEC61966_2_1] = trc_iec61966_2_1,", " [AVCOL_TRC_BT2020_10] = trc_bt709,", " [AVCOL_TRC_BT2020_12] = trc_bt709,", " [AVCOL_TRC_SMPTE2084] = trc_smpte_st2084,", " [AVCOL_TRC_SMPTE428] = trc_smpte_st428_1,", " [AVCOL_TRC_ARIB_STD_B67] = trc_arib_std_b67,", "};", "av_csp_trc_function av_csp_trc_func_from_id(enum AVColorTransferCharacteristic trc)", "{", " av_csp_trc_function func;", " if (trc >= AVCOL_TRC_NB)", " return NULL;", " func = trc_funcs[trc];", " if (!func)", " return NULL;", " return func;", "}" ] } ], "type": "fnptr-global-array" }
null
null
null
null
null
null
{ "callees": { "targets": { "OMX_Init": null, "abs_pow34_v": null, "av_codec_is_decoder": null, "av_codec_is_encoder": null, "ball_to_xyz": null, "barrel_to_xyz": null, "barrelsplit_to_xyz": null, "bswap16_buf": null, "convert_alignment": null, "convert_color": null, "convert_flt": null, "convert_int": null, "convert_str": null, "convert_timestamp": null, "cube1x6_to_xyz": null, "cube3x2_to_xyz": null, "cube6x1_to_xyz": null, "cylindrical_to_xyz": null, "cylindricalea_to_xyz": null, "deinterleaveBytes_c": null, "dfisheye_to_xyz": null, "eac_to_xyz": null, "equirect_to_xyz": null, "equisolid_to_xyz": null, "ff_abs_pow34_sse": null, "ff_bswap16_buf_rvv": null, "ff_celp_lp_synthesis_filterf": null, "ff_celp_lp_synthesis_filterf_mips": null, "ff_h263_decode_mb": "", "ff_vector_fmul_neon": null, "ff_vector_fmul_vfp": null, "fisheye_to_xyz": null, "flat_to_xyz": null, "gray8aToPacked24": null, "gray8aToPacked32": null, "gray8aToPacked32_1": null, "hammer_to_xyz": null, "hequirect_to_xyz": null, "mercator_to_xyz": null, "nb_decode": null, "octahedron_to_xyz": null, "orthographic_to_xyz": null, "pannini_to_xyz": null, "perspective_to_xyz": null, "quantize_and_encode_band_cost_ESC": null, "quantize_and_encode_band_cost_ESC_RTZ": null, "quantize_and_encode_band_cost_NOISE": null, "quantize_and_encode_band_cost_NONE": null, "quantize_and_encode_band_cost_SPAIR": null, "quantize_and_encode_band_cost_SQUAD": null, "quantize_and_encode_band_cost_STEREO": null, "quantize_and_encode_band_cost_UPAIR": null, "quantize_and_encode_band_cost_UQUAD": null, "quantize_and_encode_band_cost_ZERO": null, "sb_decode": null, "sinusoidal_to_xyz": null, "stereographic_to_xyz": null, "sws_convertPalette8ToPacked24": null, "sws_convertPalette8ToPacked32": null, "synth_filter_avx": null, "synth_filter_fma3": null, "synth_filter_sse2": null, "tetrahedron_to_xyz": null, "trc_arib_std_b67": null, "trc_bt1361": null, "trc_bt709": null, "trc_gamma22": null, "trc_gamma28": null, "trc_iec61966_2_1": null, "trc_iec61966_2_4": null, "trc_linear": null, "trc_log": null, "trc_log_sqrt": null, "trc_smpte240M": null, "trc_smpte_st2084": null, "trc_smpte_st428_1": null, "tspyramid_to_xyz": null, "upsample_plane_c": null, "vector_fmul_c": null, "vectorscope16": null, "vectorscope8": null } }, "callsite": "s->decode_mb", "chain_summary": [ { "parent": "", "source_code": [ "av_cold int ff_h263_decode_init(AVCodecContext *avctx)", "{", " MpegEncContext *s = avctx->priv_data;", " int ret;", " s->out_format = FMT_H263;", " // set defaults", " ff_mpv_decode_init(s, avctx);", " s->quant_precision = 5;", " s->decode_mb = ff_h263_decode_mb;", " s->low_delay = 1;", " ...", "}" ] }, { "parent": "", "source_code": [ "static int decode_slice(MpegEncContext *s)", "{", " const int part_mask = s->partitioned_frame", " ? (ER_AC_END | ER_AC_ERROR) : 0x7F;", " const int mb_size = 16 >> s->avctx->lowres;", " int ret;", "...", " ff_init_block_index(s);", " for (; s->mb_x < s->mb_width; s->mb_x++) {", " int ret;", " ...", " ret = s->decode_mb(s, s->block);", " }", "}" ] }, { "parent": "", "source_code": [ "int ff_h263_decode_frame(AVCodecContext *avctx, AVFrame *pict,", " int *got_frame, AVPacket *avpkt)", "{", " const uint8_t *buf = avpkt->data;", " int buf_size = avpkt->size;", " MpegEncContext *s = avctx->priv_data;", " int ret;", " int slice_ret = 0;", " ...", " /* decode each macroblock */", " s->mb_x = 0;", " s->mb_y = 0;", " slice_ret = decode_slice(s);", " ...", "}" ] }, { "parent": "", "source_code": [ "const FFCodec ff_h263_decoder = {", " .p.name = \"h263\",", " CODEC_LONG_NAME(\"H.263 / H.263-1996, H.263+ / H.263-1998 / H.263 version 2\"),", " .p.type = AVMEDIA_TYPE_VIDEO,", " .p.id = AV_CODEC_ID_H263,", " .priv_data_size = sizeof(MpegEncContext),", " .init = ff_h263_decode_init,", " .close = ff_h263_decode_end,", " FF_CODEC_DECODE_CB(ff_h263_decode_frame),", " .p.capabilities = AV_CODEC_CAP_DRAW_HORIZ_BAND | AV_CODEC_CAP_DR1 |", " AV_CODEC_CAP_DELAY,", " .caps_internal = FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM,", " .flush = ff_mpeg_flush,", " .p.max_lowres = 3,", " .p.pix_fmts = ff_h263_hwaccel_pixfmt_list_420,", " .hw_configs = h263_hw_config_list,", "};" ] } ], "type": "fnptr-library" }
null
null
null
null
null
null
{ "callees": { "targets": { "OMX_Init": null, "abs_pow34_v": null, "av_codec_is_decoder": null, "av_codec_is_encoder": null, "ball_to_xyz": null, "barrel_to_xyz": null, "barrelsplit_to_xyz": null, "bswap16_buf": null, "convert_alignment": null, "convert_color": null, "convert_flt": null, "convert_int": null, "convert_str": null, "convert_timestamp": null, "cube1x6_to_xyz": null, "cube3x2_to_xyz": null, "cube6x1_to_xyz": null, "cylindrical_to_xyz": null, "cylindricalea_to_xyz": null, "deinterleaveBytes_c": null, "dfisheye_to_xyz": null, "eac_to_xyz": null, "equirect_to_xyz": null, "equisolid_to_xyz": null, "ff_abs_pow34_sse": null, "ff_bswap16_buf_rvv": null, "ff_celp_lp_synthesis_filterf": null, "ff_celp_lp_synthesis_filterf_mips": null, "ff_h263_decode_mb": null, "ff_vector_fmul_neon": null, "ff_vector_fmul_vfp": null, "fisheye_to_xyz": null, "flat_to_xyz": null, "gray8aToPacked24": null, "gray8aToPacked32": null, "gray8aToPacked32_1": null, "hammer_to_xyz": null, "hequirect_to_xyz": null, "mercator_to_xyz": null, "nb_decode": null, "octahedron_to_xyz": null, "orthographic_to_xyz": null, "pannini_to_xyz": null, "perspective_to_xyz": null, "quantize_and_encode_band_cost_ESC": null, "quantize_and_encode_band_cost_ESC_RTZ": null, "quantize_and_encode_band_cost_NOISE": null, "quantize_and_encode_band_cost_NONE": null, "quantize_and_encode_band_cost_SPAIR": null, "quantize_and_encode_band_cost_SQUAD": null, "quantize_and_encode_band_cost_STEREO": null, "quantize_and_encode_band_cost_UPAIR": null, "quantize_and_encode_band_cost_UQUAD": null, "quantize_and_encode_band_cost_ZERO": null, "sb_decode": null, "sinusoidal_to_xyz": null, "stereographic_to_xyz": null, "sws_convertPalette8ToPacked24": null, "sws_convertPalette8ToPacked32": null, "synth_filter_avx": "", "synth_filter_fma3": "", "synth_filter_sse2": "", "tetrahedron_to_xyz": null, "trc_arib_std_b67": null, "trc_bt1361": null, "trc_bt709": null, "trc_gamma22": null, "trc_gamma28": null, "trc_iec61966_2_1": null, "trc_iec61966_2_4": null, "trc_linear": null, "trc_log": null, "trc_log_sqrt": null, "trc_smpte240M": null, "trc_smpte_st2084": null, "trc_smpte_st428_1": null, "tspyramid_to_xyz": null, "upsample_plane_c": null, "vector_fmul_c": null, "vectorscope16": null, "vectorscope8": null } }, "callsite": "synth->synth_filter_float", "chain_summary": [ { "parent": "", "source_code": [ "static void sub_qmf32_float_c(SynthFilterContext *synth,", " AVTXContext *imdct,", " av_tx_fn imdct_fn,", " float *pcm_samples,", " int32_t **subband_samples_lo,", " int32_t **subband_samples_hi,", " float *hist1, int *offset, float *hist2,", " const float *filter_coeff, ptrdiff_t npcmblocks,", " float scale)", "{", " LOCAL_ALIGNED_32(float, input, [32]);", " int i, j;", " for (j = 0; j < npcmblocks; j++) {", " // Load in one sample from each subband", " for (i = 0; i < 32; i++) {", " if ((i - 1) & 2)", " input[i] = -subband_samples_lo[i][j];", " else", " input[i] = subband_samples_lo[i][j];", " }", " // One subband sample generates 32 interpolated ones", " synth->synth_filter_float(imdct, hist1, offset,", " hist2, filter_coeff,", " pcm_samples, input, scale, imdct_fn);", " pcm_samples += 32;", " }", "}" ] }, { "parent": "", "source_code": [ "av_cold void ff_synth_filter_init_x86(SynthFilterContext *s)", "{", "#if HAVE_X86ASM", " int cpu_flags = av_get_cpu_flags();", " if (EXTERNAL_SSE2(cpu_flags)) {", " s->synth_filter_float = synth_filter_sse2;", " }", " if (EXTERNAL_AVX_FAST(cpu_flags)) {", " s->synth_filter_float = synth_filter_avx;", " }", " if (EXTERNAL_FMA3_FAST(cpu_flags)) {", " s->synth_filter_float = synth_filter_fma3;", " }", "#endif /* HAVE_X86ASM */", "}" ] }, { "parent": "", "source_code": [ "av_cold void ff_synth_filter_init(SynthFilterContext *c)", "{", " c->synth_filter_float = synth_filter_float;", " c->synth_filter_float_64 = synth_filter_float_64;", " c->synth_filter_fixed = synth_filter_fixed;", " c->synth_filter_fixed_64 = synth_filter_fixed_64;", "#if ARCH_AARCH64", " ff_synth_filter_init_aarch64(c);", "#elif ARCH_ARM", " ff_synth_filter_init_arm(c);", "#elif ARCH_X86", " ff_synth_filter_init_x86(c);", "#endif", "}" ] }, { "parent": "", "source_code": [ "av_cold int ff_dca_core_init(DCACoreDecoder *s)", "{", " int ret;", " float scale = 1.0f;", " if (!(s->float_dsp = avpriv_float_dsp_alloc(0)))", " return -1;", " if (!(s->fixed_dsp = avpriv_alloc_fixed_dsp(0)))", " return -1;", " ff_dcadct_init(&s->dcadct);", " if ((ret = av_tx_init(&s->imdct[0], &s->imdct_fn[0], AV_TX_FLOAT_MDCT,", " 1, 32, &scale, 0)) < 0)", " return ret;", " if ((ret = av_tx_init(&s->imdct[1], &s->imdct_fn[1], AV_TX_FLOAT_MDCT,", " 1, 64, &scale, 0)) < 0)", " return ret;", " ff_synth_filter_init(&s->synth);", " s->x96_rand = 1;", " return 0;", "}" ] }, { "parent": "", "source_code": [ "av_cold void ff_dcadsp_init(DCADSPContext *s)", "{", " s->decode_hf = decode_hf_c;", " s->decode_joint = decode_joint_c;", " s->lfe_fir_float[0] = lfe_fir0_float_c;", " s->lfe_fir_float[1] = lfe_fir1_float_c;", " s->lfe_x96_float = lfe_x96_float_c;", " s->sub_qmf_float[0] = sub_qmf32_float_c;", " s->sub_qmf_float[1] = sub_qmf64_float_c;", " s->lfe_fir_fixed = lfe_fir_fixed_c;", " s->lfe_x96_fixed = lfe_x96_fixed_c;", " s->sub_qmf_fixed[0] = sub_qmf32_fixed_c;", " s->sub_qmf_fixed[1] = sub_qmf64_fixed_c;", " s->decor = decor_c;", " s->dmix_sub_xch = dmix_sub_xch_c;", " s->dmix_sub = dmix_sub_c;", " s->dmix_add = dmix_add_c;", " s->dmix_scale = dmix_scale_c;", " s->dmix_scale_inv = dmix_scale_inv_c;", " s->assemble_freq_bands = assemble_freq_bands_c;", " s->lbr_bank = lbr_bank_c;", " s->lfe_iir = lfe_iir_c;", "#if ARCH_X86", " ff_dcadsp_init_x86(s);", "#endif", "}" ] }, { "parent": "", "source_code": [ "tatic int filter_frame_float(DCACoreDecoder *s, AVFrame *frame)", "{", " AVCodecContext *avctx = s->avctx;", " int x96_nchannels = 0, x96_synth = 0;", " int i, n, ch, ret, spkr, nsamples, nchannels;", " float *output_samples[DCA_SPEAKER_COUNT] = { NULL }, *ptr;", " const float *filter_coeff;", " if (s->ext_audio_mask & (DCA_CSS_X96 | DCA_EXSS_X96)) {", " x96_nchannels = s->x96_nchannels;", " x96_synth = 1;", " }", " // Filter primary channels", " for (ch = 0; ch < s->nchannels; ch++) {", " // Map this primary channel to speaker", " spkr = map_prm_ch_to_spkr(s, ch);", " if (spkr < 0)", " return AVERROR(EINVAL);", " // Filter bank reconstruction", " s->dcadsp->sub_qmf_float[x96_synth](", " &s->synth,", " s->imdct[x96_synth],", " s->imdct_fn[x96_synth],", " output_samples[spkr],", " s->subband_samples[ch],", " ch < x96_nchannels ? s->x96_subband_samples[ch] : NULL,", " s->dcadsp_data[ch].u.flt.hist1,", " &s->dcadsp_data[ch].offset,", " s->dcadsp_data[ch].u.flt.hist2,", " filter_coeff,", " s->npcmblocks,", " 1.0f / (1 << (17 - x96_synth)));", " }", "}" ] } ], "type": "fnptr-library" }
null
null
null
null
null
null
{ "callees": { "targets": { "OMX_Init": null, "abs_pow34_v": null, "av_codec_is_decoder": null, "av_codec_is_encoder": null, "ball_to_xyz": null, "barrel_to_xyz": null, "barrelsplit_to_xyz": null, "bswap16_buf": null, "convert_alignment": null, "convert_color": null, "convert_flt": null, "convert_int": null, "convert_str": null, "convert_timestamp": null, "cube1x6_to_xyz": null, "cube3x2_to_xyz": null, "cube6x1_to_xyz": null, "cylindrical_to_xyz": null, "cylindricalea_to_xyz": null, "deinterleaveBytes_c": null, "dfisheye_to_xyz": null, "eac_to_xyz": null, "equirect_to_xyz": null, "equisolid_to_xyz": null, "ff_abs_pow34_sse": null, "ff_bswap16_buf_rvv": null, "ff_celp_lp_synthesis_filterf": null, "ff_celp_lp_synthesis_filterf_mips": null, "ff_h263_decode_mb": null, "ff_vector_fmul_neon": null, "ff_vector_fmul_vfp": null, "fisheye_to_xyz": null, "flat_to_xyz": null, "gray8aToPacked24": null, "gray8aToPacked32": null, "gray8aToPacked32_1": null, "hammer_to_xyz": null, "hequirect_to_xyz": null, "mercator_to_xyz": null, "nb_decode": null, "octahedron_to_xyz": null, "orthographic_to_xyz": null, "pannini_to_xyz": null, "perspective_to_xyz": null, "quantize_and_encode_band_cost_ESC": null, "quantize_and_encode_band_cost_ESC_RTZ": null, "quantize_and_encode_band_cost_NOISE": null, "quantize_and_encode_band_cost_NONE": null, "quantize_and_encode_band_cost_SPAIR": null, "quantize_and_encode_band_cost_SQUAD": null, "quantize_and_encode_band_cost_STEREO": null, "quantize_and_encode_band_cost_UPAIR": null, "quantize_and_encode_band_cost_UQUAD": null, "quantize_and_encode_band_cost_ZERO": null, "sb_decode": null, "sinusoidal_to_xyz": null, "stereographic_to_xyz": null, "sws_convertPalette8ToPacked24": null, "sws_convertPalette8ToPacked32": null, "synth_filter_avx": null, "synth_filter_fma3": null, "synth_filter_sse2": null, "tetrahedron_to_xyz": null, "trc_arib_std_b67": null, "trc_bt1361": null, "trc_bt709": null, "trc_gamma22": null, "trc_gamma28": null, "trc_iec61966_2_1": null, "trc_iec61966_2_4": null, "trc_linear": null, "trc_log": null, "trc_log_sqrt": null, "trc_smpte240M": null, "trc_smpte_st2084": null, "trc_smpte_st428_1": null, "tspyramid_to_xyz": null, "upsample_plane_c": null, "vector_fmul_c": null, "vectorscope16": "", "vectorscope8": "" } }, "callsite": "s->vectorscope", "chain_summary": [ { "parent": "", "source_code": [ "static int config_input(AVFilterLink *inlink)", "{", " const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(inlink->format);", " AVFilterContext *ctx = inlink->dst;", " VectorscopeContext *s = ctx->priv;", " if (s->size == 256)", " s->vectorscope = vectorscope8;", " else", " s->vectorscope = vectorscope16;", " return 0;", "}" ] }, { "parent": "", "source_code": [ "static int filter_frame(AVFilterLink *inlink, AVFrame *in)", "{", " AVFilterContext *ctx = inlink->dst;", " VectorscopeContext *s = ctx->priv;", " AVFilterLink *outlink = ctx->outputs[0];", " AVFrame *out;", " int plane;", " s->bg_color[3] = s->bgopacity * (s->size - 1);", " s->tint[0] = .5f * (s->ftint[0] + 1.f) * (s->size - 1);", " s->tint[1] = .5f * (s->ftint[1] + 1.f) * (s->size - 1);", " s->intensity = s->fintensity * (s->size - 1);", " if (s->colorspace) {", " s->cs = (s->depth - 8) * 2 + s->colorspace - 1;", " } else {", " switch (in->colorspace) {", " case AVCOL_SPC_SMPTE170M:", " case AVCOL_SPC_BT470BG:", " s->cs = (s->depth - 8) * 2 + 0;", " break;", " case AVCOL_SPC_BT709:", " default:", " s->cs = (s->depth - 8) * 2 + 1;", " }", " }", " out = ff_get_video_buffer(outlink, outlink->w, outlink->h);", " if (!out) {", " av_frame_free(&in);", " return AVERROR(ENOMEM);", " }", " av_frame_copy_props(out, in);", " s->vectorscope(s, in, out, s->pd);", " s->graticulef(s, out, s->x, s->y, s->pd, s->cs);", " for (plane = 0; plane < 4; plane++) {", " if (out->data[plane]) {", " out->data[plane] += (s->size - 1) * out->linesize[plane];", " out->linesize[plane] = -out->linesize[plane];", " }", " }", " av_frame_free(&in);", " return ff_filter_frame(outlink, out);", "}" ] }, { "parent": "", "source_code": [ "static void vectorscope8(VectorscopeContext *s, AVFrame *in, AVFrame *out, int pd);", "static void vectorscope16(VectorscopeContext *s, AVFrame *in, AVFrame *out, int pd);" ] } ], "type": "fnptr-library" }
null
null
null
null
null
null
{ "callees": { "targets": { "OMX_Init": null, "abs_pow34_v": null, "av_codec_is_decoder": null, "av_codec_is_encoder": null, "ball_to_xyz": "", "barrel_to_xyz": "", "barrelsplit_to_xyz": "", "bswap16_buf": null, "convert_alignment": null, "convert_color": null, "convert_flt": null, "convert_int": null, "convert_str": null, "convert_timestamp": null, "cube1x6_to_xyz": "", "cube3x2_to_xyz": "", "cube6x1_to_xyz": "", "cylindrical_to_xyz": "", "cylindricalea_to_xyz": "", "deinterleaveBytes_c": null, "dfisheye_to_xyz": "", "eac_to_xyz": "", "equirect_to_xyz": "", "equisolid_to_xyz": "", "ff_abs_pow34_sse": null, "ff_bswap16_buf_rvv": null, "ff_celp_lp_synthesis_filterf": null, "ff_celp_lp_synthesis_filterf_mips": null, "ff_h263_decode_mb": null, "ff_vector_fmul_neon": null, "ff_vector_fmul_vfp": null, "fisheye_to_xyz": "", "flat_to_xyz": "", "gray8aToPacked24": null, "gray8aToPacked32": null, "gray8aToPacked32_1": null, "hammer_to_xyz": "", "hequirect_to_xyz": "", "mercator_to_xyz": "", "nb_decode": null, "octahedron_to_xyz": "", "orthographic_to_xyz": "", "pannini_to_xyz": "", "perspective_to_xyz": "", "quantize_and_encode_band_cost_ESC": null, "quantize_and_encode_band_cost_ESC_RTZ": null, "quantize_and_encode_band_cost_NOISE": null, "quantize_and_encode_band_cost_NONE": null, "quantize_and_encode_band_cost_SPAIR": null, "quantize_and_encode_band_cost_SQUAD": null, "quantize_and_encode_band_cost_STEREO": null, "quantize_and_encode_band_cost_UPAIR": null, "quantize_and_encode_band_cost_UQUAD": null, "quantize_and_encode_band_cost_ZERO": null, "sb_decode": null, "sinusoidal_to_xyz": "", "stereographic_to_xyz": "", "sws_convertPalette8ToPacked24": null, "sws_convertPalette8ToPacked32": null, "synth_filter_avx": null, "synth_filter_fma3": null, "synth_filter_sse2": null, "tetrahedron_to_xyz": "", "trc_arib_std_b67": null, "trc_bt1361": null, "trc_bt709": null, "trc_gamma22": null, "trc_gamma28": null, "trc_iec61966_2_1": null, "trc_iec61966_2_4": null, "trc_linear": null, "trc_log": null, "trc_log_sqrt": null, "trc_smpte240M": null, "trc_smpte_st2084": null, "trc_smpte_st428_1": null, "tspyramid_to_xyz": "", "upsample_plane_c": null, "vector_fmul_c": null, "vectorscope16": null, "vectorscope8": null } }, "callsite": "s->out_transform", "chain_summary": [ { "parent": "", "source_code": [ "static int v360_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)", "{", " V360Context *s = ctx->priv;", " if (s->out_transpose)", " out_mask = s->out_transform(s, j, i, height, width, vec);", " else", " out_mask = s->out_transform(s, i, j, width, height, vec);", "}" ] }, { "parent": "", "source_code": [ "static int config_output(AVFilterLink *outlink)", "{", " switch (s->out) {", " case EQUIRECTANGULAR:", " s->out_transform = equirect_to_xyz;", " prepare_out = prepare_equirect_out;", " w = lrintf(wf);", " h = lrintf(hf);", " break;", " case CUBEMAP_3_2:", " s->out_transform = cube3x2_to_xyz;", " prepare_out = prepare_cube_out;", " w = lrintf(wf / 4.f * 3.f);", " h = lrintf(hf);", " break;", " case CUBEMAP_1_6:", " s->out_transform = cube1x6_to_xyz;", " prepare_out = prepare_cube_out;", " w = lrintf(wf / 4.f);", " h = lrintf(hf * 3.f);", " break;", " case CUBEMAP_6_1:", " s->out_transform = cube6x1_to_xyz;", " prepare_out = prepare_cube_out;", " w = lrintf(wf / 2.f * 3.f);", " h = lrintf(hf / 2.f);", " break;", " case EQUIANGULAR:", " s->out_transform = eac_to_xyz;", " prepare_out = prepare_eac_out;", " w = lrintf(wf);", " h = lrintf(hf / 8.f * 9.f);", " break;", " case FLAT:", " s->out_transform = flat_to_xyz;", " prepare_out = prepare_flat_out;", " w = lrintf(wf);", " h = lrintf(hf);", " break;", " case DUAL_FISHEYE:", " s->out_transform = dfisheye_to_xyz;", " prepare_out = prepare_fisheye_out;", " w = lrintf(wf);", " h = lrintf(hf);", " break;", " case BARREL:", " s->out_transform = barrel_to_xyz;", " prepare_out = NULL;", " w = lrintf(wf / 4.f * 5.f);", " h = lrintf(hf);", " break;", " case STEREOGRAPHIC:", " s->out_transform = stereographic_to_xyz;", " prepare_out = prepare_stereographic_out;", " w = lrintf(wf);", " h = lrintf(hf * 2.f);", " break;", " case MERCATOR:", " s->out_transform = mercator_to_xyz;", " prepare_out = NULL;", " w = lrintf(wf);", " h = lrintf(hf * 2.f);", " break;", " case BALL:", " s->out_transform = ball_to_xyz;", " prepare_out = NULL;", " w = lrintf(wf);", " h = lrintf(hf * 2.f);", " break;", " case HAMMER:", " s->out_transform = hammer_to_xyz;", " prepare_out = NULL;", " w = lrintf(wf);", " h = lrintf(hf);", " break;", " case SINUSOIDAL:", " s->out_transform = sinusoidal_to_xyz;", " prepare_out = NULL;", " w = lrintf(wf);", " h = lrintf(hf);", " break;", " case FISHEYE:", " s->out_transform = fisheye_to_xyz;", " prepare_out = prepare_fisheye_out;", " w = lrintf(wf * 0.5f);", " h = lrintf(hf);", " break;", " case PANNINI:", " s->out_transform = pannini_to_xyz;", " prepare_out = NULL;", " w = lrintf(wf);", " h = lrintf(hf);", " break;", " case CYLINDRICAL:", " s->out_transform = cylindrical_to_xyz;", " prepare_out = prepare_cylindrical_out;", " w = lrintf(wf);", " h = lrintf(hf * 0.5f);", " break;", " case CYLINDRICALEA:", " s->out_transform = cylindricalea_to_xyz;", " prepare_out = prepare_cylindricalea_out;", " w = lrintf(wf);", " h = lrintf(hf);", " break;", " case PERSPECTIVE:", " s->out_transform = perspective_to_xyz;", " prepare_out = NULL;", " w = lrintf(wf / 2.f);", " h = lrintf(hf);", " break;", " case TETRAHEDRON:", " s->out_transform = tetrahedron_to_xyz;", " prepare_out = NULL;", " w = lrintf(wf);", " h = lrintf(hf);", " break;", " case BARREL_SPLIT:", " s->out_transform = barrelsplit_to_xyz;", " prepare_out = NULL;", " w = lrintf(wf / 4.f * 3.f);", " h = lrintf(hf);", " break;", " case TSPYRAMID:", " s->out_transform = tspyramid_to_xyz;", " prepare_out = NULL;", " w = lrintf(wf);", " h = lrintf(hf);", " break;", " case HEQUIRECTANGULAR:", " s->out_transform = hequirect_to_xyz;", " prepare_out = NULL;", " w = lrintf(wf / 2.f);", " h = lrintf(hf);", " break;", " case EQUISOLID:", " s->out_transform = equisolid_to_xyz;", " prepare_out = prepare_equisolid_out;", " w = lrintf(wf);", " h = lrintf(hf * 2.f);", " break;", " case ORTHOGRAPHIC:", " s->out_transform = orthographic_to_xyz;", " prepare_out = prepare_orthographic_out;", " w = lrintf(wf);", " h = lrintf(hf * 2.f);", " break;", " case OCTAHEDRON:", " s->out_transform = octahedron_to_xyz;", " prepare_out = NULL;", " w = lrintf(wf);", " h = lrintf(hf * 2.f);", " break;", " default:", " av_log(ctx, AV_LOG_ERROR, \"Specified output format is not handled.\\n\");", " return AVERROR_BUG;", " }", "}" ] } ], "type": "fnptr-library" }
null
null
null
null
null
null
{ "callees": { "targets": { "OMX_Init": null, "abs_pow34_v": null, "av_codec_is_decoder": null, "av_codec_is_encoder": null, "ball_to_xyz": null, "barrel_to_xyz": null, "barrelsplit_to_xyz": null, "bswap16_buf": null, "convert_alignment": null, "convert_color": null, "convert_flt": null, "convert_int": null, "convert_str": null, "convert_timestamp": null, "cube1x6_to_xyz": null, "cube3x2_to_xyz": null, "cube6x1_to_xyz": null, "cylindrical_to_xyz": null, "cylindricalea_to_xyz": null, "deinterleaveBytes_c": null, "dfisheye_to_xyz": null, "eac_to_xyz": null, "equirect_to_xyz": null, "equisolid_to_xyz": null, "ff_abs_pow34_sse": null, "ff_bswap16_buf_rvv": null, "ff_celp_lp_synthesis_filterf": null, "ff_celp_lp_synthesis_filterf_mips": null, "ff_h263_decode_mb": null, "ff_vector_fmul_neon": null, "ff_vector_fmul_vfp": null, "fisheye_to_xyz": null, "flat_to_xyz": null, "gray8aToPacked24": null, "gray8aToPacked32": null, "gray8aToPacked32_1": null, "hammer_to_xyz": null, "hequirect_to_xyz": null, "mercator_to_xyz": null, "nb_decode": null, "octahedron_to_xyz": null, "orthographic_to_xyz": null, "pannini_to_xyz": null, "perspective_to_xyz": null, "quantize_and_encode_band_cost_ESC": null, "quantize_and_encode_band_cost_ESC_RTZ": null, "quantize_and_encode_band_cost_NOISE": null, "quantize_and_encode_band_cost_NONE": null, "quantize_and_encode_band_cost_SPAIR": null, "quantize_and_encode_band_cost_SQUAD": null, "quantize_and_encode_band_cost_STEREO": null, "quantize_and_encode_band_cost_UPAIR": null, "quantize_and_encode_band_cost_UQUAD": null, "quantize_and_encode_band_cost_ZERO": null, "sb_decode": null, "sinusoidal_to_xyz": null, "stereographic_to_xyz": null, "sws_convertPalette8ToPacked24": null, "sws_convertPalette8ToPacked32": null, "synth_filter_avx": null, "synth_filter_fma3": null, "synth_filter_sse2": null, "tetrahedron_to_xyz": null, "trc_arib_std_b67": null, "trc_bt1361": null, "trc_bt709": null, "trc_gamma22": null, "trc_gamma28": null, "trc_iec61966_2_1": null, "trc_iec61966_2_4": null, "trc_linear": null, "trc_log": null, "trc_log_sqrt": null, "trc_smpte240M": null, "trc_smpte_st2084": null, "trc_smpte_st428_1": null, "tspyramid_to_xyz": null, "upsample_plane_c": "", "vector_fmul_c": null, "vectorscope16": null, "vectorscope8": null } }, "callsite": "ctx->dsp.upsample_plane", "chain_summary": [ { "parent": "", "source_code": [ "static int decode_wmv9(AVCodecContext *avctx, const uint8_t *buf, int buf_size,", " int x, int y, int w, int h, int wmv9_mask)", "{", " MSS2Context *ctx = avctx->priv_data;", " if (v->respic == 3) {", " ctx->dsp.upsample_plane(f->data[0], f->linesize[0], w, h);", " ctx->dsp.upsample_plane(f->data[1], f->linesize[1], w+1 >> 1, h+1 >> 1);", " ctx->dsp.upsample_plane(f->data[2], f->linesize[2], w+1 >> 1, h+1 >> 1);", " } else if (v->respic)", " avpriv_request_sample(v->s.avctx,", " \"Asymmetric WMV9 rectangle subsampling\");", "}" ] }, { "parent": "", "source_code": [ "av_cold void ff_mss2dsp_init(MSS2DSPContext* dsp)", "{", " dsp->mss2_blit_wmv9 = mss2_blit_wmv9_c;", " dsp->mss2_blit_wmv9_masked = mss2_blit_wmv9_masked_c;", " dsp->mss2_gray_fill_masked = mss2_gray_fill_masked_c;", " dsp->upsample_plane = upsample_plane_c;", "}" ] }, { "parent": "", "source_code": [ "typedef struct MSS2Context {", " VC1Context v;", " int split_position;", " AVFrame *last_pic;", " MSS12Context c;", " MSS2DSPContext dsp;", " SliceContext sc[2];", "} MSS2Context;" ] } ], "type": "fnptr-library" }
null
null
null
null
null
null
{ "callees": { "targets": { "OMX_Init": null, "abs_pow34_v": null, "av_codec_is_decoder": null, "av_codec_is_encoder": null, "ball_to_xyz": null, "barrel_to_xyz": null, "barrelsplit_to_xyz": null, "bswap16_buf": null, "convert_alignment": null, "convert_color": null, "convert_flt": null, "convert_int": null, "convert_str": null, "convert_timestamp": null, "cube1x6_to_xyz": null, "cube3x2_to_xyz": null, "cube6x1_to_xyz": null, "cylindrical_to_xyz": null, "cylindricalea_to_xyz": null, "deinterleaveBytes_c": null, "dfisheye_to_xyz": null, "eac_to_xyz": null, "equirect_to_xyz": null, "equisolid_to_xyz": null, "ff_abs_pow34_sse": null, "ff_bswap16_buf_rvv": null, "ff_celp_lp_synthesis_filterf": null, "ff_celp_lp_synthesis_filterf_mips": null, "ff_h263_decode_mb": null, "ff_vector_fmul_neon": "", "ff_vector_fmul_vfp": "", "fisheye_to_xyz": null, "flat_to_xyz": null, "gray8aToPacked24": null, "gray8aToPacked32": null, "gray8aToPacked32_1": null, "hammer_to_xyz": null, "hequirect_to_xyz": null, "mercator_to_xyz": null, "nb_decode": null, "octahedron_to_xyz": null, "orthographic_to_xyz": null, "pannini_to_xyz": null, "perspective_to_xyz": null, "quantize_and_encode_band_cost_ESC": null, "quantize_and_encode_band_cost_ESC_RTZ": null, "quantize_and_encode_band_cost_NOISE": null, "quantize_and_encode_band_cost_NONE": null, "quantize_and_encode_band_cost_SPAIR": null, "quantize_and_encode_band_cost_SQUAD": null, "quantize_and_encode_band_cost_STEREO": null, "quantize_and_encode_band_cost_UPAIR": null, "quantize_and_encode_band_cost_UQUAD": null, "quantize_and_encode_band_cost_ZERO": null, "sb_decode": null, "sinusoidal_to_xyz": null, "stereographic_to_xyz": null, "sws_convertPalette8ToPacked24": null, "sws_convertPalette8ToPacked32": null, "synth_filter_avx": null, "synth_filter_fma3": null, "synth_filter_sse2": null, "tetrahedron_to_xyz": null, "trc_arib_std_b67": null, "trc_bt1361": null, "trc_bt709": null, "trc_gamma22": null, "trc_gamma28": null, "trc_iec61966_2_1": null, "trc_iec61966_2_4": null, "trc_linear": null, "trc_log": null, "trc_log_sqrt": null, "trc_smpte240M": null, "trc_smpte_st2084": null, "trc_smpte_st428_1": null, "tspyramid_to_xyz": null, "upsample_plane_c": null, "vector_fmul_c": "", "vectorscope16": null, "vectorscope8": null } }, "callsite": "s->fdsp->vector_fmul", "chain_summary": [ { "parent": "", "source_code": [ "static void apply_mdct(NellyMoserEncodeContext *s)", "{", " float *in0 = s->buf;", " float *in1 = s->buf + NELLY_BUF_LEN;", " float *in2 = s->buf + 2 * NELLY_BUF_LEN;", " s->fdsp->vector_fmul (s->in_buff, in0, ff_sine_128, NELLY_BUF_LEN);", " s->fdsp->vector_fmul_reverse(s->in_buff + NELLY_BUF_LEN, in1, ff_sine_128, NELLY_BUF_LEN);", " s->mdct_fn(s->mdct_ctx, s->mdct_out, s->in_buff, sizeof(float));", " s->fdsp->vector_fmul (s->in_buff, in1, ff_sine_128, NELLY_BUF_LEN);", " s->fdsp->vector_fmul_reverse(s->in_buff + NELLY_BUF_LEN, in2, ff_sine_128, NELLY_BUF_LEN);", " s->mdct_fn(s->mdct_ctx, s->mdct_out + NELLY_BUF_LEN, s->in_buff, sizeof(float));", "}" ] }, { "parent": "", "source_code": [ "typedef struct NellyMoserEncodeContext {", " AVCodecContext *avctx;", " int last_frame;", " AVFloatDSPContext *fdsp;", " AVTXContext *mdct_ctx;", " av_tx_fn mdct_fn;", " AudioFrameQueue afq;", " DECLARE_ALIGNED(32, float, mdct_out)[NELLY_SAMPLES];", " DECLARE_ALIGNED(32, float, in_buff)[NELLY_SAMPLES];", " DECLARE_ALIGNED(32, float, buf)[3 * NELLY_BUF_LEN]; ///< sample buffer", " float (*opt )[OPT_SIZE];", " uint8_t (*path)[OPT_SIZE];", "} NellyMoserEncodeContext;" ] }, { "parent": "", "source_code": [ "av_cold AVFloatDSPContext *avpriv_float_dsp_alloc(int bit_exact)", "{", " AVFloatDSPContext *fdsp = av_mallocz(sizeof(AVFloatDSPContext));", " if (!fdsp)", " return NULL;", " fdsp->vector_fmul = vector_fmul_c;", " fdsp->vector_dmul = vector_dmul_c;", " fdsp->vector_fmac_scalar = vector_fmac_scalar_c;", " fdsp->vector_fmul_scalar = vector_fmul_scalar_c;", " fdsp->vector_dmac_scalar = vector_dmac_scalar_c;", " fdsp->vector_dmul_scalar = vector_dmul_scalar_c;", " fdsp->vector_fmul_window = vector_fmul_window_c;", " fdsp->vector_fmul_add = vector_fmul_add_c;", " fdsp->vector_fmul_reverse = vector_fmul_reverse_c;", " fdsp->butterflies_float = butterflies_float_c;", " fdsp->scalarproduct_float = avpriv_scalarproduct_float_c;", "#if ARCH_AARCH64", " ff_float_dsp_init_aarch64(fdsp);", "#elif ARCH_ARM", " ff_float_dsp_init_arm(fdsp);", "#elif ARCH_PPC", " ff_float_dsp_init_ppc(fdsp, bit_exact);", "#elif ARCH_RISCV", " ff_float_dsp_init_riscv(fdsp);", "#elif ARCH_X86", " ff_float_dsp_init_x86(fdsp);", "#elif ARCH_MIPS", " ff_float_dsp_init_mips(fdsp);", "#endif", " return fdsp;", "}" ] }, { "parent": "", "source_code": [ "av_cold void ff_float_dsp_init_neon(AVFloatDSPContext *fdsp)", "{", " fdsp->vector_fmul = ff_vector_fmul_neon;", " fdsp->vector_fmac_scalar = ff_vector_fmac_scalar_neon;", " fdsp->vector_fmul_scalar = ff_vector_fmul_scalar_neon;", " fdsp->vector_fmul_window = ff_vector_fmul_window_neon;", " fdsp->vector_fmul_add = ff_vector_fmul_add_neon;", " fdsp->vector_fmul_reverse = ff_vector_fmul_reverse_neon;", " fdsp->butterflies_float = ff_butterflies_float_neon;", " fdsp->scalarproduct_float = ff_scalarproduct_float_neon;", "}" ] }, { "parent": "", "source_code": [ "av_cold void ff_float_dsp_init_vfp(AVFloatDSPContext *fdsp, int cpu_flags)", "{", " if (have_vfp_vm(cpu_flags)) {", " fdsp->vector_fmul = ff_vector_fmul_vfp;", " fdsp->vector_fmul_window = ff_vector_fmul_window_vfp;", " }", " fdsp->vector_fmul_reverse = ff_vector_fmul_reverse_vfp;", " if (have_vfp_vm(cpu_flags))", " fdsp->butterflies_float = ff_butterflies_float_vfp;", "}" ] }, { "parent": "", "source_code": [ "av_cold void ff_float_dsp_init_arm(AVFloatDSPContext *fdsp)", "{", " int cpu_flags = av_get_cpu_flags();", " if (have_vfp(cpu_flags))", " ff_float_dsp_init_vfp(fdsp, cpu_flags);", " if (have_neon(cpu_flags))", " ff_float_dsp_init_neon(fdsp);", "}" ] } ], "type": "fnptr-library" }
null
null
null
null
null
null
{ "callees": { "targets": { "OMX_Init": null, "abs_pow34_v": null, "av_codec_is_decoder": null, "av_codec_is_encoder": null, "ball_to_xyz": null, "barrel_to_xyz": null, "barrelsplit_to_xyz": null, "bswap16_buf": "", "convert_alignment": null, "convert_color": null, "convert_flt": null, "convert_int": null, "convert_str": null, "convert_timestamp": null, "cube1x6_to_xyz": null, "cube3x2_to_xyz": null, "cube6x1_to_xyz": null, "cylindrical_to_xyz": null, "cylindricalea_to_xyz": null, "deinterleaveBytes_c": null, "dfisheye_to_xyz": null, "eac_to_xyz": null, "equirect_to_xyz": null, "equisolid_to_xyz": null, "ff_abs_pow34_sse": null, "ff_bswap16_buf_rvv": "", "ff_celp_lp_synthesis_filterf": null, "ff_celp_lp_synthesis_filterf_mips": null, "ff_h263_decode_mb": null, "ff_vector_fmul_neon": null, "ff_vector_fmul_vfp": null, "fisheye_to_xyz": null, "flat_to_xyz": null, "gray8aToPacked24": null, "gray8aToPacked32": null, "gray8aToPacked32_1": null, "hammer_to_xyz": null, "hequirect_to_xyz": null, "mercator_to_xyz": null, "nb_decode": null, "octahedron_to_xyz": null, "orthographic_to_xyz": null, "pannini_to_xyz": null, "perspective_to_xyz": null, "quantize_and_encode_band_cost_ESC": null, "quantize_and_encode_band_cost_ESC_RTZ": null, "quantize_and_encode_band_cost_NOISE": null, "quantize_and_encode_band_cost_NONE": null, "quantize_and_encode_band_cost_SPAIR": null, "quantize_and_encode_band_cost_SQUAD": null, "quantize_and_encode_band_cost_STEREO": null, "quantize_and_encode_band_cost_UPAIR": null, "quantize_and_encode_band_cost_UQUAD": null, "quantize_and_encode_band_cost_ZERO": null, "sb_decode": null, "sinusoidal_to_xyz": null, "stereographic_to_xyz": null, "sws_convertPalette8ToPacked24": null, "sws_convertPalette8ToPacked32": null, "synth_filter_avx": null, "synth_filter_fma3": null, "synth_filter_sse2": null, "tetrahedron_to_xyz": null, "trc_arib_std_b67": null, "trc_bt1361": null, "trc_bt709": null, "trc_gamma22": null, "trc_gamma28": null, "trc_iec61966_2_1": null, "trc_iec61966_2_4": null, "trc_linear": null, "trc_log": null, "trc_log_sqrt": null, "trc_smpte240M": null, "trc_smpte_st2084": null, "trc_smpte_st428_1": null, "tspyramid_to_xyz": null, "upsample_plane_c": null, "vector_fmul_c": null, "vectorscope16": null, "vectorscope8": null } }, "callsite": "context->bbdsp.bswap16_buf", "chain_summary": [ { "parent": "", "source_code": [ "static int raw_decode(AVCodecContext *avctx, AVFrame *frame,", " int *got_frame, AVPacket *avpkt)", "{", " if (packed && swap) {", " av_fast_padded_malloc(&context->bitstream_buf, &context->bitstream_buf_size, buf_size);", " if (!context->bitstream_buf)", " return AVERROR(ENOMEM);", " if (swap == 16)", " context->bbdsp.bswap16_buf(context->bitstream_buf, (const uint16_t*)buf, buf_size / 2);", " else if (swap == 32)", " context->bbdsp.bswap_buf(context->bitstream_buf, (const uint32_t*)buf, buf_size / 4);", " else", " return AVERROR_INVALIDDATA;", " buf = context->bitstream_buf;", " }", "}" ] }, { "parent": "", "source_code": [ "av_cold void ff_bswapdsp_init(BswapDSPContext *c)", "{", " c->bswap_buf = bswap_buf;", " c->bswap16_buf = bswap16_buf;", "#if ARCH_RISCV", " ff_bswapdsp_init_riscv(c);", "#elif ARCH_X86", " ff_bswapdsp_init_x86(c);", "#endif", "}" ] }, { "parent": "", "source_code": [ "av_cold void ff_bswapdsp_init_riscv(BswapDSPContext *c)", "{", " int flags = av_get_cpu_flags();", " if (flags & AV_CPU_FLAG_RVB_ADDR) {", "#if (__riscv_xlen >= 64)", " if (flags & AV_CPU_FLAG_RVB_BASIC)", " c->bswap_buf = ff_bswap32_buf_rvb;", "#endif", "#if HAVE_RVV", " if (flags & AV_CPU_FLAG_RVV_I32)", " c->bswap16_buf = ff_bswap16_buf_rvv;", "#endif", " }", "}" ] } ], "type": "fnptr-library" }
null
null
null
null
null
null
{ "callees": { "targets": { "OMX_Init": null, "abs_pow34_v": null, "av_codec_is_decoder": null, "av_codec_is_encoder": null, "ball_to_xyz": null, "barrel_to_xyz": null, "barrelsplit_to_xyz": null, "bswap16_buf": null, "convert_alignment": null, "convert_color": null, "convert_flt": null, "convert_int": null, "convert_str": null, "convert_timestamp": null, "cube1x6_to_xyz": null, "cube3x2_to_xyz": null, "cube6x1_to_xyz": null, "cylindrical_to_xyz": null, "cylindricalea_to_xyz": null, "deinterleaveBytes_c": null, "dfisheye_to_xyz": null, "eac_to_xyz": null, "equirect_to_xyz": null, "equisolid_to_xyz": null, "ff_abs_pow34_sse": null, "ff_bswap16_buf_rvv": null, "ff_celp_lp_synthesis_filterf": "", "ff_celp_lp_synthesis_filterf_mips": "", "ff_h263_decode_mb": null, "ff_vector_fmul_neon": null, "ff_vector_fmul_vfp": null, "fisheye_to_xyz": null, "flat_to_xyz": null, "gray8aToPacked24": null, "gray8aToPacked32": null, "gray8aToPacked32_1": null, "hammer_to_xyz": null, "hequirect_to_xyz": null, "mercator_to_xyz": null, "nb_decode": null, "octahedron_to_xyz": null, "orthographic_to_xyz": null, "pannini_to_xyz": null, "perspective_to_xyz": null, "quantize_and_encode_band_cost_ESC": null, "quantize_and_encode_band_cost_ESC_RTZ": null, "quantize_and_encode_band_cost_NOISE": null, "quantize_and_encode_band_cost_NONE": null, "quantize_and_encode_band_cost_SPAIR": null, "quantize_and_encode_band_cost_SQUAD": null, "quantize_and_encode_band_cost_STEREO": null, "quantize_and_encode_band_cost_UPAIR": null, "quantize_and_encode_band_cost_UQUAD": null, "quantize_and_encode_band_cost_ZERO": null, "sb_decode": null, "sinusoidal_to_xyz": null, "stereographic_to_xyz": null, "sws_convertPalette8ToPacked24": null, "sws_convertPalette8ToPacked32": null, "synth_filter_avx": null, "synth_filter_fma3": null, "synth_filter_sse2": null, "tetrahedron_to_xyz": null, "trc_arib_std_b67": null, "trc_bt1361": null, "trc_bt709": null, "trc_gamma22": null, "trc_gamma28": null, "trc_iec61966_2_1": null, "trc_iec61966_2_4": null, "trc_linear": null, "trc_log": null, "trc_log_sqrt": null, "trc_smpte240M": null, "trc_smpte_st2084": null, "trc_smpte_st428_1": null, "tspyramid_to_xyz": null, "upsample_plane_c": null, "vector_fmul_c": null, "vectorscope16": null, "vectorscope8": null } }, "callsite": "ctx->celpf_ctx.celp_lp_synthesis_filterf", "chain_summary": [ { "parent": "", "source_code": [ "static void synthesis(AMRWBContext *ctx, float *lpc, float *excitation,", " float fixed_gain, const float *fixed_vector,", " float *samples)", "{", " ctx->acelpv_ctx.weighted_vector_sumf(excitation, ctx->pitch_vector, fixed_vector,", " ctx->pitch_gain[0], fixed_gain, AMRWB_SFR_SIZE);", " /* emphasize pitch vector contribution in low bitrate modes */", " if (ctx->pitch_gain[0] > 0.5 && ctx->fr_cur_mode <= MODE_8k85) {", " int i;", " float energy = ctx->celpm_ctx.dot_productf(excitation, excitation,", " AMRWB_SFR_SIZE);", " // XXX: Weird part in both ref code and spec. A unknown parameter", " // {beta} seems to be identical to the current pitch gain", " float pitch_factor = 0.25 * ctx->pitch_gain[0] * ctx->pitch_gain[0];", " for (i = 0; i < AMRWB_SFR_SIZE; i++)", " excitation[i] += pitch_factor * ctx->pitch_vector[i];", " ff_scale_vector_to_given_sum_of_squares(excitation, excitation,", " energy, AMRWB_SFR_SIZE);", " }", " ctx->celpf_ctx.celp_lp_synthesis_filterf(samples, lpc, excitation,", " AMRWB_SFR_SIZE, LP_ORDER);", "}" ] }, { "parent": "", "source_code": [ "void ff_celp_filter_init(CELPFContext *c)", "{", " c->celp_lp_synthesis_filterf = ff_celp_lp_synthesis_filterf;", " c->celp_lp_zero_synthesis_filterf = ff_celp_lp_zero_synthesis_filterf;", "#if HAVE_MIPSFPU", " ff_celp_filter_init_mips(c);", "#endif", "}" ] }, { "parent": "", "source_code": [ "void ff_celp_filter_init_mips(CELPFContext *c)", "{", "#if HAVE_INLINE_ASM", "#if !HAVE_MIPS32R6 && !HAVE_MIPS64R6", " c->celp_lp_synthesis_filterf = ff_celp_lp_synthesis_filterf_mips;", " c->celp_lp_zero_synthesis_filterf = ff_celp_lp_zero_synthesis_filterf_mips;", "#endif", "#endif", "}" ] } ], "type": "fnptr-library" }
null
null
null
null
null
null
{ "callees": { "targets": { "OMX_Init": null, "abs_pow34_v": "", "av_codec_is_decoder": null, "av_codec_is_encoder": null, "ball_to_xyz": null, "barrel_to_xyz": null, "barrelsplit_to_xyz": null, "bswap16_buf": null, "convert_alignment": null, "convert_color": null, "convert_flt": null, "convert_int": null, "convert_str": null, "convert_timestamp": null, "cube1x6_to_xyz": null, "cube3x2_to_xyz": null, "cube6x1_to_xyz": null, "cylindrical_to_xyz": null, "cylindricalea_to_xyz": null, "deinterleaveBytes_c": null, "dfisheye_to_xyz": null, "eac_to_xyz": null, "equirect_to_xyz": null, "equisolid_to_xyz": null, "ff_abs_pow34_sse": "", "ff_bswap16_buf_rvv": null, "ff_celp_lp_synthesis_filterf": null, "ff_celp_lp_synthesis_filterf_mips": null, "ff_h263_decode_mb": null, "ff_vector_fmul_neon": null, "ff_vector_fmul_vfp": null, "fisheye_to_xyz": null, "flat_to_xyz": null, "gray8aToPacked24": null, "gray8aToPacked32": null, "gray8aToPacked32_1": null, "hammer_to_xyz": null, "hequirect_to_xyz": null, "mercator_to_xyz": null, "nb_decode": null, "octahedron_to_xyz": null, "orthographic_to_xyz": null, "pannini_to_xyz": null, "perspective_to_xyz": null, "quantize_and_encode_band_cost_ESC": null, "quantize_and_encode_band_cost_ESC_RTZ": null, "quantize_and_encode_band_cost_NOISE": null, "quantize_and_encode_band_cost_NONE": null, "quantize_and_encode_band_cost_SPAIR": null, "quantize_and_encode_band_cost_SQUAD": null, "quantize_and_encode_band_cost_STEREO": null, "quantize_and_encode_band_cost_UPAIR": null, "quantize_and_encode_band_cost_UQUAD": null, "quantize_and_encode_band_cost_ZERO": null, "sb_decode": null, "sinusoidal_to_xyz": null, "stereographic_to_xyz": null, "sws_convertPalette8ToPacked24": null, "sws_convertPalette8ToPacked32": null, "synth_filter_avx": null, "synth_filter_fma3": null, "synth_filter_sse2": null, "tetrahedron_to_xyz": null, "trc_arib_std_b67": null, "trc_bt1361": null, "trc_bt709": null, "trc_gamma22": null, "trc_gamma28": null, "trc_iec61966_2_1": null, "trc_iec61966_2_4": null, "trc_linear": null, "trc_log": null, "trc_log_sqrt": null, "trc_smpte240M": null, "trc_smpte_st2084": null, "trc_smpte_st428_1": null, "tspyramid_to_xyz": null, "upsample_plane_c": null, "vector_fmul_c": null, "vectorscope16": null, "vectorscope8": null } }, "callsite": "s->abs_pow34", "chain_summary": [ { "parent": "", "source_code": [ "av_cold void ff_aac_dsp_init_x86(AACEncContext *s)", "{", " int cpu_flags = av_get_cpu_flags();", " if (EXTERNAL_SSE(cpu_flags))", " s->abs_pow34 = ff_abs_pow34_sse;", " if (EXTERNAL_SSE2(cpu_flags))", " s->quant_bands = ff_aac_quantize_bands_sse2;", "}" ] }, { "parent": "", "source_code": [ "static av_cold int aac_encode_init(AVCodecContext *avctx)", "{", " AACEncContext *s = avctx->priv_data;", " ...", " s->random_state = 0x1f2e3d4c;", " s->abs_pow34 = abs_pow34_v;", " s->quant_bands = quantize_bands;", " ...", "}" ] }, { "parent": "", "source_code": [ "static void search_for_quantizers_fast(AVCodecContext *avctx, AACEncContext *s,", " SingleChannelElement *sce,", " const float lambda)", "{", " int start = 0, i, w, w2, g;", " ...", " if (!allz)", " return;", " s->abs_pow34(s->scoefs, sce->coeffs, 1024);", " ff_quantize_band_cost_cache_init(s);", " ...", "}" ] } ], "type": "fnptr-struct" }
null
null
null
null
null
null
{ "callees": { "targets": { "OMX_Init": null, "abs_pow34_v": null, "av_codec_is_decoder": null, "av_codec_is_encoder": null, "ball_to_xyz": null, "barrel_to_xyz": null, "barrelsplit_to_xyz": null, "bswap16_buf": null, "convert_alignment": null, "convert_color": null, "convert_flt": null, "convert_int": null, "convert_str": null, "convert_timestamp": null, "cube1x6_to_xyz": null, "cube3x2_to_xyz": null, "cube6x1_to_xyz": null, "cylindrical_to_xyz": null, "cylindricalea_to_xyz": null, "deinterleaveBytes_c": null, "dfisheye_to_xyz": null, "eac_to_xyz": null, "equirect_to_xyz": null, "equisolid_to_xyz": null, "ff_abs_pow34_sse": null, "ff_bswap16_buf_rvv": null, "ff_celp_lp_synthesis_filterf": null, "ff_celp_lp_synthesis_filterf_mips": null, "ff_h263_decode_mb": null, "ff_vector_fmul_neon": null, "ff_vector_fmul_vfp": null, "fisheye_to_xyz": null, "flat_to_xyz": null, "gray8aToPacked24": "", "gray8aToPacked32": "", "gray8aToPacked32_1": "", "hammer_to_xyz": null, "hequirect_to_xyz": null, "mercator_to_xyz": null, "nb_decode": null, "octahedron_to_xyz": null, "orthographic_to_xyz": null, "pannini_to_xyz": null, "perspective_to_xyz": null, "quantize_and_encode_band_cost_ESC": null, "quantize_and_encode_band_cost_ESC_RTZ": null, "quantize_and_encode_band_cost_NOISE": null, "quantize_and_encode_band_cost_NONE": null, "quantize_and_encode_band_cost_SPAIR": null, "quantize_and_encode_band_cost_SQUAD": null, "quantize_and_encode_band_cost_STEREO": null, "quantize_and_encode_band_cost_UPAIR": null, "quantize_and_encode_band_cost_UQUAD": null, "quantize_and_encode_band_cost_ZERO": null, "sb_decode": null, "sinusoidal_to_xyz": null, "stereographic_to_xyz": null, "sws_convertPalette8ToPacked24": "", "sws_convertPalette8ToPacked32": "", "synth_filter_avx": null, "synth_filter_fma3": null, "synth_filter_sse2": null, "tetrahedron_to_xyz": null, "trc_arib_std_b67": null, "trc_bt1361": null, "trc_bt709": null, "trc_gamma22": null, "trc_gamma28": null, "trc_iec61966_2_1": null, "trc_iec61966_2_4": null, "trc_linear": null, "trc_log": null, "trc_log_sqrt": null, "trc_smpte240M": null, "trc_smpte_st2084": null, "trc_smpte_st428_1": null, "tspyramid_to_xyz": null, "upsample_plane_c": null, "vector_fmul_c": null, "vectorscope16": null, "vectorscope8": null } }, "callsite": "conv", "chain_summary": [ { "parent": "", "source_code": [ "static int palToRgbWrapper(SwsContext *c, const uint8_t *src[], int srcStride[],", " int srcSliceY, int srcSliceH, uint8_t *dst[],", " int dstStride[])", "{", " const enum AVPixelFormat srcFormat = c->srcFormat;", " const enum AVPixelFormat dstFormat = c->dstFormat;", " void (*conv)(const uint8_t *src, uint8_t *dst, int num_pixels,", " const uint8_t *palette) = NULL;", " int i;", " uint8_t *dstPtr = dst[0] + dstStride[0] * srcSliceY;", " const uint8_t *srcPtr = src[0];", " if (srcFormat == AV_PIX_FMT_YA8) {", " switch (dstFormat) {", " case AV_PIX_FMT_RGB32 : conv = gray8aToPacked32; break;", " case AV_PIX_FMT_BGR32 : conv = gray8aToPacked32; break;", " case AV_PIX_FMT_BGR32_1: conv = gray8aToPacked32_1; break;", " case AV_PIX_FMT_RGB32_1: conv = gray8aToPacked32_1; break;", " case AV_PIX_FMT_RGB24 : conv = gray8aToPacked24; break;", " case AV_PIX_FMT_BGR24 : conv = gray8aToPacked24; break;", " }", " } else if (usePal(srcFormat)) {", " switch (dstFormat) {", " case AV_PIX_FMT_RGB32 : conv = sws_convertPalette8ToPacked32; break;", " case AV_PIX_FMT_BGR32 : conv = sws_convertPalette8ToPacked32; break;", " case AV_PIX_FMT_BGR32_1: conv = sws_convertPalette8ToPacked32; break;", " case AV_PIX_FMT_RGB32_1: conv = sws_convertPalette8ToPacked32; break;", " case AV_PIX_FMT_RGB24 : conv = sws_convertPalette8ToPacked24; break;", " case AV_PIX_FMT_BGR24 : conv = sws_convertPalette8ToPacked24; break;", " }", " }", " if (!conv)", " av_log(c, AV_LOG_ERROR, \"internal error %s -> %s converter\\n\",", " av_get_pix_fmt_name(srcFormat), av_get_pix_fmt_name(dstFormat));", " else {", " for (i = 0; i < srcSliceH; i++) {", " conv(srcPtr, dstPtr, c->srcW, (uint8_t *) c->pal_rgb);", " srcPtr += srcStride[0];", " dstPtr += dstStride[0];", " }", " }", " return srcSliceH;", "}" ] } ], "type": "fnptr-only" }
null
null
null
null
null
null
{ "callees": { "targets": { "OMX_Init": null, "abs_pow34_v": null, "av_codec_is_decoder": null, "av_codec_is_encoder": null, "ball_to_xyz": null, "barrel_to_xyz": null, "barrelsplit_to_xyz": null, "bswap16_buf": null, "convert_alignment": null, "convert_color": null, "convert_flt": null, "convert_int": null, "convert_str": null, "convert_timestamp": null, "cube1x6_to_xyz": null, "cube3x2_to_xyz": null, "cube6x1_to_xyz": null, "cylindrical_to_xyz": null, "cylindricalea_to_xyz": null, "deinterleaveBytes_c": "", "dfisheye_to_xyz": null, "eac_to_xyz": null, "equirect_to_xyz": null, "equisolid_to_xyz": null, "ff_abs_pow34_sse": null, "ff_bswap16_buf_rvv": null, "ff_celp_lp_synthesis_filterf": null, "ff_celp_lp_synthesis_filterf_mips": null, "ff_h263_decode_mb": null, "ff_vector_fmul_neon": null, "ff_vector_fmul_vfp": null, "fisheye_to_xyz": null, "flat_to_xyz": null, "gray8aToPacked24": null, "gray8aToPacked32": null, "gray8aToPacked32_1": null, "hammer_to_xyz": null, "hequirect_to_xyz": null, "mercator_to_xyz": null, "nb_decode": null, "octahedron_to_xyz": null, "orthographic_to_xyz": null, "pannini_to_xyz": null, "perspective_to_xyz": null, "quantize_and_encode_band_cost_ESC": null, "quantize_and_encode_band_cost_ESC_RTZ": null, "quantize_and_encode_band_cost_NOISE": null, "quantize_and_encode_band_cost_NONE": null, "quantize_and_encode_band_cost_SPAIR": null, "quantize_and_encode_band_cost_SQUAD": null, "quantize_and_encode_band_cost_STEREO": null, "quantize_and_encode_band_cost_UPAIR": null, "quantize_and_encode_band_cost_UQUAD": null, "quantize_and_encode_band_cost_ZERO": null, "sb_decode": null, "sinusoidal_to_xyz": null, "stereographic_to_xyz": null, "sws_convertPalette8ToPacked24": null, "sws_convertPalette8ToPacked32": null, "synth_filter_avx": null, "synth_filter_fma3": null, "synth_filter_sse2": null, "tetrahedron_to_xyz": null, "trc_arib_std_b67": null, "trc_bt1361": null, "trc_bt709": null, "trc_gamma22": null, "trc_gamma28": null, "trc_iec61966_2_1": null, "trc_iec61966_2_4": null, "trc_linear": null, "trc_log": null, "trc_log_sqrt": null, "trc_smpte240M": null, "trc_smpte_st2084": null, "trc_smpte_st428_1": null, "tspyramid_to_xyz": null, "upsample_plane_c": null, "vector_fmul_c": null, "vectorscope16": null, "vectorscope8": null } }, "callsite": "deinterleaveBytes", "chain_summary": [ { "parent": "", "source_code": [ "static int nv12ToPlanarWrapper(SwsContext *c, const uint8_t *src[],", " int srcStride[], int srcSliceY,", " int srcSliceH, uint8_t *dstParam[],", " int dstStride[])", "{", " uint8_t *dst1 = dstParam[1] + dstStride[1] * srcSliceY / 2;", " uint8_t *dst2 = dstParam[2] + dstStride[2] * srcSliceY / 2;", " copyPlane(src[0], srcStride[0], srcSliceY, srcSliceH, c->srcW,", " dstParam[0], dstStride[0]);", " if (c->srcFormat == AV_PIX_FMT_NV12)", " deinterleaveBytes(src[1], dst1, dst2, c->chrSrcW, (srcSliceH + 1) / 2,", " srcStride[1], dstStride[1], dstStride[2]);", " else", " deinterleaveBytes(src[1], dst2, dst1, c->chrSrcW, (srcSliceH + 1) / 2,", " srcStride[1], dstStride[2], dstStride[1]);", " return srcSliceH;", "}" ] }, { "parent": "", "source_code": [ "void (*deinterleaveBytes)(const uint8_t *src, uint8_t *dst1, uint8_t *dst2,", " int width, int height, int srcStride,", " int dst1Stride, int dst2Stride);" ] }, { "parent": "", "source_code": [ "static av_cold void rgb2rgb_init_c(void)", "{", " rgb15to16 = rgb15to16_c;", " rgb15tobgr24 = rgb15tobgr24_c;", " rgb15to32 = rgb15to32_c;", " rgb16tobgr24 = rgb16tobgr24_c;", " rgb16to32 = rgb16to32_c;", " rgb16to15 = rgb16to15_c;", " rgb24tobgr16 = rgb24tobgr16_c;", " rgb24tobgr15 = rgb24tobgr15_c;", " rgb24tobgr32 = rgb24tobgr32_c;", " rgb32to16 = rgb32to16_c;", " rgb32to15 = rgb32to15_c;", " rgb32tobgr24 = rgb32tobgr24_c;", " rgb24to15 = rgb24to15_c;", " rgb24to16 = rgb24to16_c;", " rgb24tobgr24 = rgb24tobgr24_c;", "#if HAVE_BIGENDIAN", " shuffle_bytes_0321 = shuffle_bytes_2103_c;", " shuffle_bytes_2103 = shuffle_bytes_0321_c;", "#else", " shuffle_bytes_0321 = shuffle_bytes_0321_c;", " shuffle_bytes_2103 = shuffle_bytes_2103_c;", "#endif", " shuffle_bytes_1230 = shuffle_bytes_1230_c;", " shuffle_bytes_3012 = shuffle_bytes_3012_c;", " shuffle_bytes_3210 = shuffle_bytes_3210_c;", " rgb32tobgr16 = rgb32tobgr16_c;", " rgb32tobgr15 = rgb32tobgr15_c;", " yv12toyuy2 = yv12toyuy2_c;", " yv12touyvy = yv12touyvy_c;", " yuv422ptoyuy2 = yuv422ptoyuy2_c;", " yuv422ptouyvy = yuv422ptouyvy_c;", " yuy2toyv12 = yuy2toyv12_c;", " planar2x = planar2x_c;", " ff_rgb24toyv12 = ff_rgb24toyv12_c;", " interleaveBytes = interleaveBytes_c;", " deinterleaveBytes = deinterleaveBytes_c;", " vu9_to_vu12 = vu9_to_vu12_c;", " yvu9_to_yuy2 = yvu9_to_yuy2_c;", " uyvytoyuv420 = uyvytoyuv420_c;", " uyvytoyuv422 = uyvytoyuv422_c;", " yuyvtoyuv420 = yuyvtoyuv420_c;", " yuyvtoyuv422 = yuyvtoyuv422_c;", "}" ] } ], "type": "fnptr-only" }
null
null
null
null
null
null
{ "callees": { "targets": { "OMX_Init": "", "abs_pow34_v": null, "av_codec_is_decoder": null, "av_codec_is_encoder": null, "ball_to_xyz": null, "barrel_to_xyz": null, "barrelsplit_to_xyz": null, "bswap16_buf": null, "convert_alignment": null, "convert_color": null, "convert_flt": null, "convert_int": null, "convert_str": null, "convert_timestamp": null, "cube1x6_to_xyz": null, "cube3x2_to_xyz": null, "cube6x1_to_xyz": null, "cylindrical_to_xyz": null, "cylindricalea_to_xyz": null, "deinterleaveBytes_c": null, "dfisheye_to_xyz": null, "eac_to_xyz": null, "equirect_to_xyz": null, "equisolid_to_xyz": null, "ff_abs_pow34_sse": null, "ff_bswap16_buf_rvv": null, "ff_celp_lp_synthesis_filterf": null, "ff_celp_lp_synthesis_filterf_mips": null, "ff_h263_decode_mb": null, "ff_vector_fmul_neon": null, "ff_vector_fmul_vfp": null, "fisheye_to_xyz": null, "flat_to_xyz": null, "gray8aToPacked24": null, "gray8aToPacked32": null, "gray8aToPacked32_1": null, "hammer_to_xyz": null, "hequirect_to_xyz": null, "mercator_to_xyz": null, "nb_decode": null, "octahedron_to_xyz": null, "orthographic_to_xyz": null, "pannini_to_xyz": null, "perspective_to_xyz": null, "quantize_and_encode_band_cost_ESC": null, "quantize_and_encode_band_cost_ESC_RTZ": null, "quantize_and_encode_band_cost_NOISE": null, "quantize_and_encode_band_cost_NONE": null, "quantize_and_encode_band_cost_SPAIR": null, "quantize_and_encode_band_cost_SQUAD": null, "quantize_and_encode_band_cost_STEREO": null, "quantize_and_encode_band_cost_UPAIR": null, "quantize_and_encode_band_cost_UQUAD": null, "quantize_and_encode_band_cost_ZERO": null, "sb_decode": null, "sinusoidal_to_xyz": null, "stereographic_to_xyz": null, "sws_convertPalette8ToPacked24": null, "sws_convertPalette8ToPacked32": null, "synth_filter_avx": null, "synth_filter_fma3": null, "synth_filter_sse2": null, "tetrahedron_to_xyz": null, "trc_arib_std_b67": null, "trc_bt1361": null, "trc_bt709": null, "trc_gamma22": null, "trc_gamma28": null, "trc_iec61966_2_1": null, "trc_iec61966_2_4": null, "trc_linear": null, "trc_log": null, "trc_log_sqrt": null, "trc_smpte240M": null, "trc_smpte_st2084": null, "trc_smpte_st428_1": null, "tspyramid_to_xyz": null, "upsample_plane_c": null, "vector_fmul_c": null, "vectorscope16": null, "vectorscope8": null } }, "callsite": "omx_context->ptr_Init", "chain_summary": [ { "parent": "", "source_code": [ "static av_cold void *dlsym_prefixed(void *handle, const char *symbol, const char *prefix)", "{", " char buf[50];", " snprintf(buf, sizeof(buf), \"%s%s\", prefix ? prefix : \"\", symbol);", " return dlsym(handle, buf);", "}" ] }, { "parent": "", "source_code": [ "static av_cold int omx_try_load(OMXContext *s, void *logctx,", " const char *libname, const char *prefix,", " const char *libname2)", " {", " ...", " s->ptr_Init = dlsym_prefixed(s->lib, \"OMX_Init\", prefix);", " ...", " }" ] }, { "parent": "", "source_code": [ "static av_cold OMXContext *omx_init(void *logctx, const char *libname, const char *prefix)", "{", " static const char * const libnames[] = {", "#if CONFIG_OMX_RPI", " \"/opt/vc/lib/libopenmaxil.so\", \"/opt/vc/lib/libbcm_host.so\",", "#else", " \"libOMX_Core.so\", NULL,", " \"libOmxCore.so\", NULL,", "#endif", " NULL", " };", " const char* const* nameptr;", " int ret = AVERROR_ENCODER_NOT_FOUND;", " OMXContext *omx_context;", " omx_context = av_mallocz(sizeof(*omx_context));", " if (!omx_context)", " return NULL;", " if (libname) {", " ret = omx_try_load(omx_context, logctx, libname, prefix, NULL);", " if (ret < 0) {", " av_free(omx_context);", " return NULL;", " }", " } else {", " for (nameptr = libnames; *nameptr; nameptr += 2)", " if (!(ret = omx_try_load(omx_context, logctx, nameptr[0], prefix, nameptr[1])))", " break;", " if (!*nameptr) {", " av_free(omx_context);", " return NULL;", " }", " }", " if (omx_context->host_init)", " omx_context->host_init();", " omx_context->ptr_Init();", " return omx_context;", "}" ] }, { "parent": "", "source_code": [ "static av_cold int omx_encode_init(AVCodecContext *avctx)", "{", " OMXCodecContext *s = avctx->priv_data;", " ...", " /* cleanup relies on the mutexes/conditions being initialized first. */", " ret = ff_pthread_init(s, omx_codec_context_offsets);", " if (ret < 0)", " return ret;", " s->omx_context = omx_init(avctx, s->libname, s->libprefix);", " ...", "}" ] }, { "parent": "", "source_code": [ "typedef struct OMXCodecContext {", " const AVClass *class;", " char *libname;", " char *libprefix;", " ...", "} OMXCodecContext;" ] }, { "parent": "", "source_code": [ "const FFCodec ff_h264_omx_encoder = {", " .p.name = \"h264_omx\",", " CODEC_LONG_NAME(\"OpenMAX IL H.264 video encoder\"),", " .p.type = AVMEDIA_TYPE_VIDEO,", " .p.id = AV_CODEC_ID_H264,", " .priv_data_size = sizeof(OMXCodecContext),", " .init = omx_encode_init,", " FF_CODEC_ENCODE_CB(omx_encode_frame),", " .close = omx_encode_end,", " .p.pix_fmts = omx_encoder_pix_fmts,", " .p.capabilities = AV_CODEC_CAP_DELAY,", " .caps_internal = FF_CODEC_CAP_INIT_CLEANUP,", " .p.priv_class = &omx_h264enc_class,", "};" ] }, { "parent": "", "source_code": [ "static const AVClass omx_h264enc_class = {", " .class_name = \"h264_omx\",", " .item_name = av_default_item_name,", " .option = options,", " .version = LIBAVUTIL_VERSION_INT,", "};" ] }, { "parent": "", "source_code": [ "static const AVOption options[] = {", " { \"omx_libname\", \"OpenMAX library name\", OFFSET(libname), AV_OPT_TYPE_STRING, { 0 }, 0, 0, VDE },", " { \"omx_libprefix\", \"OpenMAX library prefix\", OFFSET(libprefix), AV_OPT_TYPE_STRING, { 0 }, 0, 0, VDE },", " { \"zerocopy\", \"Try to avoid copying input frames if possible\", OFFSET(input_zerocopy), AV_OPT_TYPE_INT, { .i64 = CONFIG_OMX_RPI }, 0, 1, VE },", " { \"profile\", \"Set the encoding profile\", OFFSET(profile), AV_OPT_TYPE_INT, { .i64 = AV_PROFILE_UNKNOWN }, AV_PROFILE_UNKNOWN, AV_PROFILE_H264_HIGH, VE, \"profile\" },", " { \"baseline\", \"\", 0, AV_OPT_TYPE_CONST, { .i64 = AV_PROFILE_H264_BASELINE }, 0, 0, VE, \"profile\" },", " { \"main\", \"\", 0, AV_OPT_TYPE_CONST, { .i64 = AV_PROFILE_H264_MAIN }, 0, 0, VE, \"profile\" },", " { \"high\", \"\", 0, AV_OPT_TYPE_CONST, { .i64 = AV_PROFILE_H264_HIGH }, 0, 0, VE, \"profile\" },", " { NULL }", "};" ] } ], "type": "fnptr-dynamic-call" }
null
null
null
null
null
null
{ "callees": { "targets": { "OMX_Init": null, "abs_pow34_v": null, "av_codec_is_decoder": null, "av_codec_is_encoder": null, "ball_to_xyz": null, "barrel_to_xyz": null, "barrelsplit_to_xyz": null, "bswap16_buf": null, "convert_alignment": null, "convert_color": null, "convert_flt": null, "convert_int": null, "convert_str": null, "convert_timestamp": null, "cube1x6_to_xyz": null, "cube3x2_to_xyz": null, "cube6x1_to_xyz": null, "cylindrical_to_xyz": null, "cylindricalea_to_xyz": null, "deinterleaveBytes_c": null, "dfisheye_to_xyz": null, "eac_to_xyz": null, "equirect_to_xyz": null, "equisolid_to_xyz": null, "ff_abs_pow34_sse": null, "ff_bswap16_buf_rvv": null, "ff_celp_lp_synthesis_filterf": null, "ff_celp_lp_synthesis_filterf_mips": null, "ff_h263_decode_mb": null, "ff_vector_fmul_neon": null, "ff_vector_fmul_vfp": null, "fisheye_to_xyz": null, "flat_to_xyz": null, "gray8aToPacked24": null, "gray8aToPacked32": null, "gray8aToPacked32_1": null, "hammer_to_xyz": null, "hequirect_to_xyz": null, "mercator_to_xyz": null, "nb_decode": "", "octahedron_to_xyz": null, "orthographic_to_xyz": null, "pannini_to_xyz": null, "perspective_to_xyz": null, "quantize_and_encode_band_cost_ESC": null, "quantize_and_encode_band_cost_ESC_RTZ": null, "quantize_and_encode_band_cost_NOISE": null, "quantize_and_encode_band_cost_NONE": null, "quantize_and_encode_band_cost_SPAIR": null, "quantize_and_encode_band_cost_SQUAD": null, "quantize_and_encode_band_cost_STEREO": null, "quantize_and_encode_band_cost_UPAIR": null, "quantize_and_encode_band_cost_UQUAD": null, "quantize_and_encode_band_cost_ZERO": null, "sb_decode": "", "sinusoidal_to_xyz": null, "stereographic_to_xyz": null, "sws_convertPalette8ToPacked24": null, "sws_convertPalette8ToPacked32": null, "synth_filter_avx": null, "synth_filter_fma3": null, "synth_filter_sse2": null, "tetrahedron_to_xyz": null, "trc_arib_std_b67": null, "trc_bt1361": null, "trc_bt709": null, "trc_gamma22": null, "trc_gamma28": null, "trc_iec61966_2_1": null, "trc_iec61966_2_4": null, "trc_linear": null, "trc_log": null, "trc_log_sqrt": null, "trc_smpte240M": null, "trc_smpte_st2084": null, "trc_smpte_st428_1": null, "tspyramid_to_xyz": null, "upsample_plane_c": null, "vector_fmul_c": null, "vectorscope16": null, "vectorscope8": null } }, "callsite": "speex_modes[s->mode].decode", "chain_summary": [ { "parent": "", "source_code": [ "static int speex_decode_frame(AVCodecContext *avctx, AVFrame *frame,", " int *got_frame_ptr, AVPacket *avpkt)", "{", " SpeexContext *s = avctx->priv_data;", " int frames_per_packet = s->frames_per_packet;", " const float scale = 1.f / 32768.f;", " int buf_size = avpkt->size;", " float *dst;", " int ret;", " if (s->pkt_size && avpkt->size == 62)", " buf_size = s->pkt_size;", " if ((ret = init_get_bits8(&s->gb, avpkt->data, buf_size)) < 0)", " return ret;", " frame->nb_samples = FFALIGN(s->frame_size * frames_per_packet, 4);", " if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)", " return ret;", " dst = (float *)frame->extended_data[0];", " for (int i = 0; i < frames_per_packet; i++) {", " ret = speex_modes[s->mode].decode(avctx, &s->st[s->mode], &s->gb, dst + i * s->frame_size);", " if (ret < 0)", " return ret;", " if (avctx->ch_layout.nb_channels == 2)", " speex_decode_stereo(dst + i * s->frame_size, s->frame_size, &s->stereo);", " if (get_bits_left(&s->gb) < 5 ||", " show_bits(&s->gb, 5) == 15) {", " frames_per_packet = i + 1;", " break;", " }", " }", " dst = (float *)frame->extended_data[0];", " s->fdsp->vector_fmul_scalar(dst, dst, scale, frame->nb_samples * frame->ch_layout.nb_channels);", " frame->nb_samples = s->frame_size * frames_per_packet;", " *got_frame_ptr = 1;", " return (get_bits_count(&s->gb) + 7) >> 3;", "}" ] }, { "parent": "", "source_code": [ "static const SpeexMode speex_modes[SPEEX_NB_MODES] = {", " {", " .modeID = 0,", " .decode = nb_decode,", " .frame_size = NB_FRAME_SIZE,", " .subframe_size = NB_SUBFRAME_SIZE,", " .lpc_size = NB_ORDER,", " .submodes = {", " NULL, &nb_submode1, &nb_submode2, &nb_submode3, &nb_submode4,", " &nb_submode5, &nb_submode6, &nb_submode7, &nb_submode8", " },", " .default_submode = 5,", " },", " {", " .modeID = 1,", " .decode = sb_decode,", " .frame_size = NB_FRAME_SIZE,", " .subframe_size = NB_SUBFRAME_SIZE,", " .lpc_size = 8,", " .folding_gain = 0.9f,", " .submodes = {", " NULL, &wb_submode1, &wb_submode2, &wb_submode3, &wb_submode4", " },", " .default_submode = 3,", " },", " {", " .modeID = 2,", " .decode = sb_decode,", " .frame_size = 320,", " .subframe_size = 80,", " .lpc_size = 8,", " .folding_gain = 0.7f,", " .submodes = {", " NULL, &wb_submode1", " },", " .default_submode = 1,", " },", "};" ] } ], "type": "fnptr-global-struct-array" }
null
null
null
null
null
null
{ "callees": { "targets": { "OMX_Init": null, "abs_pow34_v": null, "av_codec_is_decoder": "", "av_codec_is_encoder": "", "ball_to_xyz": null, "barrel_to_xyz": null, "barrelsplit_to_xyz": null, "bswap16_buf": null, "convert_alignment": null, "convert_color": null, "convert_flt": null, "convert_int": null, "convert_str": null, "convert_timestamp": null, "cube1x6_to_xyz": null, "cube3x2_to_xyz": null, "cube6x1_to_xyz": null, "cylindrical_to_xyz": null, "cylindricalea_to_xyz": null, "deinterleaveBytes_c": null, "dfisheye_to_xyz": null, "eac_to_xyz": null, "equirect_to_xyz": null, "equisolid_to_xyz": null, "ff_abs_pow34_sse": null, "ff_bswap16_buf_rvv": null, "ff_celp_lp_synthesis_filterf": null, "ff_celp_lp_synthesis_filterf_mips": null, "ff_h263_decode_mb": null, "ff_vector_fmul_neon": null, "ff_vector_fmul_vfp": null, "fisheye_to_xyz": null, "flat_to_xyz": null, "gray8aToPacked24": null, "gray8aToPacked32": null, "gray8aToPacked32_1": null, "hammer_to_xyz": null, "hequirect_to_xyz": null, "mercator_to_xyz": null, "nb_decode": null, "octahedron_to_xyz": null, "orthographic_to_xyz": null, "pannini_to_xyz": null, "perspective_to_xyz": null, "quantize_and_encode_band_cost_ESC": null, "quantize_and_encode_band_cost_ESC_RTZ": null, "quantize_and_encode_band_cost_NOISE": null, "quantize_and_encode_band_cost_NONE": null, "quantize_and_encode_band_cost_SPAIR": null, "quantize_and_encode_band_cost_SQUAD": null, "quantize_and_encode_band_cost_STEREO": null, "quantize_and_encode_band_cost_UPAIR": null, "quantize_and_encode_band_cost_UQUAD": null, "quantize_and_encode_band_cost_ZERO": null, "sb_decode": null, "sinusoidal_to_xyz": null, "stereographic_to_xyz": null, "sws_convertPalette8ToPacked24": null, "sws_convertPalette8ToPacked32": null, "synth_filter_avx": null, "synth_filter_fma3": null, "synth_filter_sse2": null, "tetrahedron_to_xyz": null, "trc_arib_std_b67": null, "trc_bt1361": null, "trc_bt709": null, "trc_gamma22": null, "trc_gamma28": null, "trc_iec61966_2_1": null, "trc_iec61966_2_4": null, "trc_linear": null, "trc_log": null, "trc_log_sqrt": null, "trc_smpte240M": null, "trc_smpte_st2084": null, "trc_smpte_st428_1": null, "tspyramid_to_xyz": null, "upsample_plane_c": null, "vector_fmul_c": null, "vectorscope16": null, "vectorscope8": null } }, "callsite": "x", "chain_summary": [ { "parent": "", "source_code": [ "static const AVCodec *find_codec(enum AVCodecID id, int (*x)(const AVCodec *))", "{", " const AVCodec *p, *experimental = NULL;", " void *i = 0;", " id = remap_deprecated_codec_id(id);", " while ((p = av_codec_iterate(&i))) {", " if (!x(p))", " continue;", " if (p->id == id) {", " if (p->capabilities & AV_CODEC_CAP_EXPERIMENTAL && !experimental) {", " experimental = p;", " } else", " return p;", " }", " }", " return experimental;", "}" ] }, { "parent": "", "source_code": [ "const AVCodec *avcodec_find_encoder(enum AVCodecID id)", "{", " return find_codec(id, av_codec_is_encoder);", "}", "const AVCodec *avcodec_find_decoder(enum AVCodecID id)", "{", " return find_codec(id, av_codec_is_decoder);", "}" ] } ], "type": "fnptr-callback" }
null
null
null
null
null
null
null
{ "callees": { "targets": { "Curl_init_CONNECT": "", "Curl_md5it": null, "Curl_sha256it": null, "Curl_strdup": null, "auth_digest_md5_to_ascii": null, "auth_digest_sha256_to_ascii": null, "before_perform": "", "calloc": null, "cf_socket_get_host": null, "curl_free": null, "fileinfo_dtor": null, "free": null, "free_bundle_hash_entry": null, "freednsentry": null, "gsasl_free": null, "hash_element_dtor": null, "https_proxy_present": null, "init_completed": "", "malloc": null, "multissl_send_plain": null, "my_lock": null, "my_md5_init": null, "my_md5_update": null, "ossl_sha256sum": null, "sh_freeentry": null, "strdup": null, "trhash_dtor": null, "writeLong": null, "writeOffset": null, "writeString": null, "writeTime": null } }, "callsite": "finit[state]", "chain_summary": [ { "parent": "", "source_code": [ "/* always use this function to change state, to make debugging easier */", "static void mstate(struct Curl_easy *data, CURLMstate state", "#ifdef DEBUGBUILD", " , int lineno", "#endif", ")", "{", " CURLMstate oldstate = data->mstate;", " static const init_multistate_func finit[MSTATE_LAST] = {", " NULL, /* INIT */", " NULL, /* PENDING */", " Curl_init_CONNECT, /* CONNECT */", " NULL, /* RESOLVING */", " NULL, /* CONNECTING */", " NULL, /* TUNNELING */", " NULL, /* PROTOCONNECT */", " NULL, /* PROTOCONNECTING */", " NULL, /* DO */", " NULL, /* DOING */", " NULL, /* DOING_MORE */", " before_perform, /* DID */", " NULL, /* PERFORMING */", " NULL, /* RATELIMITING */", " NULL, /* DONE */", " init_completed, /* COMPLETED */", " NULL /* MSGSENT */", " };", " ...", "/* if this state has an init-function, run it */", " if(finit[state])", " finit[state](data);", "}" ] } ], "type": "fnptr-global-array" }
null
null
null
null
null
null
{ "callees": { "targets": { "Curl_init_CONNECT": null, "Curl_md5it": null, "Curl_sha256it": null, "Curl_strdup": null, "auth_digest_md5_to_ascii": null, "auth_digest_sha256_to_ascii": null, "before_perform": null, "calloc": null, "cf_socket_get_host": null, "curl_free": null, "fileinfo_dtor": null, "free": null, "free_bundle_hash_entry": null, "freednsentry": null, "gsasl_free": null, "hash_element_dtor": null, "https_proxy_present": null, "init_completed": null, "malloc": null, "multissl_send_plain": null, "my_lock": null, "my_md5_init": "", "my_md5_update": null, "ossl_sha256sum": null, "sh_freeentry": null, "strdup": null, "trhash_dtor": null, "writeLong": null, "writeOffset": null, "writeString": null, "writeTime": null } }, "callsite": "*md5params->md5_init_func", "chain_summary": [ { "parent": "", "source_code": [ "struct MD5_context *Curl_MD5_init(const struct MD5_params *md5params)", "{", " struct MD5_context *ctxt;", " ...", " if((*md5params->md5_init_func)(ctxt->md5_hashctx)) {", " free(ctxt->md5_hashctx);", " free(ctxt);", " return NULL;", " }", " return ctxt;", "}" ] }, { "parent": "", "source_code": [ "/* Decode the challenge message */", "CURLcode result = auth_decode_digest_md5_message(chlg,", " nonce, sizeof(nonce),", " realm, sizeof(realm),", " algorithm,", " sizeof(algorithm),", " qop_options,", " sizeof(qop_options)) {", "if(result)", " return result;", "...", "ctxt = Curl_MD5_init(Curl_DIGEST_MD5);", "...", "}" ] }, { "parent": "", "source_code": [ "#define CURLX_FUNCTION_CAST(target_type, func) \\", " (target_type)(void (*) (void))(func)" ] }, { "parent": "", "source_code": [ "const struct MD5_params Curl_DIGEST_MD5[] = {", " {", " /* Digest initialization function */", " CURLX_FUNCTION_CAST(Curl_MD5_init_func, my_md5_init),", " /* Digest update function */", " CURLX_FUNCTION_CAST(Curl_MD5_update_func, my_md5_update),", " /* Digest computation end function */", " CURLX_FUNCTION_CAST(Curl_MD5_final_func, my_md5_final),", " /* Size of digest context struct */", " sizeof(my_md5_ctx),", " /* Result size */", " 16", " }", "};" ] } ], "type": "fnptr-cast" }
null
null
null
null
null
null
{ "callees": { "targets": { "Curl_init_CONNECT": null, "Curl_md5it": null, "Curl_sha256it": null, "Curl_strdup": null, "auth_digest_md5_to_ascii": null, "auth_digest_sha256_to_ascii": null, "before_perform": null, "calloc": null, "cf_socket_get_host": null, "curl_free": null, "fileinfo_dtor": null, "free": null, "free_bundle_hash_entry": null, "freednsentry": null, "gsasl_free": null, "hash_element_dtor": null, "https_proxy_present": null, "init_completed": null, "malloc": null, "multissl_send_plain": null, "my_lock": null, "my_md5_init": null, "my_md5_update": "", "ossl_sha256sum": null, "sh_freeentry": null, "strdup": null, "trhash_dtor": null, "writeLong": null, "writeOffset": null, "writeString": null, "writeTime": null } }, "callsite": "*context->md5_hash->md5_update_func", "chain_summary": [ { "parent": "", "source_code": [ "CURLcode Curl_MD5_update(struct MD5_context *context,", " const unsigned char *data,", " unsigned int len)", "{", " (*context->md5_hash->md5_update_func)(context->md5_hashctx, data, len);", " return CURLE_OK;", "}" ] }, { "parent": "", "source_code": [ "static CURLcode pop3_perform_apop(struct Curl_easy *data,", " struct connectdata *conn)", "{", " CURLcode result = CURLE_OK;", " ...", " /* Create the digest */", " ctxt = Curl_MD5_init(Curl_DIGEST_MD5);", " if(!ctxt)", " return CURLE_OUT_OF_MEMORY;", " Curl_MD5_update(ctxt, (const unsigned char *) pop3c->apoptimestamp,", " curlx_uztoui(strlen(pop3c->apoptimestamp)));", " ...", "}" ] }, { "parent": "", "source_code": [ "struct MD5_context *Curl_MD5_init(const struct MD5_params *md5params)", "{", " struct MD5_context *ctxt;", " /* Create MD5 context */", " ctxt = malloc(sizeof(*ctxt));", " ...", " ctxt->md5_hash = md5params;", " ...", " return ctxt;", "}" ] }, { "parent": "", "source_code": [ "const struct MD5_params Curl_DIGEST_MD5[] = {", " {", " /* Digest initialization function */", " CURLX_FUNCTION_CAST(Curl_MD5_init_func, my_md5_init),", " /* Digest update function */", " CURLX_FUNCTION_CAST(Curl_MD5_update_func, my_md5_update),", " /* Digest computation end function */", " CURLX_FUNCTION_CAST(Curl_MD5_final_func, my_md5_final),", " /* Size of digest context struct */", " sizeof(my_md5_ctx),", " /* Result size */", " 16", " }", "};" ] } ], "type": "fnptr-cast" }
null
null
null
null
null
null
{ "callees": { "targets": { "Curl_init_CONNECT": null, "Curl_md5it": null, "Curl_sha256it": null, "Curl_strdup": null, "auth_digest_md5_to_ascii": null, "auth_digest_sha256_to_ascii": null, "before_perform": null, "calloc": null, "cf_socket_get_host": "", "curl_free": null, "fileinfo_dtor": null, "free": null, "free_bundle_hash_entry": null, "freednsentry": null, "gsasl_free": null, "hash_element_dtor": null, "https_proxy_present": null, "init_completed": null, "malloc": null, "multissl_send_plain": null, "my_lock": null, "my_md5_init": null, "my_md5_update": null, "ossl_sha256sum": null, "sh_freeentry": null, "strdup": null, "trhash_dtor": null, "writeLong": null, "writeOffset": null, "writeString": null, "writeTime": null } }, "callsite": "cf->cft->get_host", "chain_summary": [ { "parent": "", "source_code": [ "void Curl_conn_get_host(struct Curl_easy *data, int sockindex,", " const char **phost, const char **pdisplay_host,", " int *pport)", "{", " struct Curl_cfilter *cf;", " DEBUGASSERT(data->conn);", " cf = data->conn->cfilter[sockindex];", " if(cf) {", " cf->cft->get_host(cf, data, phost, pdisplay_host, pport);", " }", " ...", "}" ] }, { "parent": "", "source_code": [ "struct Curl_cftype Curl_cft_tcp = {", " \"TCP\",", " CF_TYPE_IP_CONNECT,", " CURL_LOG_LVL_NONE,", " cf_socket_destroy,", " cf_tcp_connect,", " cf_socket_close,", " cf_socket_get_host,", " cf_socket_adjust_pollset,", " cf_socket_data_pending,", " cf_socket_send,", " cf_socket_recv,", " cf_socket_cntrl,", " cf_socket_conn_is_alive,", " Curl_cf_def_conn_keep_alive,", " cf_socket_query,", "};" ] }, { "parent": "", "source_code": [ "struct Curl_cftype {", " const char *name; /* name of the filter type */", " int flags; /* flags of filter type */", " int log_level; /* log level for such filters */", " Curl_cft_destroy_this *destroy; /* destroy resources of this cf */", " Curl_cft_connect *do_connect; /* establish connection */", " Curl_cft_close *do_close; /* close conn */", " Curl_cft_get_host *get_host; /* host filter talks to */", " Curl_cft_adjust_pollset *adjust_pollset; /* adjust transfer poll set */", " Curl_cft_data_pending *has_data_pending;/* conn has data pending */", " Curl_cft_send *do_send; /* send data */", " Curl_cft_recv *do_recv; /* receive data */", " Curl_cft_cntrl *cntrl; /* events/control */", " Curl_cft_conn_is_alive *is_alive; /* FALSE if conn is dead, Jim! */", " Curl_cft_conn_keep_alive *keep_alive; /* try to keep it alive */", " Curl_cft_query *query; /* query filter chain */", "};" ] }, { "parent": "", "source_code": [ "void Curl_conn_cf_add(struct Curl_easy *data,", " struct connectdata *conn,", " int index,", " struct Curl_cfilter *cf)", "{", " (void)data;", " DEBUGASSERT(conn);", " DEBUGASSERT(!cf->conn);", " DEBUGASSERT(!cf->next);", " cf->next = conn->cfilter[index];", " cf->conn = conn;", " cf->sockindex = index;", " conn->cfilter[index] = cf;", " CURL_TRC_CF(data, cf, \"added\");", "}" ] }, { "parent": "", "source_code": [ "CURLcode Curl_conn_tcp_listen_set(struct Curl_easy *data,", " struct connectdata *conn,", " int sockindex, curl_socket_t *s)", "{", " CURLcode result;", " struct Curl_cfilter *cf = NULL;", " struct cf_socket_ctx *ctx = NULL;", " /* replace any existing */", " Curl_conn_cf_discard_all(data, conn, sockindex);", " DEBUGASSERT(conn->sock[sockindex] == CURL_SOCKET_BAD);", " ctx = calloc(1, sizeof(*ctx));", " if(!ctx) {", " result = CURLE_OUT_OF_MEMORY;", " goto out;", " }", " ctx->transport = conn->transport;", " ctx->sock = *s;", " ctx->accepted = FALSE;", " result = Curl_cf_create(&cf, &Curl_cft_tcp_accept, ctx);", " if(result)", " goto out;", " Curl_conn_cf_add(data, conn, sockindex, cf);", " ...", "}" ] } ], "type": "fnptr-library" }
null
null
null
null
null
null
{ "callees": { "targets": { "Curl_init_CONNECT": null, "Curl_md5it": null, "Curl_sha256it": null, "Curl_strdup": null, "auth_digest_md5_to_ascii": null, "auth_digest_sha256_to_ascii": null, "before_perform": null, "calloc": null, "cf_socket_get_host": null, "curl_free": "", "fileinfo_dtor": "", "free": null, "free_bundle_hash_entry": "", "freednsentry": "", "gsasl_free": "", "hash_element_dtor": "", "https_proxy_present": null, "init_completed": null, "malloc": null, "multissl_send_plain": null, "my_lock": null, "my_md5_init": null, "my_md5_update": null, "ossl_sha256sum": null, "sh_freeentry": "", "strdup": null, "trhash_dtor": "", "writeLong": null, "writeOffset": null, "writeString": null, "writeTime": null } }, "callsite": "list->dtor", "chain_summary": [ { "parent": "", "source_code": [ "void", "Curl_llist_remove(struct Curl_llist *list, struct Curl_llist_element *e,", " void *user)", "{", " void *ptr;", " if(!e || list->size == 0)", " return;", " ...", " --list->size;", " /* call the dtor() last for when it actually frees the 'e' memory itself */", " if(list->dtor)", " list->dtor(user, ptr);", "}" ] }, { "parent": "", "source_code": [ "void Curl_bufref_set(struct bufref *br, const void *ptr, size_t len,", " void (*dtor)(void *))", "{", " DEBUGASSERT(ptr || !len);", " DEBUGASSERT(len <= CURL_MAX_INPUT_LENGTH);", " Curl_bufref_free(br);", " br->ptr = (const unsigned char *) ptr;", " br->len = len;", " br->dtor = dtor;", "}" ] }, { "parent": "", "source_code": [ "static CURLcode init_wc_data(struct Curl_easy *data)", "{", " ...", " wildcard->ftpwc = ftpwc; /* put it to the WildcardData tmp pointer */", " wildcard->dtor = wc_data_dtor;", " ...", "fail:", " if(ftpwc) {", " Curl_ftp_parselist_data_free(&ftpwc->parser);", " free(ftpwc);", " }", " Curl_safefree(wildcard->pattern);", " wildcard->dtor = ZERO_NULL;", " wildcard->ftpwc = NULL;", " return result;", "}" ] }, { "parent": "", "source_code": [ "#define ZERO_NULL 0" ] }, { "parent": "", "source_code": [ "void", "Curl_hash_init(struct Curl_hash *h,", " int slots,", " hash_function hfunc,", " comp_function comparator,", " Curl_hash_dtor dtor)", "{", " DEBUGASSERT(h);", " DEBUGASSERT(slots);", " DEBUGASSERT(hfunc);", " DEBUGASSERT(comparator);", " DEBUGASSERT(dtor);", " h->table = NULL;", " h->hash_func = hfunc;", " h->comp_func = comparator;", " h->dtor = dtor;", " h->size = 0;", " h->slots = slots;", "}" ] }, { "parent": "", "source_code": [ "void", "Curl_llist_init(struct Curl_llist *l, Curl_llist_dtor dtor)", "{", " l->size = 0;", " l->dtor = dtor;", " l->head = NULL;", " l->tail = NULL;", "}" ] }, { "parent": "", "source_code": [ "CURLcode Curl_wildcard_init(struct WildcardData *wc)", "{", " Curl_llist_init(&wc->filelist, fileinfo_dtor);", " wc->state = CURLWC_INIT;", " return CURLE_OK;", "}" ] }, { "parent": "", "source_code": [ "void *", "Curl_hash_add(struct Curl_hash *h, void *key, size_t key_len, void *p)", "{", " struct Curl_hash_element *he;", " struct Curl_llist_element *le;", " struct Curl_llist *l;", " DEBUGASSERT(h);", " DEBUGASSERT(h->slots);", " if(!h->table) {", " int i;", " h->table = malloc(h->slots * sizeof(struct Curl_llist));", " if(!h->table)", " return NULL; /* OOM */", " for(i = 0; i < h->slots; ++i)", " Curl_llist_init(&h->table[i], hash_element_dtor);", " }", " ...", "}" ] }, { "parent": "", "source_code": [ "int Curl_conncache_init(struct conncache *connc, int size)", "{", " /* allocate a new easy handle to use when closing cached connections */", " connc->closure_handle = curl_easy_init();", " if(!connc->closure_handle)", " return 1; /* bad */", " connc->closure_handle->state.internal = true;", " Curl_hash_init(&connc->hash, size, Curl_hash_str,", " Curl_str_key_compare, free_bundle_hash_entry);", " connc->closure_handle->state.conn_cache = connc;", " return 0; /* good */", "}" ] }, { "parent": "", "source_code": [ "void Curl_init_dnscache(struct Curl_hash *hash, int size)", "{", " Curl_hash_init(hash, size, Curl_hash_str, Curl_str_key_compare,", " freednsentry);", "}" ] }, { "parent": "", "source_code": [ "static struct Curl_sh_entry *sh_addentry(struct Curl_hash *sh,", " curl_socket_t s)", "{", " struct Curl_sh_entry *there = sh_getentry(sh, s);", " struct Curl_sh_entry *check;", " if(there) {", " /* it is present, return fine */", " return there;", " }", " /* not present, add it */", " check = calloc(1, sizeof(struct Curl_sh_entry));", " if(!check)", " return NULL; /* major failure */", " Curl_hash_init(&check->transfers, TRHASH_SIZE, trhash, trhash_compare,", " trhash_dtor);", " /* make/add new hash entry */", " if(!Curl_hash_add(sh, (char *)&s, sizeof(curl_socket_t), check)) {", " Curl_hash_destroy(&check->transfers);", " free(check);", " return NULL; /* major failure */", " }", " return check; /* things are good in sockhash land */", "}", "static void sh_init(struct Curl_hash *hash, int hashsize)", "{", " Curl_hash_init(hash, hashsize, hash_fd, fd_key_compare,", " sh_freeentry);", "}" ] }, { "parent": "", "source_code": [ "static CURLcode get_server_message(struct SASL *sasl, struct Curl_easy *data,", " struct bufref *out)", "{", " CURLcode result = CURLE_OK;", " result = sasl->params->getmessage(data, out);", " if(!result && (sasl->params->flags & SASL_FLAG_BASE64)) {", " unsigned char *msg;", " size_t msglen;", " const char *serverdata = (const char *) Curl_bufref_ptr(out);", " if(!*serverdata || *serverdata == '=')", " Curl_bufref_set(out, NULL, 0, NULL);", " else {", " result = Curl_base64_decode(serverdata, &msg, &msglen);", " if(!result)", " Curl_bufref_set(out, msg, msglen, curl_free);", " }", " }", " return result;", "}" ] }, { "parent": "", "source_code": [ "CURLcode Curl_auth_gsasl_token(struct Curl_easy *data,", " const struct bufref *chlg,", " struct gsasldata *gsasl,", " struct bufref *out)", "{", " int res;", " char *response;", " size_t outlen;", " res = gsasl_step(gsasl->client,", " (const char *) Curl_bufref_ptr(chlg), Curl_bufref_len(chlg),", " &response, &outlen);", " if(res != GSASL_OK && res != GSASL_NEEDS_MORE) {", " failf(data, \"GSASL step: %s\\n\", gsasl_strerror(res));", " return CURLE_BAD_CONTENT_ENCODING;", " }", " Curl_bufref_set(out, response, outlen, gsasl_free);", " return CURLE_OK;", "}" ] } ], "type": "fnptr-library" }
null
null
null
null
null
null
{ "callees": { "targets": { "Curl_init_CONNECT": null, "Curl_md5it": null, "Curl_sha256it": null, "Curl_strdup": null, "auth_digest_md5_to_ascii": null, "auth_digest_sha256_to_ascii": null, "before_perform": null, "calloc": "", "cf_socket_get_host": null, "curl_free": null, "fileinfo_dtor": null, "free": null, "free_bundle_hash_entry": null, "freednsentry": null, "gsasl_free": null, "hash_element_dtor": null, "https_proxy_present": null, "init_completed": null, "malloc": null, "multissl_send_plain": null, "my_lock": null, "my_md5_init": null, "my_md5_update": null, "ossl_sha256sum": null, "sh_freeentry": null, "strdup": null, "trhash_dtor": null, "writeLong": null, "writeOffset": null, "writeString": null, "writeTime": null } }, "callsite": "Curl_ccalloc", "chain_summary": [ { "parent": "", "source_code": [ "static const char *dsthost,", " enum alpnid srcalpnid,", " enum alpnid dstalpnid,", " unsigned int srcport,", " unsigned int dstport)", "{", " struct altsvc *as = calloc(1, sizeof(struct altsvc));", " size_t hlen;", " size_t dlen;", " if(!as)", " return NULL;", "}" ] }, { "parent": "", "source_code": [ "#define calloc(nbelem,size) Curl_ccalloc(nbelem, size)" ] }, { "parent": "", "source_code": [ "curl_calloc_callback Curl_ccalloc = (curl_calloc_callback)calloc;" ] }, { "parent": "", "source_code": [ "static CURLcode global_init(long flags, bool memoryfuncs)", "{", " if(initialized++)", " return CURLE_OK;", " if(memoryfuncs) {", " /* Setup the default memory functions here (again) */", " Curl_cmalloc = (curl_malloc_callback)malloc;", " Curl_cfree = (curl_free_callback)free;", " Curl_crealloc = (curl_realloc_callback)realloc;", " Curl_cstrdup = (curl_strdup_callback)system_strdup;", " Curl_ccalloc = (curl_calloc_callback)calloc;", " ...", " }", "}" ] } ], "type": "fnptr-only" }
null
null
null
null
null
null
{ "callees": { "targets": { "Curl_init_CONNECT": null, "Curl_md5it": null, "Curl_sha256it": null, "Curl_strdup": null, "auth_digest_md5_to_ascii": null, "auth_digest_sha256_to_ascii": null, "before_perform": null, "calloc": null, "cf_socket_get_host": null, "curl_free": null, "fileinfo_dtor": null, "free": "", "free_bundle_hash_entry": null, "freednsentry": null, "gsasl_free": null, "hash_element_dtor": null, "https_proxy_present": null, "init_completed": null, "malloc": null, "multissl_send_plain": null, "my_lock": null, "my_md5_init": null, "my_md5_update": null, "ossl_sha256sum": null, "sh_freeentry": null, "strdup": null, "trhash_dtor": null, "writeLong": null, "writeOffset": null, "writeString": null, "writeTime": null } }, "callsite": "Curl_cfree", "chain_summary": [ { "parent": "", "source_code": [ "struct Cookie *", "Curl_cookie_add(struct Curl_easy *data,", " struct CookieInfo *c,", " bool httpheader, /* TRUE if HTTP header-style line */", " bool noexpire, /* if TRUE, skip remove_expired() */", " const char *lineptr, /* first character of the line */", " const char *domain, /* default domain */", " const char *path, /* full path used when this cookie is set,", " used to get default path for the cookie", " unless set */", " bool secure) /* TRUE if connection is over secure origin */", "{", " ...", " if(lineptr[0]=='#') {", " /* don't even try the comments */", " free(co);", " return NULL;", " }", " ...", "}" ] }, { "parent": "", "source_code": [ "#define free(ptr) Curl_cfree(ptr)" ] } ], "type": "fnptr-only" }
null
null
null
null
null
null
{ "callees": { "targets": { "Curl_init_CONNECT": null, "Curl_md5it": null, "Curl_sha256it": null, "Curl_strdup": null, "auth_digest_md5_to_ascii": null, "auth_digest_sha256_to_ascii": null, "before_perform": null, "calloc": null, "cf_socket_get_host": null, "curl_free": null, "fileinfo_dtor": null, "free": "", "free_bundle_hash_entry": null, "freednsentry": null, "gsasl_free": null, "hash_element_dtor": null, "https_proxy_present": null, "init_completed": null, "malloc": null, "multissl_send_plain": null, "my_lock": null, "my_md5_init": null, "my_md5_update": null, "ossl_sha256sum": null, "sh_freeentry": null, "strdup": null, "trhash_dtor": null, "writeLong": null, "writeOffset": null, "writeString": null, "writeTime": null } }, "callsite": "Curl_cfree", "chain_summary": [ { "parent": "", "source_code": [ "CURLcode Curl_output_digest(struct Curl_easy *data,", " bool proxy,", " const unsigned char *request,", " const unsigned char *uripath)", "{", " CURLcode result;", " ...", " Curl_safefree(*allocuserpwd);", " /* not set means empty */", " if(!userp)", " userp = \"\";", " if(!passwdp)", " passwdp = \"\";", " ...", " return CURLE_OK;", "}" ] }, { "parent": "", "source_code": [ "#define Curl_safefree(ptr) \\", " do { free((ptr)); (ptr) = NULL;} while(0)" ] }, { "parent": "", "source_code": [ "#define free(ptr) Curl_cfree(ptr)" ] }, { "parent": "", "source_code": [ "curl_free_callback Curl_cfree = (curl_free_callback)free;" ] } ], "type": "fnptr-only" }
null
null
null
null
null
null
{ "callees": { "targets": { "Curl_init_CONNECT": null, "Curl_md5it": null, "Curl_sha256it": null, "Curl_strdup": null, "auth_digest_md5_to_ascii": null, "auth_digest_sha256_to_ascii": null, "before_perform": null, "calloc": null, "cf_socket_get_host": null, "curl_free": null, "fileinfo_dtor": null, "free": null, "free_bundle_hash_entry": null, "freednsentry": null, "gsasl_free": null, "hash_element_dtor": null, "https_proxy_present": null, "init_completed": null, "malloc": "", "multissl_send_plain": null, "my_lock": null, "my_md5_init": null, "my_md5_update": null, "ossl_sha256sum": null, "sh_freeentry": null, "strdup": null, "trhash_dtor": null, "writeLong": null, "writeOffset": null, "writeString": null, "writeTime": null } }, "callsite": "Curl_cfree", "chain_summary": [ { "parent": "", "source_code": [ "CURLcode Curl_smtp_escape_eob(struct Curl_easy *data,", " const ssize_t nread,", " const ssize_t offset)", "{", " ...", " /* Do we need to allocate a scratch buffer? */", " if(!scratch || data->set.crlf) {", " oldscratch = scratch;", " scratch = newscratch = malloc(2 * data->set.upload_buffer_size);", " if(!newscratch) {", " failf(data, \"Failed to alloc scratch buffer\");", " return CURLE_OUT_OF_MEMORY;", " }", " }", " DEBUGASSERT((size_t)data->set.upload_buffer_size >= (size_t)nread);", " ...", "}" ] }, { "parent": "", "source_code": [ "#define malloc(size) Curl_cmalloc(size)" ] } ], "type": "fnptr-only" }
null
null
null
null
null
null
{ "callees": { "targets": { "Curl_init_CONNECT": null, "Curl_md5it": null, "Curl_sha256it": null, "Curl_strdup": "", "auth_digest_md5_to_ascii": null, "auth_digest_sha256_to_ascii": null, "before_perform": null, "calloc": null, "cf_socket_get_host": null, "curl_free": null, "fileinfo_dtor": null, "free": null, "free_bundle_hash_entry": null, "freednsentry": null, "gsasl_free": null, "hash_element_dtor": null, "https_proxy_present": null, "init_completed": null, "malloc": null, "multissl_send_plain": null, "my_lock": null, "my_md5_init": null, "my_md5_update": null, "ossl_sha256sum": null, "sh_freeentry": null, "strdup": "", "trhash_dtor": null, "writeLong": null, "writeOffset": null, "writeString": null, "writeTime": null } }, "callsite": "strdup", "chain_summary": [ { "parent": "", "source_code": [ "struct Cookie *", "Curl_cookie_add(struct Curl_easy *data,", " struct CookieInfo *c,", " bool httpheader, /* TRUE if HTTP header-style line */", " bool noexpire, /* if TRUE, skip remove_expired() */", " const char *lineptr, /* first character of the line */", " const char *domain, /* default domain */", " const char *path, /* full path used when this cookie is set,", " used to get default path for the cookie", " unless set */", " bool secure) /* TRUE if connection is over secure origin */", "{", " ...", " for(ptr = firstptr, fields = 0; ptr && !badcookie;", " ptr = strtok_r(NULL, \"\\t\", &tok_buf), fields++) {", " switch(fields) {", " ...", " case 5:", " co->name = strdup(ptr);", " ...", " }", " }", "}" ] }, { "parent": "", "source_code": [ "#define strdup(ptr) Curl_cstrdup(ptr)" ] }, { "parent": "", "source_code": [ "curl_strdup_callback Curl_cstrdup = (curl_strdup_callback)system_strdup;" ] }, { "parent": "", "source_code": [ "#if defined(_WIN32_WCE)", "...", "#elif !defined(HAVE_STRDUP)", "#define system_strdup Curl_strdup", "#else", "...", "#endif" ] } ], "type": "fnptr-only" }
null
null
null
null
null
null
{ "callees": { "targets": { "Curl_init_CONNECT": null, "Curl_md5it": null, "Curl_sha256it": null, "Curl_strdup": null, "auth_digest_md5_to_ascii": null, "auth_digest_sha256_to_ascii": null, "before_perform": null, "calloc": null, "cf_socket_get_host": null, "curl_free": null, "fileinfo_dtor": null, "free": null, "free_bundle_hash_entry": null, "freednsentry": null, "gsasl_free": null, "hash_element_dtor": null, "https_proxy_present": null, "init_completed": null, "malloc": null, "multissl_send_plain": null, "my_lock": "", "my_md5_init": null, "my_md5_update": null, "ossl_sha256sum": null, "sh_freeentry": null, "strdup": null, "trhash_dtor": null, "writeLong": null, "writeOffset": null, "writeString": null, "writeTime": null } }, "callsite": "share->lockfunc", "chain_summary": [ { "parent": "", "source_code": [ "CURLSHcode", "curl_share_cleanup(struct Curl_share *share)", "{", " if(!GOOD_SHARE_HANDLE(share))", " return CURLSHE_INVALID;", " if(share->lockfunc)", " share->lockfunc(NULL, CURL_LOCK_DATA_SHARE, CURL_LOCK_ACCESS_SINGLE,", " share->clientdata);", " ...", "}" ] }, { "parent": "", "source_code": [ "int main(void)", "{", " CURLSH *share;", " int i;", " share = curl_share_init();", " curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_CONNECT);", " curl_share_setopt(share, CURLSHOPT_LOCKFUNC, my_lock);", " curl_share_setopt(share, CURLSHOPT_UNLOCKFUNC, my_unlock);", " /* Loop the transfer and cleanup the handle properly every lap. This will", " still reuse connections since the pool is in the shared object! */", " for(i = 0; i < 3; i++) {", " CURL *curl = curl_easy_init();", " if(curl) {", " CURLcode res;", " curl_easy_setopt(curl, CURLOPT_URL, \"https://curl.se/\");", " /* use the share object */", " curl_easy_setopt(curl, CURLOPT_SHARE, share);", " /* Perform the request, res will get the return code */", " res = curl_easy_perform(curl);", " /* Check for errors */", " if(res != CURLE_OK)", " fprintf(stderr, \"curl_easy_perform() failed: %s\\n\",", " curl_easy_strerror(res));", " /* always cleanup */", " curl_easy_cleanup(curl);", " }", " }", " curl_share_cleanup(share);", " return 0;", "}" ] }, { "parent": "", "source_code": [ "CURLSHcode curl_share_setopt(struct Curl_share *share, CURLSHoption option, ...)", "{", " va_list param;", " int type;", " curl_lock_function lockfunc;", " curl_unlock_function unlockfunc;", " void *ptr;", " CURLSHcode res = CURLSHE_OK;", " if(!GOOD_SHARE_HANDLE(share))", " return CURLSHE_INVALID;", " if(share->dirty)", " /* don't allow setting options while one or more handles are already", " using this share */", " return CURLSHE_IN_USE;", " va_start(param, option);", " switch(option) {", " case CURLSHOPT_SHARE:", " /* this is a type this share will share */", " type = va_arg(param, int);", " switch(type) {", " case CURL_LOCK_DATA_DNS:", " break;", " ...", " }", " ...", " case CURLSHOPT_LOCKFUNC:", " lockfunc = va_arg(param, curl_lock_function);", " share->lockfunc = lockfunc;", " break;", " case CURLSHOPT_UNLOCKFUNC:", " unlockfunc = va_arg(param, curl_unlock_function);", " share->unlockfunc = unlockfunc;", " break;", " case CURLSHOPT_USERDATA:", " ptr = va_arg(param, void *);", " share->clientdata = ptr;", " break;", " default:", " res = CURLSHE_BAD_OPTION;", " break;", " }", " va_end(param);", " return res;", "}" ] } ], "type": "fnptr-varargs" }
null
null
null
null
null
null
{ "callees": { "targets": { "Curl_init_CONNECT": null, "Curl_md5it": null, "Curl_sha256it": null, "Curl_strdup": null, "auth_digest_md5_to_ascii": null, "auth_digest_sha256_to_ascii": null, "before_perform": null, "calloc": null, "cf_socket_get_host": null, "curl_free": null, "fileinfo_dtor": null, "free": null, "free_bundle_hash_entry": null, "freednsentry": null, "gsasl_free": null, "hash_element_dtor": null, "https_proxy_present": null, "init_completed": null, "malloc": null, "multissl_send_plain": null, "my_lock": null, "my_md5_init": null, "my_md5_update": null, "ossl_sha256sum": "", "sh_freeentry": null, "strdup": null, "trhash_dtor": null, "writeLong": null, "writeOffset": null, "writeString": null, "writeTime": null } }, "callsite": "Curl_ssl->sha256sum", "chain_summary": [ { "parent": "", "source_code": [ "CURLcode Curl_pin_peer_pubkey(struct Curl_easy *data,", " const char *pinnedpubkey,", " const unsigned char *pubkey, size_t pubkeylen)", "{", "...", "/* compute sha256sum of public key */", " sha256sumdigest = malloc(CURL_SHA256_DIGEST_LENGTH);", " if(!sha256sumdigest)", " return CURLE_OUT_OF_MEMORY;", " encode = Curl_ssl->sha256sum(pubkey, pubkeylen,", " sha256sumdigest, CURL_SHA256_DIGEST_LENGTH);", "...", "}" ] }, { "parent": "", "source_code": [ "const struct Curl_ssl *Curl_ssl =", "#if defined(CURL_WITH_MULTI_SSL)", " &Curl_ssl_multi;", "#elif defined(USE_WOLFSSL)", " &Curl_ssl_wolfssl;", "#elif defined(USE_SECTRANSP)", " &Curl_ssl_sectransp;", "#elif defined(USE_GNUTLS)", " &Curl_ssl_gnutls;", "#elif defined(USE_MBEDTLS)", " &Curl_ssl_mbedtls;", "#elif defined(USE_RUSTLS)", " &Curl_ssl_rustls;", "#elif defined(USE_OPENSSL)", " &Curl_ssl_openssl;", "#elif defined(USE_SCHANNEL)", " &Curl_ssl_schannel;", "#elif defined(USE_BEARSSL)", " &Curl_ssl_bearssl;", "#else", "#error \"Missing struct Curl_ssl for selected SSL backend\"", "#endif" ] }, { "parent": "", "source_code": [ "const struct Curl_ssl Curl_ssl_openssl = {", " { CURLSSLBACKEND_OPENSSL, \"openssl\" }, /* info */", "...", " ossl_get_internals, /* get_internals */", " ossl_close, /* close_one */", " ossl_close_all, /* close_all */", " ossl_session_free, /* session_free */", " ossl_set_engine, /* set_engine */", " ossl_set_engine_default, /* set_engine_default */", " ossl_engines_list, /* engines_list */", " Curl_none_false_start, /* false_start */", "#if (OPENSSL_VERSION_NUMBER >= 0x0090800fL) && !defined(OPENSSL_NO_SHA256)", " ossl_sha256sum, /* sha256sum */", "#else", " NULL, /* sha256sum */", "#endif", " NULL, /* use of data in this connection */", "...", "};" ] } ], "type": "fnptr-global-struct" }
null
null
null
null
null
null
{ "callees": { "targets": { "Curl_init_CONNECT": null, "Curl_md5it": null, "Curl_sha256it": null, "Curl_strdup": null, "auth_digest_md5_to_ascii": null, "auth_digest_sha256_to_ascii": null, "before_perform": null, "calloc": null, "cf_socket_get_host": null, "curl_free": null, "fileinfo_dtor": null, "free": null, "free_bundle_hash_entry": null, "freednsentry": null, "gsasl_free": null, "hash_element_dtor": null, "https_proxy_present": null, "init_completed": null, "malloc": null, "multissl_send_plain": "", "my_lock": null, "my_md5_init": null, "my_md5_update": null, "ossl_sha256sum": null, "sh_freeentry": null, "strdup": null, "trhash_dtor": null, "writeLong": null, "writeOffset": null, "writeString": null, "writeTime": null } }, "callsite": "Curl_ssl->send_plain", "chain_summary": [ { "parent": "", "source_code": [ "static ssize_t multissl_send_plain(struct Curl_cfilter *cf,", " struct Curl_easy *data,", " const void *mem, size_t len,", " CURLcode *code)", "{", " if(multissl_setup(NULL))", " return CURLE_FAILED_INIT;", " return Curl_ssl->send_plain(cf, data, mem, len, code);", "}" ] }, { "parent": "", "source_code": [ "static const struct Curl_ssl Curl_ssl_multi = {", " { CURLSSLBACKEND_NONE, \"multi\" }, /* info */", " 0, /* supports nothing */", " (size_t)-1, /* something insanely large to be on the safe side */", " multissl_init, /* init */", " Curl_none_cleanup, /* cleanup */", " multissl_version, /* version */", " Curl_none_check_cxn, /* check_cxn */", " Curl_none_shutdown, /* shutdown */", " Curl_none_data_pending, /* data_pending */", " Curl_none_random, /* random */", " Curl_none_cert_status_request, /* cert_status_request */", " multissl_connect, /* connect */", " multissl_connect_nonblocking, /* connect_nonblocking */", " multissl_adjust_pollset, /* adjust_pollset */", " multissl_get_internals, /* get_internals */", " multissl_close, /* close_one */", " Curl_none_close_all, /* close_all */", " Curl_none_session_free, /* session_free */", " Curl_none_set_engine, /* set_engine */", " Curl_none_set_engine_default, /* set_engine_default */", " Curl_none_engines_list, /* engines_list */", " Curl_none_false_start, /* false_start */", " NULL, /* sha256sum */", " NULL, /* associate_connection */", " NULL, /* disassociate_connection */", " NULL, /* free_multi_ssl_backend_data */", " multissl_recv_plain, /* recv decrypted data */", " multissl_send_plain, /* send data to encrypt */", "};", "const struct Curl_ssl *Curl_ssl =", "#if defined(CURL_WITH_MULTI_SSL)", " &Curl_ssl_multi;", "#elif defined(USE_WOLFSSL)", " &Curl_ssl_wolfssl;", "#elif defined(USE_SECTRANSP)", " &Curl_ssl_sectransp;", "#elif defined(USE_GNUTLS)", " &Curl_ssl_gnutls;", "#elif defined(USE_MBEDTLS)", " &Curl_ssl_mbedtls;", "#elif defined(USE_RUSTLS)", " &Curl_ssl_rustls;", "#elif defined(USE_OPENSSL)", " &Curl_ssl_openssl;", "#elif defined(USE_SCHANNEL)", " &Curl_ssl_schannel;", "#elif defined(USE_BEARSSL)", " &Curl_ssl_bearssl;", "#else", "#error \"Missing struct Curl_ssl for selected SSL backend\"", "#endif" ] }, { "parent": "", "source_code": [ "struct Curl_ssl {", " /*", " * This *must* be the first entry to allow returning the list of available", " * backends in curl_global_sslset().", " */", " curl_ssl_backend info;", " unsigned int supports; /* bitfield, see above */", " size_t sizeof_ssl_backend_data;", " int (*init)(void);", " void (*cleanup)(void);", " size_t (*version)(char *buffer, size_t size);", " int (*check_cxn)(struct Curl_cfilter *cf, struct Curl_easy *data);", " int (*shut_down)(struct Curl_cfilter *cf,", " struct Curl_easy *data);", " bool (*data_pending)(struct Curl_cfilter *cf,", " const struct Curl_easy *data);", " /* return 0 if a find random is filled in */", " CURLcode (*random)(struct Curl_easy *data, unsigned char *entropy,", " size_t length);", " bool (*cert_status_request)(void);", " CURLcode (*connect_blocking)(struct Curl_cfilter *cf,", " struct Curl_easy *data);", " CURLcode (*connect_nonblocking)(struct Curl_cfilter *cf,", " struct Curl_easy *data,", " bool *done);", " /* During handshake, adjust the pollset to include the socket", " * for POLLOUT or POLLIN as needed.", " * Mandatory. */", " void (*adjust_pollset)(struct Curl_cfilter *cf, struct Curl_easy *data,", " struct easy_pollset *ps);", " void *(*get_internals)(struct ssl_connect_data *connssl, CURLINFO info);", " void (*close)(struct Curl_cfilter *cf, struct Curl_easy *data);", " void (*close_all)(struct Curl_easy *data);", " void (*session_free)(void *ptr);", " CURLcode (*set_engine)(struct Curl_easy *data, const char *engine);", " CURLcode (*set_engine_default)(struct Curl_easy *data);", " struct curl_slist *(*engines_list)(struct Curl_easy *data);", " bool (*false_start)(void);", " CURLcode (*sha256sum)(const unsigned char *input, size_t inputlen,", " unsigned char *sha256sum, size_t sha256sumlen);", " bool (*attach_data)(struct Curl_cfilter *cf, struct Curl_easy *data);", " void (*detach_data)(struct Curl_cfilter *cf, struct Curl_easy *data);", " void (*free_multi_ssl_backend_data)(struct multi_ssl_backend_data *mbackend);", " ssize_t (*recv_plain)(struct Curl_cfilter *cf, struct Curl_easy *data,", " char *buf, size_t len, CURLcode *code);", " ssize_t (*send_plain)(struct Curl_cfilter *cf, struct Curl_easy *data,", " const void *mem, size_t len, CURLcode *code);", "};" ] } ], "type": "fnptr-global-struct" }
null
null
null
null
null
null
{ "callees": { "targets": { "Curl_init_CONNECT": null, "Curl_md5it": null, "Curl_sha256it": null, "Curl_strdup": null, "auth_digest_md5_to_ascii": null, "auth_digest_sha256_to_ascii": null, "before_perform": null, "calloc": null, "cf_socket_get_host": null, "curl_free": null, "fileinfo_dtor": null, "free": null, "free_bundle_hash_entry": null, "freednsentry": null, "gsasl_free": null, "hash_element_dtor": null, "https_proxy_present": "", "init_completed": null, "malloc": null, "multissl_send_plain": null, "my_lock": null, "my_md5_init": null, "my_md5_update": null, "ossl_sha256sum": null, "sh_freeentry": null, "strdup": null, "trhash_dtor": null, "writeLong": null, "writeOffset": null, "writeString": null, "writeTime": null } }, "callsite": "p->present", "chain_summary": [ { "parent": "", "source_code": [ "curl_version_info_data *curl_version_info(CURLversion stamp)", "{", " size_t n;", " const struct feat *p;", " int features = 0;", " ...", " n = 0;", " for(p = features_table; p->name; p++)", " if(!p->present || p->present(&version_info)) {", " features |= p->bitmask;", " feature_names[n++] = p->name;", " }", " feature_names[n] = NULL; /* Terminate array. */", " version_info.features = features;", " return &version_info;", "}" ] }, { "parent": "", "source_code": [ "#define FEATURE(name, present, bitmask) {(name), (present), (bitmask)}", "struct feat {", " const char *name;", " int (*present)(curl_version_info_data *info);", " int bitmask;", "};", "static const struct feat features_table[] = {", "#ifndef CURL_DISABLE_ALTSVC", " FEATURE(\"alt-svc\", NULL, CURL_VERSION_ALTSVC),", "#endif", "...", "#if defined(USE_SSL) && !defined(CURL_DISABLE_PROXY) && \\", " !defined(CURL_DISABLE_HTTP)", " FEATURE(\"HTTPS-proxy\", https_proxy_present, CURL_VERSION_HTTPS_PROXY),", "#endif", "...", "}" ] } ], "type": "fnptr-global-struct-array" }
null
null
null
null
null
null
{ "callees": { "targets": { "Curl_init_CONNECT": null, "Curl_md5it": null, "Curl_sha256it": null, "Curl_strdup": null, "auth_digest_md5_to_ascii": null, "auth_digest_sha256_to_ascii": null, "before_perform": null, "calloc": null, "cf_socket_get_host": null, "curl_free": null, "fileinfo_dtor": null, "free": null, "free_bundle_hash_entry": null, "freednsentry": null, "gsasl_free": null, "hash_element_dtor": null, "https_proxy_present": null, "init_completed": null, "malloc": null, "multissl_send_plain": null, "my_lock": null, "my_md5_init": null, "my_md5_update": null, "ossl_sha256sum": null, "sh_freeentry": null, "strdup": null, "trhash_dtor": null, "writeLong": "", "writeOffset": "", "writeString": "", "writeTime": "" } }, "callsite": "mappings[i].writefunc", "chain_summary": [ { "parent": "", "source_code": [ "void ourWriteOutJSON(FILE *stream, const struct writeoutvar mappings[],", " struct per_transfer *per, CURLcode per_result)", "{", " int i;", " fputs(\"{\", stream);", " for(i = 0; mappings[i].name != NULL; i++) {", " if(mappings[i].writefunc &&", " mappings[i].writefunc(stream, &mappings[i], per, per_result, true))", " fputs(\",\", stream);", " }", " /* The variables are sorted in alphabetical order but as a special case", " curl_version (which is not actually a --write-out variable) is last. */", " fprintf(stream, \"\\\"curl_version\\\":\");", " jsonWriteString(stream, curl_version(), FALSE);", " fprintf(stream, \"}\");", "}" ] }, { "parent": "", "source_code": [ "void ourWriteOut(struct OperationConfig *config, struct per_transfer *per,", " CURLcode per_result)", "{", " FILE *stream = stdout;", " const char *writeinfo = config->writeout;", " const char *ptr = writeinfo;", " bool done = FALSE;", " struct curl_certinfo *certinfo;", " CURLcode res = curl_easy_getinfo(per->curl, CURLINFO_CERTINFO, &certinfo);", " bool fclose_stream = FALSE;", " ...", " case VAR_JSON:", " ourWriteOutJSON(stream, variables, per, per_result);", " break;", " ...", "}" ] }, { "parent": "", "source_code": [ "static const struct writeoutvar variables[] = {", "{\"certs\", VAR_CERT, CURLINFO_NONE, writeString},", " ...", " {\"onerror\", VAR_ONERROR, CURLINFO_NONE, NULL},", " {\"proxy_ssl_verify_result\", VAR_PROXY_SSL_VERIFY_RESULT,", " CURLINFO_PROXY_SSL_VERIFYRESULT, writeLong},", " ...", " {\"scheme\", VAR_SCHEME, CURLINFO_SCHEME, writeString},", " {\"size_download\", VAR_SIZE_DOWNLOAD, CURLINFO_SIZE_DOWNLOAD_T, writeOffset},", " ...", " {\"time_connect\", VAR_CONNECT_TIME, CURLINFO_CONNECT_TIME_T, writeTime},", " {\"time_namelookup\", VAR_NAMELOOKUP_TIME, CURLINFO_NAMELOOKUP_TIME_T,", " writeTime},", " {\"time_total\", VAR_TOTAL_TIME, CURLINFO_TOTAL_TIME_T, writeTime},", " {\"url\", VAR_INPUT_URL, CURLINFO_NONE, writeString},", " {\"url.scheme\", VAR_INPUT_URLSCHEME, CURLINFO_NONE, writeString},", " {\"url.user\", VAR_INPUT_URLUSER, CURLINFO_NONE, writeString},", " {\"url.password\", VAR_INPUT_URLPASSWORD, CURLINFO_NONE, writeString},", " ...", "};" ] } ], "type": "fnptr-global-struct-array" }
null
null
null
null
null
null
{ "callees": { "targets": { "Curl_init_CONNECT": null, "Curl_md5it": null, "Curl_sha256it": null, "Curl_strdup": null, "auth_digest_md5_to_ascii": "", "auth_digest_sha256_to_ascii": "", "before_perform": null, "calloc": null, "cf_socket_get_host": null, "curl_free": null, "fileinfo_dtor": null, "free": null, "free_bundle_hash_entry": null, "freednsentry": null, "gsasl_free": null, "hash_element_dtor": null, "https_proxy_present": null, "init_completed": null, "malloc": null, "multissl_send_plain": null, "my_lock": null, "my_md5_init": null, "my_md5_update": null, "ossl_sha256sum": null, "sh_freeentry": null, "strdup": null, "trhash_dtor": null, "writeLong": null, "writeOffset": null, "writeString": null, "writeTime": null } }, "callsite": "convert_to_ascii", "chain_summary": [ { "parent": "", "source_code": [ "static CURLcode auth_create_digest_http_message(", " struct Curl_easy *data,", " const char *userp,", " const char *passwdp,", " const unsigned char *request,", " const unsigned char *uripath,", " struct digestdata *digest,", " char **outptr, size_t *outlen,", " void (*convert_to_ascii)(unsigned char *, unsigned char *),", " CURLcode (*hash)(unsigned char *, const unsigned char *,", " const size_t))", "{", " if(digest->userhash) {", " hashthis = aprintf(\"%s:%s\", userp, digest->realm ? digest->realm : \"\");", " if(!hashthis)", " return CURLE_OUT_OF_MEMORY;", " hash(hashbuf, (unsigned char *) hashthis, strlen(hashthis));", " free(hashthis);", " convert_to_ascii(hashbuf, (unsigned char *)userh);", " }", "}" ] }, { "parent": "", "source_code": [ "CURLcode Curl_auth_create_digest_http_message(struct Curl_easy *data,", " const char *userp,", " const char *passwdp,", " const unsigned char *request,", " const unsigned char *uripath,", " struct digestdata *digest,", " char **outptr, size_t *outlen)", "{", " if(digest->algo <= ALGO_MD5SESS)", " return auth_create_digest_http_message(data, userp, passwdp,", " request, uripath, digest,", " outptr, outlen,", " auth_digest_md5_to_ascii,", " Curl_md5it);", " DEBUGASSERT(digest->algo <= ALGO_SHA512_256SESS);", " return auth_create_digest_http_message(data, userp, passwdp,", " request, uripath, digest,", " outptr, outlen,", " auth_digest_sha256_to_ascii,", " Curl_sha256it);", "}" ] } ], "type": "fnptr-callback" }
null
null
null
null
null
null
{ "callees": { "targets": { "Curl_init_CONNECT": null, "Curl_md5it": "", "Curl_sha256it": "", "Curl_strdup": null, "auth_digest_md5_to_ascii": null, "auth_digest_sha256_to_ascii": null, "before_perform": null, "calloc": null, "cf_socket_get_host": null, "curl_free": null, "fileinfo_dtor": null, "free": null, "free_bundle_hash_entry": null, "freednsentry": null, "gsasl_free": null, "hash_element_dtor": null, "https_proxy_present": null, "init_completed": null, "malloc": null, "multissl_send_plain": null, "my_lock": null, "my_md5_init": null, "my_md5_update": null, "ossl_sha256sum": null, "sh_freeentry": null, "strdup": null, "trhash_dtor": null, "writeLong": null, "writeOffset": null, "writeString": null, "writeTime": null } }, "callsite": "hash", "chain_summary": [ { "parent": "", "source_code": [ "static CURLcode auth_create_digest_http_message(", " struct Curl_easy *data,", " const char *userp,", " const char *passwdp,", " const unsigned char *request,", " const unsigned char *uripath,", " struct digestdata *digest,", " char **outptr, size_t *outlen,", " void (*convert_to_ascii)(unsigned char *, unsigned char *),", " CURLcode (*hash)(unsigned char *, const unsigned char *,", " const size_t))", "{", " ...", " if(!hashthis)", " return CURLE_OUT_OF_MEMORY;", " hash(hashbuf, (unsigned char *) hashthis, strlen(hashthis));", " ...", "}" ] }, { "parent": "", "source_code": [ "CURLcode Curl_auth_create_digest_http_message(struct Curl_easy *data,", " const char *userp,", " const char *passwdp,", " const unsigned char *request,", " const unsigned char *uripath,", " struct digestdata *digest,", " char **outptr, size_t *outlen)", "{", " if(digest->algo <= ALGO_MD5SESS)", " return auth_create_digest_http_message(data, userp, passwdp,", " request, uripath, digest,", " outptr, outlen,", " auth_digest_md5_to_ascii,", " Curl_md5it);", " DEBUGASSERT(digest->algo <= ALGO_SHA512_256SESS);", " return auth_create_digest_http_message(data, userp, passwdp,", " request, uripath, digest,", " outptr, outlen,", " auth_digest_sha256_to_ascii,", " Curl_sha256it);", "}" ] } ], "type": "fnptr-callback" }
null
null
null
null
null
null
null
{ "callees": { "targets": { "NULL": null, "RedisModule_OnLoad": null, "_quicklistSaver": null, "activeDefragAlloc": null, "addReplyCommandDocs": null, "addReplyCommandInfo": null, "auxHumanNodenameSetter": null, "auxShardIdSetter": null, "auxTcpPortSetter": null, "auxTlsPortSetter": null, "connSocketSetWriteHandler": null, "connTLSRead": null, "connTLSSetWriteHandler": null, "connUnixSetWriteHandler": null, "createDoubleObject": null, "default_junk_alloc": null, "defragStreamConsumer": null, "defragStreamConsumerGroup": null, "defragStreamConsumerPendingEntry": null, "getClientPubSubChannels": null, "listPopSaver": null, "luaEngineMemoryOverhead": null, "nstime_update_impl": "", "redisNetRead": null, "sortCompare": null, "sort_gp_asc": null, "sort_gp_desc": null, "tcache_bin_flush_ptr_getter": null, "zmalloc_default_oom": null, "zrangeResultFinalizeClient": null, "zrangeResultFinalizeStore": null } }, "callsite": "nstime_update", "chain_summary": [ { "parent": "", "source_code": [ "static void", "hpa_hooks_curtime(nstime_t *r_nstime, bool first_reading) {", "\tif (first_reading) {", "\t\tnstime_init_zero(r_nstime);", "\t}", "\tnstime_update(r_nstime);", "}" ] }, { "parent": "", "source_code": [ "typedef void (nstime_update_t)(nstime_t *);", "extern nstime_update_t *JET_MUTABLE nstime_update;", "nstime_update_t *JET_MUTABLE nstime_update = nstime_update_impl;" ] }, { "parent": "", "source_code": [ "/* Various function pointers are static and immutable except during testing. */", "#ifdef JEMALLOC_JET", "# define JET_MUTABLE", "#else", "# define JET_MUTABLE const", "#endif" ] } ], "type": "fnptr-cast" }
null
null
null
null
null
null
{ "callees": { "targets": { "NULL": null, "RedisModule_OnLoad": null, "_quicklistSaver": null, "activeDefragAlloc": null, "addReplyCommandDocs": null, "addReplyCommandInfo": null, "auxHumanNodenameSetter": null, "auxShardIdSetter": null, "auxTcpPortSetter": null, "auxTlsPortSetter": null, "connSocketSetWriteHandler": null, "connTLSRead": null, "connTLSSetWriteHandler": null, "connUnixSetWriteHandler": null, "createDoubleObject": null, "default_junk_alloc": null, "defragStreamConsumer": null, "defragStreamConsumerGroup": null, "defragStreamConsumerPendingEntry": null, "getClientPubSubChannels": null, "listPopSaver": null, "luaEngineMemoryOverhead": null, "nstime_update_impl": null, "redisNetRead": "", "sortCompare": null, "sort_gp_asc": null, "sort_gp_desc": null, "tcache_bin_flush_ptr_getter": null, "zmalloc_default_oom": null, "zrangeResultFinalizeClient": null, "zrangeResultFinalizeStore": null } }, "callsite": "c->funcs->read", "chain_summary": [ { "parent": "", "source_code": [ "/* Read raw bytes through a redisContext. The read operation is not greedy", " * and may not fill the buffer entirely.", " */", "static ssize_t readConn(redisContext *c, char *buf, size_t len)", "{", " return c->funcs->read(c, buf, len);", "}" ] }, { "parent": "", "source_code": [ "static redisContext *context;" ] }, { "parent": "", "source_code": [ "static int cliConnect(int flags) {", " if (context == NULL || flags & CC_FORCE) {", " if (context != NULL) {", " redisFree(context);", " config.dbnum = 0;", " config.in_multi = 0;", " config.pubsub_mode = 0;", " cliRefreshPrompt();", " }", " /* Do not use hostsocket when we got redirected in cluster mode */", " if (config.hostsocket == NULL ||", " (config.cluster_mode && config.cluster_reissue_command)) {", " context = redisConnect(config.conn_info.hostip,config.conn_info.hostport);", " } else {", " context = redisConnectUnix(config.hostsocket);", " }", " }", "}" ] }, { "parent": "", "source_code": [ "/* Connect to a Redis instance. On error the field error in the returned", " * context will be set to the return value of the error function.", " * When no set of reply functions is given, the default set will be used. */", "redisContext *redisConnect(const char *ip, int port) {", " redisOptions options = {0};", " REDIS_OPTIONS_SET_TCP(&options, ip, port);", " return redisConnectWithOptions(&options);", "}" ] }, { "parent": "", "source_code": [ "redisContext *redisConnectWithOptions(const redisOptions *options) {", " redisContext *c = redisContextInit();", " if (c == NULL) {", " return NULL;", " }", "}" ] }, { "parent": "", "source_code": [ "static redisContext *redisContextInit(void) {", " redisContext *c;", " c = hi_calloc(1, sizeof(*c));", " if (c == NULL)", " return NULL;", " c->funcs = &redisContextDefaultFuncs;", " c->obuf = hi_sdsempty();", " c->reader = redisReaderCreate();", " c->fd = REDIS_INVALID_FD;", " if (c->obuf == NULL || c->reader == NULL) {", " redisFree(c);", " return NULL;", " }", " return c;", "}" ] }, { "parent": "", "source_code": [ "static redisContextFuncs redisContextDefaultFuncs = {", " .close = redisNetClose,", " .free_privctx = NULL,", " .async_read = redisAsyncRead,", " .async_write = redisAsyncWrite,", " .read = redisNetRead,", " .write = redisNetWrite", "};" ] } ], "type": "fnptr-library" }
null
null
null
null
null
null
{ "callees": { "targets": { "NULL": "", "RedisModule_OnLoad": null, "_quicklistSaver": null, "activeDefragAlloc": null, "addReplyCommandDocs": null, "addReplyCommandInfo": null, "auxHumanNodenameSetter": null, "auxShardIdSetter": null, "auxTcpPortSetter": null, "auxTlsPortSetter": null, "connSocketSetWriteHandler": null, "connTLSRead": null, "connTLSSetWriteHandler": null, "connUnixSetWriteHandler": null, "createDoubleObject": null, "default_junk_alloc": null, "defragStreamConsumer": null, "defragStreamConsumerGroup": null, "defragStreamConsumerPendingEntry": null, "getClientPubSubChannels": null, "listPopSaver": null, "luaEngineMemoryOverhead": null, "nstime_update_impl": null, "redisNetRead": null, "sortCompare": null, "sort_gp_asc": null, "sort_gp_desc": null, "tcache_bin_flush_ptr_getter": null, "zmalloc_default_oom": null, "zrangeResultFinalizeClient": null, "zrangeResultFinalizeStore": null } }, "callsite": "mt->mem_usage2", "chain_summary": [ { "parent": "", "source_code": [ "size_t moduleGetMemUsage(robj *key, robj *val, size_t sample_size, int dbid) {", " moduleValue *mv = val->ptr;", " moduleType *mt = mv->type;", " size_t size = 0;", " /* We prefer to use the enhanced version. */", " if (mt->mem_usage2 != NULL) {", " RedisModuleKeyOptCtx ctx = {key, NULL, dbid, -1};", " size = mt->mem_usage2(&ctx, mv->value, sample_size);", " } else if (mt->mem_usage != NULL) {", " size = mt->mem_usage(mv->value);", " } ", " return size;", "}" ] }, { "parent": "", "source_code": [ "size_t objectComputeSize(robj *key, robj *o, size_t sample_size, int dbid) {", " sds ele, ele2;", " dict *d;", " dictIterator *di;", " struct dictEntry *de;", " size_t asize = 0, elesize = 0, samples = 0;", " if (o->type == OBJ_STRING) {", " ...", " } else if (o->type == OBJ_HASH) {", " ...", " } else if (o->type == OBJ_STREAM) {", " ...", " } else if (o->type == OBJ_MODULE) {", " asize = moduleGetMemUsage(key, o, sample_size, dbid);", " } else {", " serverPanic(\"Unknown object type\");", " }", " return asize;", "}" ] }, { "parent": "", "source_code": [ "void memoryCommand(client *c) {", " if (!strcasecmp(c->argv[1]->ptr,\"help\") && c->argc == 2) {", " ...", " } else if (!strcasecmp(c->argv[1]->ptr,\"usage\") && c->argc >= 3) {", " dictEntry *de;", " ...", " size_t usage = objectComputeSize(c->argv[2],dictGetVal(de),samples,c->db->id);", " usage += sdsZmallocSize(dictGetKey(de));", " usage += dictEntryMemUsage();", " usage += dictMetadataSize(c->db->dict);", " addReplyLongLong(c,usage);", " } else if (!strcasecmp(c->argv[1]->ptr,\"stats\") && c->argc == 2) {", " ...", " }", "}" ] } ], "type": "fnptr-library" }
null
null
null
null
null
null
{ "callees": { "targets": { "NULL": null, "RedisModule_OnLoad": null, "_quicklistSaver": null, "activeDefragAlloc": null, "addReplyCommandDocs": null, "addReplyCommandInfo": null, "auxHumanNodenameSetter": null, "auxShardIdSetter": null, "auxTcpPortSetter": null, "auxTlsPortSetter": null, "connSocketSetWriteHandler": "", "connTLSRead": null, "connTLSSetWriteHandler": "", "connUnixSetWriteHandler": "", "createDoubleObject": null, "default_junk_alloc": null, "defragStreamConsumer": null, "defragStreamConsumerGroup": null, "defragStreamConsumerPendingEntry": null, "getClientPubSubChannels": null, "listPopSaver": null, "luaEngineMemoryOverhead": null, "nstime_update_impl": null, "redisNetRead": null, "sortCompare": null, "sort_gp_asc": null, "sort_gp_desc": null, "tcache_bin_flush_ptr_getter": null, "zmalloc_default_oom": null, "zrangeResultFinalizeClient": null, "zrangeResultFinalizeStore": null } }, "callsite": "conn->type->set_write_handler", "chain_summary": [ { "parent": "", "source_code": [ "static inline int connSetWriteHandlerWithBarrier(connection *conn, ConnectionCallbackFunc func, int barrier) {", " return conn->type->set_write_handler(conn, func, barrier);", "}" ] }, { "parent": "", "source_code": [ "static ConnectionType CT_Socket = {", " ...", " .write = connSocketWrite,", " .writev = connSocketWritev,", " .read = connSocketRead,", " .set_write_handler = connSocketSetWriteHandler,", " .set_read_handler = connSocketSetReadHandler,", " .get_last_error = connSocketGetLastError,", " .sync_write = connSocketSyncWrite,", " .sync_read = connSocketSyncRead,", " .sync_readline = connSocketSyncReadLine,", " ...", "};" ] }, { "parent": "", "source_code": [ "static ConnectionType CT_TLS = {", " ...", " .read = connTLSRead,", " .write = connTLSWrite,", " .writev = connTLSWritev,", " .set_write_handler = connTLSSetWriteHandler,", " .set_read_handler = connTLSSetReadHandler,", " .get_last_error = connTLSGetLastError,", " .sync_write = connTLSSyncWrite,", " .sync_read = connTLSSyncRead,", " .sync_readline = connTLSSyncReadLine,", " ...", "};" ] }, { "parent": "", "source_code": [ "static ConnectionType CT_Unix = {", " ...", " .write = connUnixWrite,", " .writev = connUnixWritev,", " .read = connUnixRead,", " .set_write_handler = connUnixSetWriteHandler,", " .set_read_handler = connUnixSetReadHandler,", " .get_last_error = connUnixGetLastError,", " .sync_write = connUnixSyncWrite,", " .sync_read = connUnixSyncRead,", " .sync_readline = connUnixSyncReadLine,", " ...", "};" ] } ], "type": "fnptr-library" }
null
null
null
null
null
null
{ "callees": { "targets": { "NULL": null, "RedisModule_OnLoad": null, "_quicklistSaver": null, "activeDefragAlloc": null, "addReplyCommandDocs": null, "addReplyCommandInfo": null, "auxHumanNodenameSetter": null, "auxShardIdSetter": null, "auxTcpPortSetter": null, "auxTlsPortSetter": null, "connSocketSetWriteHandler": null, "connTLSRead": null, "connTLSSetWriteHandler": null, "connUnixSetWriteHandler": null, "createDoubleObject": null, "default_junk_alloc": null, "defragStreamConsumer": null, "defragStreamConsumerGroup": null, "defragStreamConsumerPendingEntry": null, "getClientPubSubChannels": null, "listPopSaver": null, "luaEngineMemoryOverhead": null, "nstime_update_impl": null, "redisNetRead": null, "sortCompare": null, "sort_gp_asc": null, "sort_gp_desc": null, "tcache_bin_flush_ptr_getter": null, "zmalloc_default_oom": null, "zrangeResultFinalizeClient": "", "zrangeResultFinalizeStore": "" } }, "callsite": "handler->finalizeResultEmission", "chain_summary": [ { "parent": "", "source_code": [ "void genericZrangebyrankCommand(zrange_result_handler *handler,", " robj *zobj, long start, long end, int withscores, int reverse) {", " if (start > end || start >= llen) {", " handler->beginResultEmission(handler, 0);", " handler->finalizeResultEmission(handler, 0);", " return;", " }", "}", "static void zrangeResultHandlerInit(zrange_result_handler *handler,", " client *client, zrange_consumer_type type)", "{", " memset(handler, 0, sizeof(*handler));", " handler->client = client;", " switch (type) {", " case ZRANGE_CONSUMER_TYPE_CLIENT:", " handler->beginResultEmission = zrangeResultBeginClient;", " handler->finalizeResultEmission = zrangeResultFinalizeClient;", " handler->emitResultFromCBuffer = zrangeResultEmitCBufferToClient;", " handler->emitResultFromLongLong = zrangeResultEmitLongLongToClient;", " break;", " case ZRANGE_CONSUMER_TYPE_INTERNAL:", " handler->beginResultEmission = zrangeResultBeginStore;", " handler->finalizeResultEmission = zrangeResultFinalizeStore;", " handler->emitResultFromCBuffer = zrangeResultEmitCBufferForStore;", " handler->emitResultFromLongLong = zrangeResultEmitLongLongForStore;", " break;", " }", "}" ] }, { "parent": "", "source_code": [ "void zrangestoreCommand (client *c) {", " robj *dstkey = c->argv[1];", " zrange_result_handler handler;", " zrangeResultHandlerInit(&handler, c, ZRANGE_CONSUMER_TYPE_INTERNAL);", " zrangeResultHandlerDestinationKeySet(&handler, dstkey);", " zrangeGenericCommand(&handler, 2, 1, ZRANGE_AUTO, ZRANGE_DIRECTION_AUTO);", "}" ] }, { "parent": "", "source_code": [ "void zrangeGenericCommand(zrange_result_handler *handler, int argc_start, int store,", " zrange_type rangetype, zrange_direction direction)", "{", " switch (rangetype) {", " case ZRANGE_AUTO:", " case ZRANGE_RANK:", " genericZrangebyrankCommand(handler, zobj, opt_start, opt_end,", " opt_withscores || store, direction == ZRANGE_DIRECTION_REVERSE);", " break;", " case ZRANGE_SCORE:", " genericZrangebyscoreCommand(handler, &range, zobj, opt_offset,", " opt_limit, direction == ZRANGE_DIRECTION_REVERSE);", " break;", " case ZRANGE_LEX:", " genericZrangebylexCommand(handler, &lexrange, zobj, opt_withscores || store,", " opt_offset, opt_limit, direction == ZRANGE_DIRECTION_REVERSE);", " break;", " }", "}" ] }, { "parent": "", "source_code": [ "static void zrangeResultBeginClient(zrange_result_handler *handler, long length) {", " if (length > 0) {", " /* In case of WITHSCORES, respond with a single array in RESP2, and", " * nested arrays in RESP3. We can't use a map response type since the", " * client library needs to know to respect the order. */", " if (handler->withscores && (handler->client->resp == 2)) {", " length *= 2;", " }", " addReplyArrayLen(handler->client, length);", " handler->userdata = NULL;", " return;", " }", " handler->userdata = addReplyDeferredLen(handler->client);", "}" ] }, { "parent": "", "source_code": [ "static void zrangeResultFinalizeClient(zrange_result_handler *handler,", " size_t result_count)", "{", " /* If the reply size was know at start there's nothing left to do */", " if (!handler->userdata)", " return;", " /* In case of WITHSCORES, respond with a single array in RESP2, and", " * nested arrays in RESP3. We can't use a map response type since the", " * client library needs to know to respect the order. */", " if (handler->withscores && (handler->client->resp == 2)) {", " result_count *= 2;", " }", " setDeferredArrayLen(handler->client, handler->userdata, result_count);", "}" ] }, { "parent": "", "source_code": [ "static void zrangeResultEmitCBufferToClient(zrange_result_handler *handler,", " const void *value, size_t value_length_in_bytes, double score)", "{", " if (handler->should_emit_array_length) {", " addReplyArrayLen(handler->client, 2);", " }", " addReplyBulkCBuffer(handler->client, value, value_length_in_bytes);", " if (handler->withscores) {", " addReplyDouble(handler->client, score);", " }", "}" ] }, { "parent": "", "source_code": [ "static void zrangeResultEmitLongLongToClient(zrange_result_handler *handler,", " long long value, double score)", "{", " if (handler->should_emit_array_length) {", " addReplyArrayLen(handler->client, 2);", " }", " addReplyBulkLongLong(handler->client, value);", " if (handler->withscores) {", " addReplyDouble(handler->client, score);", " }", "}" ] }, { "parent": "", "source_code": [ "static void zrangeResultBeginStore(zrange_result_handler *handler, long length)", "{", " handler->dstobj = zsetTypeCreate(length, 0);", "}" ] }, { "parent": "", "source_code": [ "static void zrangeResultFinalizeStore(zrange_result_handler *handler, size_t result_count)", "{", " if (result_count) {", " setKey(handler->client, handler->client->db, handler->dstkey, handler->dstobj, 0);", " addReplyLongLong(handler->client, result_count);", " notifyKeyspaceEvent(NOTIFY_ZSET, \"zrangestore\", handler->dstkey, handler->client->db->id);", " server.dirty++;", " } else {", " addReply(handler->client, shared.czero);", " if (dbDelete(handler->client->db, handler->dstkey)) {", " signalModifiedKey(handler->client, handler->client->db, handler->dstkey);", " notifyKeyspaceEvent(NOTIFY_GENERIC, \"del\", handler->dstkey, handler->client->db->id);", " server.dirty++;", " }", " }", " decrRefCount(handler->dstobj);", "}" ] }, { "parent": "", "source_code": [ "static void zrangeResultEmitCBufferForStore(zrange_result_handler *handler,", " const void *value, size_t value_length_in_bytes, double score)", "{", " double newscore;", " int retflags = 0;", " sds ele = sdsnewlen(value, value_length_in_bytes);", " int retval = zsetAdd(handler->dstobj, score, ele, ZADD_IN_NONE, &retflags, &newscore);", " sdsfree(ele);", " serverAssert(retval);", "}" ] }, { "parent": "", "source_code": [ "static void zrangeResultEmitLongLongForStore(zrange_result_handler *handler,", " long long value, double score)", "{", " double newscore;", " int retflags = 0;", " sds ele = sdsfromlonglong(value);", " int retval = zsetAdd(handler->dstobj, score, ele, ZADD_IN_NONE, &retflags, &newscore);", " sdsfree(ele);", " serverAssert(retval);", "}" ] } ], "type": "fnptr-struct" }
null
null
null
null
null
null
{ "callees": { "targets": { "NULL": null, "RedisModule_OnLoad": null, "_quicklistSaver": null, "activeDefragAlloc": "", "addReplyCommandDocs": null, "addReplyCommandInfo": null, "auxHumanNodenameSetter": null, "auxShardIdSetter": null, "auxTcpPortSetter": null, "auxTlsPortSetter": null, "connSocketSetWriteHandler": null, "connTLSRead": null, "connTLSSetWriteHandler": null, "connUnixSetWriteHandler": null, "createDoubleObject": null, "default_junk_alloc": null, "defragStreamConsumer": null, "defragStreamConsumerGroup": null, "defragStreamConsumerPendingEntry": null, "getClientPubSubChannels": null, "listPopSaver": null, "luaEngineMemoryOverhead": null, "nstime_update_impl": null, "redisNetRead": null, "sortCompare": null, "sort_gp_asc": null, "sort_gp_desc": null, "tcache_bin_flush_ptr_getter": null, "zmalloc_default_oom": null, "zrangeResultFinalizeClient": null, "zrangeResultFinalizeStore": null } }, "callsite": "defragalloc", "chain_summary": [ { "parent": "", "source_code": [ "static void dictDefragBucket(dict *d, dictEntry **bucketref, dictDefragFunctions *defragfns) {", " dictDefragAllocFunction *defragalloc = defragfns->defragAlloc;", " dictDefragAllocFunction *defragkey = defragfns->defragKey;", " dictDefragAllocFunction *defragval = defragfns->defragVal;", " while (bucketref && *bucketref) {", " dictEntry *de = *bucketref, *newde = NULL;", " void *newkey = defragkey ? defragkey(dictGetKey(de)) : NULL;", " void *newval = defragval ? defragval(dictGetVal(de)) : NULL;", " if (entryIsKey(de)) {", " if (newkey) *bucketref = newkey;", " assert(entryIsKey(*bucketref));", " } else if (entryIsNoValue(de)) {", " dictEntryNoValue *entry = decodeEntryNoValue(de), *newentry;", " if ((newentry = defragalloc(entry))) {", " newde = encodeMaskedPtr(newentry, ENTRY_PTR_NO_VALUE);", " entry = newentry;", " }", " }", " }", "}" ] }, { "parent": "", "source_code": [ "unsigned long dictScanDefrag(dict *d,", " unsigned long v,", " dictScanFunction *fn,", " dictDefragFunctions *defragfns,", " void *privdata)", "{", " ...", " if (!dictIsRehashing(d)) {", " ...", " /* Emit entries at cursor */", " if (defragfns) {", " dictDefragBucket(d, &d->ht_table[htidx0][v & m0], defragfns);", " }", " ...", " } else {", " ...", " if (defragfns) {", " dictDefragBucket(d, &d->ht_table[htidx0][v & m0], defragfns);", " }", " ...", " do {", " if (defragfns) {", " dictDefragBucket(d, &d->ht_table[htidx1][v & m1], defragfns);", " }", " ...", " } while (v & (m0 ^ m1));", " }", " return v;", "}" ] }, { "parent": "", "source_code": [ "void activeDefragCycle(void) {", " ...", " dictDefragFunctions defragfns = {.defragAlloc = activeDefragAlloc};", " do {", " do {", " ...", " /* Scan the keyspace dict unless we're scanning the expire dict. */", " if (!expires_cursor)", " cursor = dictScanDefrag(db->dict, cursor, defragScanCallback,", " &defragfns, db);", " /* When done scanning the keyspace dict, we scan the expire dict. */", " if (!cursor)", " expires_cursor = dictScanDefrag(db->expires, expires_cursor,", " scanCallbackCountScanned,", " &defragfns, NULL);", " ...", " }", " }", "}" ] }, { "parent": "", "source_code": [ "void scanLaterZset(robj *ob, unsigned long *cursor) {", " if (ob->type != OBJ_ZSET || ob->encoding != OBJ_ENCODING_SKIPLIST)", " return;", " zset *zs = (zset*)ob->ptr;", " dict *d = zs->dict;", " scanLaterZsetData data = {zs};", " dictDefragFunctions defragfns = {.defragAlloc = activeDefragAlloc};", " *cursor = dictScanDefrag(d, *cursor, scanLaterZsetCallback, &defragfns, &data);", "}" ] }, { "parent": "", "source_code": [ "void scanLaterSet(robj *ob, unsigned long *cursor) {", " if (ob->type != OBJ_SET || ob->encoding != OBJ_ENCODING_HT)", " return;", " dict *d = ob->ptr;", " dictDefragFunctions defragfns = {", " .defragAlloc = activeDefragAlloc,", " .defragKey = (dictDefragAllocFunction *)activeDefragSds", " };", " *cursor = dictScanDefrag(d, *cursor, scanCallbackCountScanned, &defragfns, NULL);", "}" ] }, { "parent": "", "source_code": [ "void scanLaterHash(robj *ob, unsigned long *cursor) {", " if (ob->type != OBJ_HASH || ob->encoding != OBJ_ENCODING_HT)", " return;", " dict *d = ob->ptr;", " dictDefragFunctions defragfns = {", " .defragAlloc = activeDefragAlloc,", " .defragKey = (dictDefragAllocFunction *)activeDefragSds,", " .defragVal = (dictDefragAllocFunction *)activeDefragSds", " };", " *cursor = dictScanDefrag(d, *cursor, scanCallbackCountScanned, &defragfns, NULL);", "}" ] }, { "parent": "", "source_code": [ "unsigned long dictScan(dict *d,", " unsigned long v,", " dictScanFunction *fn,", " void *privdata)", "{", " return dictScanDefrag(d, v, fn, NULL, privdata);", "}" ] } ], "type": "fnptr-struct" }
null
null
null
null
null
null
{ "callees": { "targets": { "NULL": null, "RedisModule_OnLoad": null, "_quicklistSaver": null, "activeDefragAlloc": null, "addReplyCommandDocs": null, "addReplyCommandInfo": null, "auxHumanNodenameSetter": null, "auxShardIdSetter": null, "auxTcpPortSetter": null, "auxTlsPortSetter": null, "connSocketSetWriteHandler": null, "connTLSRead": null, "connTLSSetWriteHandler": null, "connUnixSetWriteHandler": null, "createDoubleObject": null, "default_junk_alloc": null, "defragStreamConsumer": null, "defragStreamConsumerGroup": null, "defragStreamConsumerPendingEntry": null, "getClientPubSubChannels": null, "listPopSaver": null, "luaEngineMemoryOverhead": "", "nstime_update_impl": null, "redisNetRead": null, "sortCompare": null, "sort_gp_asc": null, "sort_gp_desc": null, "tcache_bin_flush_ptr_getter": null, "zmalloc_default_oom": null, "zrangeResultFinalizeClient": null, "zrangeResultFinalizeStore": null } }, "callsite": "engine->get_engine_memory_overhead", "chain_summary": [ { "parent": "", "source_code": [ "int functionsRegisterEngine(const char *engine_name, engine *engine) {", " sds engine_name_sds = sdsnew(engine_name);", " if (dictFetchValue(engines, engine_name_sds)) {", " serverLog(LL_WARNING, \"Same engine was registered twice\");", " sdsfree(engine_name_sds);", " return C_ERR;", " }", " client *c = createClient(NULL);", " c->flags |= (CLIENT_DENY_BLOCKING | CLIENT_SCRIPT);", " engineInfo *ei = zmalloc(sizeof(*ei));", " *ei = (engineInfo ) { .name = engine_name_sds, .engine = engine, .c = c,};", " dictAdd(engines, engine_name_sds, ei);", " engine_cache_memory += zmalloc_size(ei) + sdsZmallocSize(ei->name) +", " zmalloc_size(engine) +", " engine->get_engine_memory_overhead(engine->engine_ctx);", " return C_OK;", "}" ] }, { "parent": "", "source_code": [ "int luaEngineInitEngine(void) {", " luaEngineCtx *lua_engine_ctx = zmalloc(sizeof(*lua_engine_ctx));", " lua_engine_ctx->lua = lua_open();", " ...", " engine *lua_engine = zmalloc(sizeof(*lua_engine));", " *lua_engine = (engine) {", " .engine_ctx = lua_engine_ctx,", " .create = luaEngineCreate,", " .call = luaEngineCall,", " .get_used_memory = luaEngineGetUsedMemoy,", " .get_function_memory_overhead = luaEngineFunctionMemoryOverhead,", " .get_engine_memory_overhead = luaEngineMemoryOverhead,", " .free_function = luaEngineFreeFunction,", " };", " return functionsRegisterEngine(LUA_ENGINE_NAME, lua_engine);", "}" ] } ], "type": "fnptr-struct" }
null
null
null
null
null
null
{ "callees": { "targets": { "NULL": null, "RedisModule_OnLoad": null, "_quicklistSaver": null, "activeDefragAlloc": null, "addReplyCommandDocs": null, "addReplyCommandInfo": null, "auxHumanNodenameSetter": null, "auxShardIdSetter": null, "auxTcpPortSetter": null, "auxTlsPortSetter": null, "connSocketSetWriteHandler": null, "connTLSRead": null, "connTLSSetWriteHandler": null, "connUnixSetWriteHandler": null, "createDoubleObject": null, "default_junk_alloc": null, "defragStreamConsumer": null, "defragStreamConsumerGroup": null, "defragStreamConsumerPendingEntry": null, "getClientPubSubChannels": null, "listPopSaver": null, "luaEngineMemoryOverhead": null, "nstime_update_impl": null, "redisNetRead": null, "sortCompare": null, "sort_gp_asc": null, "sort_gp_desc": null, "tcache_bin_flush_ptr_getter": null, "zmalloc_default_oom": "", "zrangeResultFinalizeClient": null, "zrangeResultFinalizeStore": null } }, "callsite": "zmalloc_oom_handler", "chain_summary": [ { "parent": "", "source_code": [ "/* Allocate memory or panic */", "void *zmalloc(size_t size) {", " void *ptr = ztrymalloc_usable_internal(size, NULL);", " if (!ptr) zmalloc_oom_handler(size);", " return ptr;", "}" ] }, { "parent": "", "source_code": [ "static void (*zmalloc_oom_handler)(size_t) = zmalloc_default_oom;" ] } ], "type": "fnptr-only" }
null
null
null
null
null
null
{ "callees": { "targets": { "NULL": null, "RedisModule_OnLoad": null, "_quicklistSaver": null, "activeDefragAlloc": null, "addReplyCommandDocs": null, "addReplyCommandInfo": null, "auxHumanNodenameSetter": null, "auxShardIdSetter": null, "auxTcpPortSetter": null, "auxTlsPortSetter": null, "connSocketSetWriteHandler": null, "connTLSRead": null, "connTLSSetWriteHandler": null, "connUnixSetWriteHandler": null, "createDoubleObject": null, "default_junk_alloc": "", "defragStreamConsumer": null, "defragStreamConsumerGroup": null, "defragStreamConsumerPendingEntry": null, "getClientPubSubChannels": null, "listPopSaver": null, "luaEngineMemoryOverhead": null, "nstime_update_impl": null, "redisNetRead": null, "sortCompare": null, "sort_gp_asc": null, "sort_gp_desc": null, "tcache_bin_flush_ptr_getter": null, "zmalloc_default_oom": null, "zrangeResultFinalizeClient": null, "zrangeResultFinalizeStore": null } }, "callsite": "junk_alloc_callback", "chain_summary": [ { "parent": "", "source_code": [ "static void *", "do_rallocx(void *ptr, size_t size, int flags, bool is_realloc) {", "\t...", "\tif (config_fill && unlikely(opt_junk_alloc) && usize > old_usize", "\t && !zero) {", "\t\tsize_t excess_len = usize - old_usize;", "\t\tvoid *excess_start = (void *)((uintptr_t)p + old_usize);", "\t\tjunk_alloc_callback(excess_start, excess_len);", "\t}", "}" ] }, { "parent": "", "source_code": [ "void (*junk_alloc_callback)(void *ptr, size_t size) = &default_junk_alloc;" ] } ], "type": "fnptr-only" }
null
null
null
null
null
null
{ "callees": { "targets": { "NULL": null, "RedisModule_OnLoad": "", "_quicklistSaver": null, "activeDefragAlloc": null, "addReplyCommandDocs": null, "addReplyCommandInfo": null, "auxHumanNodenameSetter": null, "auxShardIdSetter": null, "auxTcpPortSetter": null, "auxTlsPortSetter": null, "connSocketSetWriteHandler": null, "connTLSRead": null, "connTLSSetWriteHandler": null, "connUnixSetWriteHandler": null, "createDoubleObject": null, "default_junk_alloc": null, "defragStreamConsumer": null, "defragStreamConsumerGroup": null, "defragStreamConsumerPendingEntry": null, "getClientPubSubChannels": null, "listPopSaver": null, "luaEngineMemoryOverhead": null, "nstime_update_impl": null, "redisNetRead": null, "sortCompare": null, "sort_gp_asc": null, "sort_gp_desc": null, "tcache_bin_flush_ptr_getter": null, "zmalloc_default_oom": null, "zrangeResultFinalizeClient": null, "zrangeResultFinalizeStore": null } }, "callsite": "onload", "chain_summary": [ { "parent": "", "source_code": [ "handle = dlopen(path,RTLD_NOW|RTLD_LOCAL);", "if (handle == NULL) {", " serverLog(LL_WARNING, \"Module %s failed to load: %s\", path, dlerror());", " return C_ERR;", "}", "onload = (int (*)(void *, void **, int))(unsigned long) dlsym(handle,\"RedisModule_OnLoad\");", "if (onload == NULL) {", " dlclose(handle);", " serverLog(LL_WARNING,", " \"Module %s does not export RedisModule_OnLoad() \"", " \"symbol. Module not loaded.\",path);", " return C_ERR;", "}", "RedisModuleCtx ctx;", "moduleCreateContext(&ctx, NULL, REDISMODULE_CTX_TEMP_CLIENT); /* We pass NULL since we don't have a module yet. */", "if (onload((void*)&ctx,module_argv,module_argc) == REDISMODULE_ERR) {", " serverLog(LL_WARNING,", " \"Module %s initialization failed. Module not loaded\",path);", " if (ctx.module) {", " moduleUnregisterCommands(ctx.module);", " moduleUnregisterSharedAPI(ctx.module);", " moduleUnregisterUsedAPI(ctx.module);", " moduleRemoveConfigs(ctx.module);", " moduleUnregisterAuthCBs(ctx.module);", " moduleFreeModuleStructure(ctx.module);", " }", " moduleFreeContext(&ctx);", " dlclose(handle);", " return C_ERR;", "}" ] } ], "type": "fnptr-dynamic-call" }
null
null
null
null
null
null
{ "callees": { "targets": { "NULL": null, "RedisModule_OnLoad": null, "_quicklistSaver": null, "activeDefragAlloc": null, "addReplyCommandDocs": null, "addReplyCommandInfo": null, "auxHumanNodenameSetter": null, "auxShardIdSetter": null, "auxTcpPortSetter": null, "auxTlsPortSetter": null, "connSocketSetWriteHandler": null, "connTLSRead": null, "connTLSSetWriteHandler": null, "connUnixSetWriteHandler": null, "createDoubleObject": null, "default_junk_alloc": null, "defragStreamConsumer": null, "defragStreamConsumerGroup": null, "defragStreamConsumerPendingEntry": null, "getClientPubSubChannels": "", "listPopSaver": null, "luaEngineMemoryOverhead": null, "nstime_update_impl": null, "redisNetRead": null, "sortCompare": null, "sort_gp_asc": null, "sort_gp_desc": null, "tcache_bin_flush_ptr_getter": null, "zmalloc_default_oom": null, "zrangeResultFinalizeClient": null, "zrangeResultFinalizeStore": null } }, "callsite": "type.clientPubSubChannels", "chain_summary": [ { "parent": "", "source_code": [ "/*", " * Pub/Sub type for global channels.", " */", "pubsubtype pubSubType = {", " .shard = 0,", " .clientPubSubChannels = getClientPubSubChannels,", " .subscriptionCount = clientSubscriptionsCount,", " .serverPubSubChannels = &server.pubsub_channels,", " .subscribeMsg = &shared.subscribebulk,", " .unsubscribeMsg = &shared.unsubscribebulk,", " .messageBulk = &shared.messagebulk,", "};" ] }, { "parent": "", "source_code": [ "/* SUBSCRIBE channel [channel ...] */", "void subscribeCommand(client *c) {", " int j;", " if ((c->flags & CLIENT_DENY_BLOCKING) && !(c->flags & CLIENT_MULTI)) {", " /**", " * A client that has CLIENT_DENY_BLOCKING flag on", " * expect a reply per command and so can not execute subscribe.", " *", " * Notice that we have a special treatment for multi because of", " * backward compatibility", " */", " addReplyError(c, \"SUBSCRIBE isn't allowed for a DENY BLOCKING client\");", " return;", " }", " for (j = 1; j < c->argc; j++)", " pubsubSubscribeChannel(c,c->argv[j],pubSubType);", " c->flags |= CLIENT_PUBSUB;", "}" ] }, { "parent": "", "source_code": [ "/* Subscribe a client to a channel. Returns 1 if the operation succeeded, or", " * 0 if the client was already subscribed to that channel. */", "int pubsubSubscribeChannel(client *c, robj *channel, pubsubtype type) {", " dictEntry *de;", " list *clients = NULL;", " int retval = 0;", " /* Add the channel to the client -> channels hash table */", " if (dictAdd(type.clientPubSubChannels(c),channel,NULL) == DICT_OK) {", " retval = 1;", " incrRefCount(channel);", " /* Add the client to the channel -> list of clients hash table */", " de = dictFind(*type.serverPubSubChannels, channel);", " if (de == NULL) {", " clients = listCreate();", " dictAdd(*type.serverPubSubChannels, channel, clients);", " incrRefCount(channel);", " } else {", " clients = dictGetVal(de);", " }", " listAddNodeTail(clients,c);", " }", " /* Notify the client */", " addReplyPubsubSubscribed(c,channel,type);", " return retval;", "}" ] } ], "type": "fnptr-global-struct" }
null
null
null
null
null
null
{ "callees": { "targets": { "NULL": null, "RedisModule_OnLoad": null, "_quicklistSaver": null, "activeDefragAlloc": null, "addReplyCommandDocs": null, "addReplyCommandInfo": null, "auxHumanNodenameSetter": null, "auxShardIdSetter": null, "auxTcpPortSetter": null, "auxTlsPortSetter": null, "connSocketSetWriteHandler": null, "connTLSRead": "", "connTLSSetWriteHandler": null, "connUnixSetWriteHandler": null, "createDoubleObject": null, "default_junk_alloc": null, "defragStreamConsumer": null, "defragStreamConsumerGroup": null, "defragStreamConsumerPendingEntry": null, "getClientPubSubChannels": null, "listPopSaver": null, "luaEngineMemoryOverhead": null, "nstime_update_impl": null, "redisNetRead": null, "sortCompare": null, "sort_gp_asc": null, "sort_gp_desc": null, "tcache_bin_flush_ptr_getter": null, "zmalloc_default_oom": null, "zrangeResultFinalizeClient": null, "zrangeResultFinalizeStore": null } }, "callsite": "connectionTypeTcp()->read", "chain_summary": [ { "parent": "", "source_code": [ "static int connUnixRead(connection *conn, void *buf, size_t buf_len) {", " return connectionTypeTcp()->read(conn, buf, buf_len);", "}" ] }, { "parent": "", "source_code": [ "ConnectionType *connectionByType(const char *typename) {", " ConnectionType *ct;", " for (int type = 0; type < CONN_TYPE_MAX; type++) {", " ct = connTypes[type];", " if (!ct)", " break;", " if (!strcasecmp(typename, ct->get_type(NULL)))", " return ct;", " }", " serverLog(LL_WARNING, \"Missing implement of connection type %s\", typename);", " return NULL;", "}" ] }, { "parent": "", "source_code": [ "/* Cache TCP connection type, query it by string once */", "ConnectionType *connectionTypeTcp(void) {", " static ConnectionType *ct_tcp = NULL;", " if (ct_tcp != NULL)", " return ct_tcp;", " ct_tcp = connectionByType(CONN_TYPE_SOCKET);", " serverAssert(ct_tcp != NULL);", " return ct_tcp;", "}" ] }, { "parent": "", "source_code": [ "static ConnectionType *connTypes[CONN_TYPE_MAX];", "int connTypeRegister(ConnectionType *ct) {", " ...", " serverLog(LL_VERBOSE, \"Connection type %s registered\", typename);", " connTypes[type] = ct;", " ...", " return C_OK;", "}" ] }, { "parent": "", "source_code": [ "int RedisRegisterConnectionTypeSocket(void)", "{", " return connTypeRegister(&CT_Socket);", "}" ] }, { "parent": "", "source_code": [ "int RedisRegisterConnectionTypeTLS(void) {", " return connTypeRegister(&CT_TLS);", "}" ] }, { "parent": "", "source_code": [ "static ConnectionType CT_Socket = {", " ...", " .read = connTLSRead,", " .write = connTLSWrite,", " .writev = connTLSWritev,", " ...", "};", "static ConnectionType CT_TLS = {", " ...", " .read = connTLSRead,", " .write = connTLSWrite,", " .writev = connTLSWritev,", " ...", "}" ] } ], "type": "fnptr-global-struct" }
null
null
null
null
null
null
{ "callees": { "targets": { "NULL": null, "RedisModule_OnLoad": null, "_quicklistSaver": null, "activeDefragAlloc": null, "addReplyCommandDocs": null, "addReplyCommandInfo": null, "auxHumanNodenameSetter": null, "auxShardIdSetter": null, "auxTcpPortSetter": null, "auxTlsPortSetter": null, "connSocketSetWriteHandler": null, "connTLSRead": null, "connTLSSetWriteHandler": null, "connUnixSetWriteHandler": null, "createDoubleObject": "", "default_junk_alloc": null, "defragStreamConsumer": null, "defragStreamConsumerGroup": null, "defragStreamConsumerPendingEntry": null, "getClientPubSubChannels": null, "listPopSaver": null, "luaEngineMemoryOverhead": null, "nstime_update_impl": null, "redisNetRead": null, "sortCompare": null, "sort_gp_asc": null, "sort_gp_desc": null, "tcache_bin_flush_ptr_getter": null, "zmalloc_default_oom": null, "zrangeResultFinalizeClient": null, "zrangeResultFinalizeStore": null } }, "callsite": "r->fn->createDouble", "chain_summary": [ { "parent": "", "source_code": [ "static int processLineItem(redisReader *r) {", " redisReadTask *cur = r->task[r->ridx];", " void *obj;", " char *p;", " int len;", " if ((p = readLine(r,&len)) != NULL) {", " if (cur->type == REDIS_REPLY_INTEGER) {", " ...", " } else if (cur->type == REDIS_REPLY_DOUBLE) {", " ...", " if (r->fn && r->fn->createDouble) {", " obj = r->fn->createDouble(cur,d,buf,len);", " } else {", " obj = (void*)REDIS_REPLY_DOUBLE;", " }", " } else if (cur->type == REDIS_REPLY_NIL) {", "\t\t}", "\t}", "\t...", " return REDIS_ERR;", "}" ] }, { "parent": "", "source_code": [ "static int processItem(redisReader *r) {", " redisReadTask *cur = r->task[r->ridx];", " ...", " /* process typed item */", " switch(cur->type) {", " case REDIS_REPLY_ERROR:", " case REDIS_REPLY_STATUS:", " case REDIS_REPLY_INTEGER:", " case REDIS_REPLY_DOUBLE:", " case REDIS_REPLY_NIL:", " case REDIS_REPLY_BOOL:", " case REDIS_REPLY_BIGNUM:", " return processLineItem(r);", " case REDIS_REPLY_STRING:", " case REDIS_REPLY_VERB:", " return processBulkItem(r);", " case REDIS_REPLY_ARRAY:", " case REDIS_REPLY_MAP:", " case REDIS_REPLY_SET:", " case REDIS_REPLY_PUSH:", " return processAggregateItem(r);", " default:", " assert(NULL);", " return REDIS_ERR; /* Avoid warning. */", " }", "}" ] }, { "parent": "", "source_code": [ "int redisReaderGetReply(redisReader *r, void **reply) {", " ...", " /* Process items in reply. */", " while (r->ridx >= 0)", " if (processItem(r) != REDIS_OK)", " break;", " ...", " return REDIS_OK;", "}" ] }, { "parent": "", "source_code": [ "static void test_reply_reader(void) {", " redisReader *reader;", " void *reply, *root;", " int ret;", " int i;", " test(\"Error handling in reply parser: \");", " reader = redisReaderCreate();", " redisReaderFeed(reader,(char*)\"@foo\\r\\n\",6);", " ret = redisReaderGetReply(reader,NULL);", "\t...", "}" ] }, { "parent": "", "source_code": [ "redisReader *redisReaderCreate(void) {", " return redisReaderCreateWithFunctions(&defaultFunctions);", "}" ] }, { "parent": "", "source_code": [ "redisReader *redisReaderCreateWithFunctions(redisReplyObjectFunctions *fn) {", " redisReader *r;", " r = hi_calloc(1,sizeof(redisReader));", " if (r == NULL)", " return NULL;", " r->buf = hi_sdsempty();", " if (r->buf == NULL)", " goto oom;", " r->task = hi_calloc(REDIS_READER_STACK_SIZE, sizeof(*r->task));", " if (r->task == NULL)", " goto oom;", " for (; r->tasks < REDIS_READER_STACK_SIZE; r->tasks++) {", " r->task[r->tasks] = hi_calloc(1, sizeof(**r->task));", " if (r->task[r->tasks] == NULL)", " goto oom;", " }", " r->fn = fn;", " r->maxbuf = REDIS_READER_MAX_BUF;", " r->maxelements = REDIS_READER_MAX_ARRAY_ELEMENTS;", " r->ridx = -1;", " return r;", "oom:", " redisReaderFree(r);", " return NULL;", "}" ] }, { "parent": "", "source_code": [ "static redisReplyObjectFunctions defaultFunctions = {", " createStringObject,", " createArrayObject,", " createIntegerObject,", " createDoubleObject,", " createNilObject,", " createBoolObject,", " freeReplyObject", "};" ] } ], "type": "fnptr-global-struct" }
null
null
null
null
null
null
{ "callees": { "targets": { "NULL": null, "RedisModule_OnLoad": null, "_quicklistSaver": null, "activeDefragAlloc": null, "addReplyCommandDocs": null, "addReplyCommandInfo": null, "auxHumanNodenameSetter": "", "auxShardIdSetter": "", "auxTcpPortSetter": "", "auxTlsPortSetter": "", "connSocketSetWriteHandler": null, "connTLSRead": null, "connTLSSetWriteHandler": null, "connUnixSetWriteHandler": null, "createDoubleObject": null, "default_junk_alloc": null, "defragStreamConsumer": null, "defragStreamConsumerGroup": null, "defragStreamConsumerPendingEntry": null, "getClientPubSubChannels": null, "listPopSaver": null, "luaEngineMemoryOverhead": null, "nstime_update_impl": null, "redisNetRead": null, "sortCompare": null, "sort_gp_asc": null, "sort_gp_desc": null, "tcache_bin_flush_ptr_getter": null, "zmalloc_default_oom": null, "zrangeResultFinalizeClient": null, "zrangeResultFinalizeStore": null } }, "callsite": "auxFieldHandlers[j].setter", "chain_summary": [ { "parent": "", "source_code": [ "auxFieldHandler auxFieldHandlers[] = {", " {\"shard-id\", auxShardIdSetter, auxShardIdGetter, auxShardIdPresent},", " {\"nodename\", auxHumanNodenameSetter, auxHumanNodenameGetter, auxHumanNodenamePresent},", " {\"tcp-port\", auxTcpPortSetter, auxTcpPortGetter, auxTcpPortPresent},", " {\"tls-port\", auxTlsPortSetter, auxTlsPortGetter, auxTlsPortPresent},", "};" ] }, { "parent": "", "source_code": [ "for (unsigned j = 0; j < numElements(auxFieldHandlers); j++) {", " if (sdslen(field_argv[0]) != strlen(auxFieldHandlers[j].field) ||", " memcmp(field_argv[0], auxFieldHandlers[j].field, sdslen(field_argv[0])) != 0) {", " continue;", " }", " field_found = 1;", " aux_tcp_port |= j == af_tcp_port;", " aux_tls_port |= j == af_tls_port;", " if (auxFieldHandlers[j].setter(n, field_argv[1], sdslen(field_argv[1])) != C_OK) {", " /* Invalid aux field format */", " sdsfreesplitres(field_argv, field_argc);", " sdsfreesplitres(argv,argc);", " goto fmterr;", " }", "}" ] } ], "type": "fnptr-global-struct-array" }
null
null
null
null
null
null
{ "callees": { "targets": { "NULL": null, "RedisModule_OnLoad": null, "_quicklistSaver": "", "activeDefragAlloc": null, "addReplyCommandDocs": null, "addReplyCommandInfo": null, "auxHumanNodenameSetter": null, "auxShardIdSetter": null, "auxTcpPortSetter": null, "auxTlsPortSetter": null, "connSocketSetWriteHandler": null, "connTLSRead": null, "connTLSSetWriteHandler": null, "connUnixSetWriteHandler": null, "createDoubleObject": null, "default_junk_alloc": null, "defragStreamConsumer": null, "defragStreamConsumerGroup": null, "defragStreamConsumerPendingEntry": null, "getClientPubSubChannels": null, "listPopSaver": "", "luaEngineMemoryOverhead": null, "nstime_update_impl": null, "redisNetRead": null, "sortCompare": null, "sort_gp_asc": null, "sort_gp_desc": null, "tcache_bin_flush_ptr_getter": null, "zmalloc_default_oom": null, "zrangeResultFinalizeClient": null, "zrangeResultFinalizeStore": null } }, "callsite": "saver", "chain_summary": [ { "parent": "", "source_code": [ "int quicklistPopCustom(quicklist *quicklist, int where, unsigned char **data,", " size_t *sz, long long *sval,", " void *(*saver)(unsigned char *data, size_t sz)) {", " unsigned char *p;", " unsigned char *vstr;", " unsigned int vlen;", " long long vlong;", " int pos = (where == QUICKLIST_HEAD) ? 0 : -1;", " ...", " if (unlikely(QL_NODE_IS_PLAIN(node))) {", " if (data)", " *data = saver(node->entry, node->sz);", " if (sz)", " *sz = node->sz;", " quicklistDelIndex(quicklist, node, NULL);", " return 1;", " }", " ...", "}" ] }, { "parent": "", "source_code": [ "robj *listTypePop(robj *subject, int where) {", " robj *value = NULL;", " if (subject->encoding == OBJ_ENCODING_QUICKLIST) {", " long long vlong;", " int ql_where = where == LIST_HEAD ? QUICKLIST_HEAD : QUICKLIST_TAIL;", " if (quicklistPopCustom(subject->ptr, ql_where, (unsigned char **)&value,", " NULL, &vlong, listPopSaver)) {", " if (!value)", " value = createStringObjectFromLongLong(vlong);", " }", " ...", " }", "}" ] }, { "parent": "", "source_code": [ "int quicklistPop(quicklist *quicklist, int where, unsigned char **data,", " size_t *sz, long long *slong) {", " unsigned char *vstr = NULL;", " size_t vlen = 0;", " long long vlong = 0;", " if (quicklist->count == 0)", " return 0;", " int ret = quicklistPopCustom(quicklist, where, &vstr, &vlen, &vlong,", " _quicklistSaver);", " ...", "}" ] } ], "type": "fnptr-callback" }
null
null
null
null
null
null
{ "callees": { "targets": { "NULL": null, "RedisModule_OnLoad": null, "_quicklistSaver": null, "activeDefragAlloc": null, "addReplyCommandDocs": null, "addReplyCommandInfo": null, "auxHumanNodenameSetter": null, "auxShardIdSetter": null, "auxTcpPortSetter": null, "auxTlsPortSetter": null, "connSocketSetWriteHandler": null, "connTLSRead": null, "connTLSSetWriteHandler": null, "connUnixSetWriteHandler": null, "createDoubleObject": null, "default_junk_alloc": null, "defragStreamConsumer": null, "defragStreamConsumerGroup": null, "defragStreamConsumerPendingEntry": null, "getClientPubSubChannels": null, "listPopSaver": null, "luaEngineMemoryOverhead": null, "nstime_update_impl": null, "redisNetRead": null, "sortCompare": null, "sort_gp_asc": null, "sort_gp_desc": null, "tcache_bin_flush_ptr_getter": "", "zmalloc_default_oom": null, "zrangeResultFinalizeClient": null, "zrangeResultFinalizeStore": null } }, "callsite": "ptr_getter", "chain_summary": [ { "parent": "", "source_code": [ "JEMALLOC_ALWAYS_INLINE void", "emap_edata_lookup_batch(tsd_t *tsd, emap_t *emap, size_t nptrs,", " emap_ptr_getter ptr_getter, void *ptr_getter_ctx,", " emap_metadata_visitor metadata_visitor, void *metadata_visitor_ctx,", " emap_batch_lookup_result_t *result) {", "\t...", "\tfor (size_t i = 0; i < nptrs; i++) {", "\t\tconst void *ptr = ptr_getter(ptr_getter_ctx, i);", "\t\tresult[i].rtree_leaf = rtree_leaf_elm_lookup(tsd_tsdn(tsd),", "\t\t &emap->rtree, rtree_ctx, (uintptr_t)ptr,", "\t\t /* dependent */ true, /* init_missing */ false);", "\t}", "\t...", "}" ] }, { "parent": "", "source_code": [ "static void", "tcache_bin_flush_edatas_lookup(tsd_t *tsd, cache_bin_ptr_array_t *arr,", " szind_t binind, size_t nflush, emap_batch_lookup_result_t *edatas) {", "\tsize_t szind_sum = binind * nflush;", "\temap_edata_lookup_batch(tsd, &arena_emap_global, nflush,", "\t &tcache_bin_flush_ptr_getter, (void *)arr,", "\t &tcache_bin_flush_metadata_visitor, (void *)&szind_sum,", "\t edatas);", "\tif (config_opt_safety_checks && unlikely(szind_sum != 0)) {", "\t\ttcache_bin_flush_size_check_fail(arr, binind, nflush, edatas);", "\t}", "}" ] } ], "type": "fnptr-callback" }
null
null
null
null
null
null
{ "callees": { "targets": { "NULL": null, "RedisModule_OnLoad": null, "_quicklistSaver": null, "activeDefragAlloc": null, "addReplyCommandDocs": null, "addReplyCommandInfo": null, "auxHumanNodenameSetter": null, "auxShardIdSetter": null, "auxTcpPortSetter": null, "auxTlsPortSetter": null, "connSocketSetWriteHandler": null, "connTLSRead": null, "connTLSSetWriteHandler": null, "connUnixSetWriteHandler": null, "createDoubleObject": null, "default_junk_alloc": null, "defragStreamConsumer": "", "defragStreamConsumerGroup": "", "defragStreamConsumerPendingEntry": "", "getClientPubSubChannels": null, "listPopSaver": null, "luaEngineMemoryOverhead": null, "nstime_update_impl": null, "redisNetRead": null, "sortCompare": null, "sort_gp_asc": null, "sort_gp_desc": null, "tcache_bin_flush_ptr_getter": null, "zmalloc_default_oom": null, "zrangeResultFinalizeClient": null, "zrangeResultFinalizeStore": null } }, "callsite": "element_cb", "chain_summary": [ { "parent": "", "source_code": [ "void defragRadixTree(rax **raxref, int defrag_data, raxDefragFunction *element_cb, void *element_cb_data) {", " raxIterator ri;", " rax* rax;", " ...", " while (raxNext(&ri)) {", " void *newdata = NULL;", " if (element_cb)", " newdata = element_cb(&ri, element_cb_data);", " if (defrag_data && !newdata)", " newdata = activeDefragAlloc(ri.data);", " if (newdata)", " raxSetData(ri.node, ri.data=newdata);", " }", " raxStop(&ri);", "}" ] }, { "parent": "", "source_code": [ "void* defragStreamConsumer(raxIterator *ri, void *privdata) {", " streamConsumer *c = ri->data;", " streamCG *cg = privdata;", " void *newc = activeDefragAlloc(c);", " if (newc) {", " c = newc;", " }", " sds newsds = activeDefragSds(c->name);", " if (newsds)", " c->name = newsds;", " if (c->pel) {", " PendingEntryContext pel_ctx = {cg, c};", " defragRadixTree(&c->pel, 0, defragStreamConsumerPendingEntry, &pel_ctx);", " }", " return newc; /* returns NULL if c was not defragged */", "}" ] }, { "parent": "", "source_code": [ "void* defragStreamConsumerGroup(raxIterator *ri, void *privdata) {", " streamCG *cg = ri->data;", " UNUSED(privdata);", " if (cg->consumers)", " defragRadixTree(&cg->consumers, 0, defragStreamConsumer, cg);", " if (cg->pel)", " defragRadixTree(&cg->pel, 0, NULL, NULL);", " return NULL;", "}" ] }, { "parent": "", "source_code": [ "void defragStream(redisDb *db, dictEntry *kde) {", " robj *ob = dictGetVal(kde);", " serverAssert(ob->type == OBJ_STREAM && ob->encoding == OBJ_ENCODING_STREAM);", " stream *s = ob->ptr, *news;", " /* handle the main struct */", " if ((news = activeDefragAlloc(s)))", " ob->ptr = s = news;", " if (raxSize(s->rax) > server.active_defrag_max_scan_fields) {", " rax *newrax = activeDefragAlloc(s->rax);", " if (newrax)", " s->rax = newrax;", " defragLater(db, kde);", " } else", " defragRadixTree(&s->rax, 1, NULL, NULL);", " if (s->cgroups)", " defragRadixTree(&s->cgroups, 1, defragStreamConsumerGroup, NULL);", "}" ] } ], "type": "fnptr-callback" }
null
null
null
null
null
null
{ "callees": { "targets": { "NULL": null, "RedisModule_OnLoad": null, "_quicklistSaver": null, "activeDefragAlloc": null, "addReplyCommandDocs": null, "addReplyCommandInfo": null, "auxHumanNodenameSetter": null, "auxShardIdSetter": null, "auxTcpPortSetter": null, "auxTlsPortSetter": null, "connSocketSetWriteHandler": null, "connTLSRead": null, "connTLSSetWriteHandler": null, "connUnixSetWriteHandler": null, "createDoubleObject": null, "default_junk_alloc": null, "defragStreamConsumer": null, "defragStreamConsumerGroup": null, "defragStreamConsumerPendingEntry": null, "getClientPubSubChannels": null, "listPopSaver": null, "luaEngineMemoryOverhead": null, "nstime_update_impl": null, "redisNetRead": null, "sortCompare": "", "sort_gp_asc": "", "sort_gp_desc": "", "tcache_bin_flush_ptr_getter": null, "zmalloc_default_oom": null, "zrangeResultFinalizeClient": null, "zrangeResultFinalizeStore": null } }, "callsite": "cmp", "chain_summary": [ { "parent": "", "source_code": [ "static inline char *", "med3(char *a, char *b, char *c,", " int (*cmp) (const void *, const void *))", "{", "\treturn cmp(a, b) < 0 ?", "\t (cmp(b, c) < 0 ? b : (cmp(a, c) < 0 ? c : a ))", " :(cmp(b, c) > 0 ? b : (cmp(a, c) < 0 ? a : c ));", "}" ] }, { "parent": "", "source_code": [ "static void _pqsort(void *a, size_t n, size_t es,", " int (*cmp) (const void *, const void *), void *lrange, void *rrange)", "{", "\tchar *pa, *pb, *pc, *pd, *pl, *pm, *pn;", "\tsize_t d, r;", "\tint swaptype, cmp_result;", "loop:\tSWAPINIT(a, es);", "\tif (n < 7) {", "\t\tfor (pm = (char *) a + es; pm < (char *) a + n * es; pm += es)", "\t\t\tfor (pl = pm; pl > (char *) a && cmp(pl - es, pl) > 0;", "\t\t\t pl -= es)", "\t\t\t\tswap(pl, pl - es);", "\t\treturn;", "\t}", "\tpm = (char *) a + (n / 2) * es;", "\tif (n > 7) {", "\t\tpl = (char *) a;", "\t\tpn = (char *) a + (n - 1) * es;", "\t\tif (n > 40) {", "\t\t\td = (n / 8) * es;", "\t\t\tpl = med3(pl, pl + d, pl + 2 * d, cmp);", "\t\t\tpm = med3(pm - d, pm, pm + d, cmp);", "\t\t\tpn = med3(pn - 2 * d, pn - d, pn, cmp);", "\t\t}", "\t\tpm = med3(pl, pm, pn, cmp);", "\t}", "}" ] }, { "parent": "", "source_code": [ "void", "pqsort(void *a, size_t n, size_t es,", " int (*cmp) (const void *, const void *), size_t lrange, size_t rrange)", "{", " _pqsort(a,n,es,cmp,((unsigned char*)a)+(lrange*es),", " ((unsigned char*)a)+((rrange+1)*es)-1);", "}" ] }, { "parent": "", "source_code": [ "void georadiusGeneric(client *c, int srcKeyIndex, int flags) {", " robj *storekey = NULL;", " ...", " /* Process [optional] requested sorting */", " if (sort != SORT_NONE) {", " int (*sort_gp_callback)(const void *a, const void *b) = NULL;", " if (sort == SORT_ASC) {", " sort_gp_callback = sort_gp_asc;", " } else if (sort == SORT_DESC) {", " sort_gp_callback = sort_gp_desc;", " }", " if (returned_items == result_length) {", " qsort(ga->array, result_length, sizeof(geoPoint), sort_gp_callback);", " } else {", " pqsort(ga->array, result_length, sizeof(geoPoint), sort_gp_callback,", " 0, (returned_items - 1));", " }", " }", "}" ] }, { "parent": "", "source_code": [ "void sortCommandGeneric(client *c, int readonly) {", " ...", " /* Now it's time to load the right scores in the sorting vector */", " if (!dontsort) {", " ...", " if (sortby && (start != 0 || end != vectorlen-1))", " pqsort(vector,vectorlen,sizeof(redisSortObject),sortCompare, start,end);", " else", " qsort(vector,vectorlen,sizeof(redisSortObject),sortCompare);", " }", "}" ] } ], "type": "fnptr-callback" }
null
null
null
null
null
null
{ "callees": { "targets": { "NULL": null, "RedisModule_OnLoad": null, "_quicklistSaver": null, "activeDefragAlloc": null, "addReplyCommandDocs": "", "addReplyCommandInfo": "", "auxHumanNodenameSetter": null, "auxShardIdSetter": null, "auxTcpPortSetter": null, "auxTlsPortSetter": null, "connSocketSetWriteHandler": null, "connTLSRead": null, "connTLSSetWriteHandler": null, "connUnixSetWriteHandler": null, "createDoubleObject": null, "default_junk_alloc": null, "defragStreamConsumer": null, "defragStreamConsumerGroup": null, "defragStreamConsumerPendingEntry": null, "getClientPubSubChannels": null, "listPopSaver": null, "luaEngineMemoryOverhead": null, "nstime_update_impl": null, "redisNetRead": null, "sortCompare": null, "sort_gp_asc": null, "sort_gp_desc": null, "tcache_bin_flush_ptr_getter": null, "zmalloc_default_oom": null, "zrangeResultFinalizeClient": null, "zrangeResultFinalizeStore": null } }, "callsite": "reply_function", "chain_summary": [ { "parent": "", "source_code": [ "void addReplyCommandSubCommands(client *c, struct redisCommand *cmd, void (*reply_function)(client*, struct redisCommand*), int use_map) {", " if (!cmd->subcommands_dict) {", " addReplySetLen(c, 0);", " return;", " }", " if (use_map)", " addReplyMapLen(c, dictSize(cmd->subcommands_dict));", " else", " addReplyArrayLen(c, dictSize(cmd->subcommands_dict));", " dictEntry *de;", " dictIterator *di = dictGetSafeIterator(cmd->subcommands_dict);", " while((de = dictNext(di)) != NULL) {", " struct redisCommand *sub = (struct redisCommand *)dictGetVal(de);", " if (use_map)", " addReplyBulkCBuffer(c, sub->fullname, sdslen(sub->fullname));", " reply_function(c, sub);", " }", " dictReleaseIterator(di);", "}" ] }, { "parent": "", "source_code": [ "void addReplyCommandInfo(client *c, struct redisCommand *cmd) {", " if (!cmd) {", " addReplyNull(c);", " } else {", " int firstkey = 0, lastkey = 0, keystep = 0;", " if (cmd->legacy_range_key_spec.begin_search_type != KSPEC_BS_INVALID) {", " firstkey = cmd->legacy_range_key_spec.bs.index.pos;", " lastkey = cmd->legacy_range_key_spec.fk.range.lastkey;", " if (lastkey >= 0)", " lastkey += firstkey;", " keystep = cmd->legacy_range_key_spec.fk.range.keystep;", " }", " addReplyArrayLen(c, 10);", " addReplyBulkCBuffer(c, cmd->fullname, sdslen(cmd->fullname));", " addReplyLongLong(c, cmd->arity);", " addReplyFlagsForCommand(c, cmd);", " addReplyLongLong(c, firstkey);", " addReplyLongLong(c, lastkey);", " addReplyLongLong(c, keystep);", " addReplyCommandCategories(c, cmd);", " addReplyCommandTips(c, cmd);", " addReplyCommandKeySpecs(c, cmd);", " addReplyCommandSubCommands(c, cmd, addReplyCommandInfo, 0);", " }", "}" ] }, { "parent": "", "source_code": [ "void addReplyCommandDocs(client *c, struct redisCommand *cmd) {", " /* Count our reply len so we don't have to use deferred reply. */", " long maplen = 1;", " ...", " if (cmd->args) {", " addReplyBulkCString(c, \"arguments\");", " addReplyCommandArgList(c, cmd->args, cmd->num_args);", " }", " if (cmd->subcommands_dict) {", " addReplyBulkCString(c, \"subcommands\");", " addReplyCommandSubCommands(c, cmd, addReplyCommandDocs, 1);", " }", "}" ] } ], "type": "fnptr-callback" }
null
null
null
null
null
null
null
{ "callees": { "targets": { "__gmp_asprintf_memory": "", "do_valueize": null, "dom_valueize": null, "dump_queued_macros": null, "lto_input_tree": null, "noop_region_model_context::get_state_map_by_name": null, "pta_valueize": null, "region_model_context_decorator::get_state_map_by_name": null, "relocate_ptrs": null, "threadedge_valueize": null, "valueize_op": null, "valueize_val": null, "vn_valueize": null } }, "callsite": "funs->memory", "chain_summary": [ { "parent": "", "source_code": [ "int __gmp_doprnt_integer (const struct doprnt_funs_t *funs,", "\t\t void *data,", "\t\t const struct doprnt_params_t *p,", "\t\t const char *s)", "{", " ...", " if (den_showbaselen != 0)", " {", " ASSERT (slash != NULL);", " slashlen = slash+1 - s;", " DOPRNT_MEMORY (s, slashlen); /* numerator and slash */", " slen -= slashlen;", " s += slashlen;", " DOPRNT_MEMORY (showbase, den_showbaselen);", " }", " ...", "}" ] }, { "parent": "", "source_code": [ "#define DOPRNT_ACCUMULATE(call)\t\t\t\t\t\t\\", " do {\t\t\t\t\t\t\t\t\t\\", " int __ret;\t\t\t\t\t\t\t\t\\", " __ret = call;\t\t\t\t\t\t\t\\", " if (__ret == -1)\t\t\t\t\t\t\t\\", " goto error;\t\t\t\t\t\t\t\\", " retval += __ret;\t\t\t\t\t\t\t\\", " } while (0)", "#define DOPRNT_ACCUMULATE_FUN(fun, params)\t\t\t\t\\", " do {\t\t\t\t\t\t\t\t\t\\", " ASSERT ((fun) != NULL);\t\t\t\t\t\t\\", " DOPRNT_ACCUMULATE ((*(fun)) params);\t\t\t\t\\", " } while (0)", "#define DOPRNT_MEMORY(ptr, len)\t\t\t\t\t\t\\", " DOPRNT_ACCUMULATE_FUN (funs->memory, (data, ptr, len))" ] }, { "parent": "", "source_code": [ "ostream& __gmp_doprnt_integer_ostream (ostream &o, struct doprnt_params_t *p,", " char *s)", "{", " struct gmp_asprintf_t d;", " ...", " GMP_ASPRINTF_T_INIT (d, &result);", " ret = __gmp_doprnt_integer (&__gmp_asprintf_funs_noformat, &d, p, s);", " ...", " return o.write (t.str, t.len);", "}" ] }, { "parent": "", "source_code": [ "typedef int (*doprnt_format_t) (void *, const char *, va_list);", "typedef int (*doprnt_memory_t) (void *, const char *, size_t);", "typedef int (*doprnt_reps_t) (void *, int, int);", "typedef int (*doprnt_final_t) (void *);", "struct doprnt_funs_t {", " doprnt_format_t format;", " doprnt_memory_t memory;", " doprnt_reps_t reps;", " doprnt_final_t final; /* NULL if not required */", "};" ] }, { "parent": "", "source_code": [ "const struct doprnt_funs_t __gmp_asprintf_funs_noformat = {", " NULL,", " (doprnt_memory_t) __gmp_asprintf_memory,", " (doprnt_reps_t) __gmp_asprintf_reps,", " NULL", "};" ] }, { "parent": "", "source_code": [ "int", "__gmp_asprintf_memory (struct gmp_asprintf_t *d, const char *str, size_t len)", "{", " GMP_ASPRINTF_T_NEED (d, len);", " memcpy (d->buf + d->size, str, len);", " d->size += len;", " return len;", "}" ] } ], "type": "fnptr-cast" }
null
null
null
null
null
null
{ "callees": { "targets": { "__gmp_asprintf_memory": null, "do_valueize": null, "dom_valueize": null, "dump_queued_macros": null, "lto_input_tree": null, "noop_region_model_context::get_state_map_by_name": "", "pta_valueize": null, "region_model_context_decorator::get_state_map_by_name": "", "relocate_ptrs": null, "threadedge_valueize": null, "valueize_op": null, "valueize_val": null, "vn_valueize": null } }, "callsite": "get_state_map_by_name", "chain_summary": [ { "parent": "", "source_code": [ "class region_model_context", "{", " public:", " /* Hook for clients to store pending diagnostics.", " Return true if the diagnostic was stored, or false if it was deleted. */", " virtual bool warn (std::unique_ptr<pending_diagnostic> d) = 0;", " /* Hook for clients to add a note to the last previously stored", " pending diagnostic. */", " virtual void add_note (std::unique_ptr<pending_note> pn) = 0;", " /* Hook for clients to be notified when an SVAL that was reachable", " in a previous state is no longer live, so that clients can emit warnings", " about leaks. */", " virtual void on_svalue_leak (const svalue *sval) = 0;", " /* Hook for clients to be notified when the set of explicitly live", " svalues changes, so that they can purge state relating to dead", " svalues. */", " virtual void on_liveness_change (const svalue_set &live_svalues,", "\t\t\t\t const region_model *model) = 0;", " virtual logger *get_logger () = 0;", " /* Hook for clients to be notified when the condition", " \"LHS OP RHS\" is added to the region model.", " This exists so that state machines can detect tests on edges,", " and use them to trigger sm-state transitions (e.g. transitions due", " to ptrs becoming known to be NULL or non-NULL, rather than just", " \"unchecked\") */", " virtual void on_condition (const svalue *lhs,", "\t\t\t enum tree_code op,", "\t\t\t const svalue *rhs) = 0;", " /* Hook for clients to be notified when the condition that", " SVAL is within RANGES is added to the region model.", " Similar to on_condition, but for use when handling switch statements.", " RANGES is non-empty. */", " virtual void on_bounded_ranges (const svalue &sval,", "\t\t\t\t const bounded_ranges &ranges) = 0;", " /* Hook for clients to be notified when a frame is popped from the stack. */", " virtual void on_pop_frame (const frame_region *) = 0;", " /* Hooks for clients to be notified when an unknown change happens", " to SVAL (in response to a call to an unknown function). */", " virtual void on_unknown_change (const svalue *sval, bool is_mutable) = 0;", " /* Hooks for clients to be notified when a phi node is handled,", " where RHS is the pertinent argument. */", " virtual void on_phi (const gphi *phi, tree rhs) = 0;", " /* Hooks for clients to be notified when the region model doesn't", " know how to handle the tree code of T at LOC. */", " virtual void on_unexpected_tree_code (tree t,", "\t\t\t\t\tconst dump_location_t &loc) = 0;", " /* Hook for clients to be notified when a function_decl escapes. */", " virtual void on_escaped_function (tree fndecl) = 0;", " virtual uncertainty_t *get_uncertainty () = 0;", " /* Hook for clients to purge state involving SVAL. */", " virtual void purge_state_involving (const svalue *sval) = 0;", " /* Hook for clients to split state with a non-standard path. */", " virtual void bifurcate (std::unique_ptr<custom_edge_info> info) = 0;", " /* Hook for clients to terminate the standard path. */", " virtual void terminate_path () = 0;", " virtual const extrinsic_state *get_ext_state () const = 0;", " /* Hook for clients to access the a specific state machine in", " any underlying program_state. */", " virtual bool", " get_state_map_by_name (const char *name,", "\t\t\t sm_state_map **out_smap,", "\t\t\t const state_machine **out_sm,", "\t\t\t unsigned *out_sm_idx,", "\t\t\t std::unique_ptr<sm_context> *out_sm_context) = 0;", " /* Precanned ways for clients to access specific state machines. */", " bool get_fd_map (sm_state_map **out_smap,", "\t\t const state_machine **out_sm,", "\t\t unsigned *out_sm_idx,", "\t\t std::unique_ptr<sm_context> *out_sm_context)", " {", " return get_state_map_by_name (\"file-descriptor\", out_smap, out_sm,", "\t\t\t\t out_sm_idx, out_sm_context);", " }", " bool get_malloc_map (sm_state_map **out_smap,", "\t\t const state_machine **out_sm,", "\t\t unsigned *out_sm_idx)", " {", " return get_state_map_by_name (\"malloc\", out_smap, out_sm, out_sm_idx, NULL);", " }", " bool get_taint_map (sm_state_map **out_smap,", "\t\t const state_machine **out_sm,", "\t\t unsigned *out_sm_idx)", " {", " return get_state_map_by_name (\"taint\", out_smap, out_sm, out_sm_idx, NULL);", " }", " bool possibly_tainted_p (const svalue *sval);", " /* Get the current statement, if any. */", " virtual const gimple *get_stmt () const = 0;", "};" ] }, { "parent": "", "source_code": [ "class noop_region_model_context : public region_model_context", "{", "public:", " bool warn (std::unique_ptr<pending_diagnostic>) override { return false; }", " void add_note (std::unique_ptr<pending_note>) override;", " void on_svalue_leak (const svalue *) override {}", " void on_liveness_change (const svalue_set &,", "\t\t\t const region_model *) override {}", " logger *get_logger () override { return NULL; }", " void on_condition (const svalue *lhs ATTRIBUTE_UNUSED,", "\t\t enum tree_code op ATTRIBUTE_UNUSED,", "\t\t const svalue *rhs ATTRIBUTE_UNUSED) override", " {", " }", " void on_bounded_ranges (const svalue &,", "\t\t\t const bounded_ranges &) override", " {", " }", " void on_pop_frame (const frame_region *) override {}", " void on_unknown_change (const svalue *sval ATTRIBUTE_UNUSED,", "\t\t\t bool is_mutable ATTRIBUTE_UNUSED) override", " {", " }", " void on_phi (const gphi *phi ATTRIBUTE_UNUSED,", "\t tree rhs ATTRIBUTE_UNUSED) override", " {", " }", " void on_unexpected_tree_code (tree, const dump_location_t &) override {}", " void on_escaped_function (tree) override {}", " uncertainty_t *get_uncertainty () override { return NULL; }", " void purge_state_involving (const svalue *sval ATTRIBUTE_UNUSED) override {}", " void bifurcate (std::unique_ptr<custom_edge_info> info) override;", " void terminate_path () override;", " const extrinsic_state *get_ext_state () const override { return NULL; }", " bool get_state_map_by_name (const char *,", "\t\t\t sm_state_map **,", "\t\t\t const state_machine **,", "\t\t\t unsigned *,", "\t\t\t std::unique_ptr<sm_context> *) override", " {", " return false;", " }", " const gimple *get_stmt () const override { return NULL; }", "};" ] }, { "parent": "", "source_code": [ "class region_model_context_decorator : public region_model_context", "{", " public:", " bool warn (std::unique_ptr<pending_diagnostic> d) override", " {", " return m_inner->warn (std::move (d));", " }", " void add_note (std::unique_ptr<pending_note> pn) override", " {", " m_inner->add_note (std::move (pn));", " }", " void on_svalue_leak (const svalue *sval) override", " {", " m_inner->on_svalue_leak (sval);", " }", " void on_liveness_change (const svalue_set &live_svalues,", "\t\t\t const region_model *model) override", " {", " m_inner->on_liveness_change (live_svalues, model);", " }", " logger *get_logger () override", " {", " return m_inner->get_logger ();", " }", " void on_condition (const svalue *lhs,", "\t\t enum tree_code op,", "\t\t const svalue *rhs) override", " {", " m_inner->on_condition (lhs, op, rhs);", " }", " void on_bounded_ranges (const svalue &sval,", "\t\t\t const bounded_ranges &ranges) override", " {", " m_inner->on_bounded_ranges (sval, ranges);", " }", " void on_pop_frame (const frame_region *frame_reg) override", " {", " m_inner->on_pop_frame (frame_reg);", " }", " void on_unknown_change (const svalue *sval, bool is_mutable) override", " {", " m_inner->on_unknown_change (sval, is_mutable);", " }", " void on_phi (const gphi *phi, tree rhs) override", " {", " m_inner->on_phi (phi, rhs);", " }", " void on_unexpected_tree_code (tree t,", "\t\t\t\tconst dump_location_t &loc) override", " {", " m_inner->on_unexpected_tree_code (t, loc);", " }", " void on_escaped_function (tree fndecl) override", " {", " m_inner->on_escaped_function (fndecl);", " }", " uncertainty_t *get_uncertainty () override", " {", " return m_inner->get_uncertainty ();", " }", " void purge_state_involving (const svalue *sval) override", " {", " m_inner->purge_state_involving (sval);", " }", " void bifurcate (std::unique_ptr<custom_edge_info> info) override", " {", " m_inner->bifurcate (std::move (info));", " }", " void terminate_path () override", " {", " m_inner->terminate_path ();", " }", " const extrinsic_state *get_ext_state () const override", " {", " return m_inner->get_ext_state ();", " }", " bool get_state_map_by_name (const char *name,", "\t\t\t sm_state_map **out_smap,", "\t\t\t const state_machine **out_sm,", "\t\t\t unsigned *out_sm_idx,", "\t\t\t std::unique_ptr<sm_context> *out_sm_context)", " override", " {", " return m_inner->get_state_map_by_name (name, out_smap, out_sm, out_sm_idx,", "\t\t\t\t\t out_sm_context);", " }", " const gimple *get_stmt () const override", " {", " return m_inner->get_stmt ();", " }", "protected:", " region_model_context_decorator (region_model_context *inner)", " : m_inner (inner)", " {", " gcc_assert (m_inner);", " }", " region_model_context *m_inner;", "};" ] } ], "type": "fnptr-virtual" }
null
null
null
null
null
null
{ "callees": { "targets": { "__gmp_asprintf_memory": null, "do_valueize": null, "dom_valueize": null, "dump_queued_macros": "", "lto_input_tree": null, "noop_region_model_context::get_state_map_by_name": null, "pta_valueize": null, "region_model_context_decorator::get_state_map_by_name": null, "relocate_ptrs": null, "threadedge_valueize": null, "valueize_op": null, "valueize_val": null, "vn_valueize": null } }, "callsite": "pfile->cb.before_define", "chain_summary": [ { "parent": "", "source_code": [ "static void", "cpp_pop_definition (cpp_reader *pfile, struct def_pragma_macro *c)", "{", " cpp_hashnode *node = _cpp_lex_identifier (pfile, c->name);", " if (node == NULL)", " return;", " if (pfile->cb.before_define)", " pfile->cb.before_define (pfile);", " ...", "}" ] }, { "parent": "", "source_code": [ "if (flag_dump_macros == 'U')", " {", " cb->before_define = dump_queued_macros;", " cb->used_define = cb_used_define;", " cb->used_undef = cb_used_undef;", " }" ] }, { "parent": "", "source_code": [ "if (gfc_cpp_option.dump_macros == 'U')", " {", " cb->before_define = dump_queued_macros;", " ...", " }" ] } ], "type": "fnptr-struct" }
null
null
null
null
null
null
{ "callees": { "targets": { "__gmp_asprintf_memory": null, "do_valueize": null, "dom_valueize": null, "dump_queued_macros": null, "lto_input_tree": "", "noop_region_model_context::get_state_map_by_name": null, "pta_valueize": null, "region_model_context_decorator::get_state_map_by_name": null, "relocate_ptrs": null, "threadedge_valueize": null, "valueize_op": null, "valueize_val": null, "vn_valueize": null } }, "callsite": "stream_read_tree", "chain_summary": [ { "parent": "", "source_code": [ "static void", "input_ssa_names (class lto_input_block *ib, class data_in *data_in,", "\t\t struct function *fn)", "{", " unsigned int i, size;", " size = streamer_read_uhwi (ib);", " init_tree_ssa (fn, size);", " cfun->gimple_df->in_ssa_p = true;", " init_ssa_operands (fn);", " i = streamer_read_uhwi (ib);", " while (i)", " {", " tree ssa_name, name;", " bool is_default_def;", " /* Skip over the elements that had been freed. */", " while (SSANAMES (fn)->length () < i)", "\tSSANAMES (fn)->quick_push (NULL_TREE);", " is_default_def = (streamer_read_uchar (ib) != 0);", " name = stream_read_tree (ib, data_in);", " ssa_name = make_ssa_name_fn (fn, name, NULL);", " if (is_default_def)", "\t{", "\t set_ssa_default_def (cfun, SSA_NAME_VAR (ssa_name), ssa_name);", "\t SSA_NAME_DEF_STMT (ssa_name) = gimple_build_nop ();", "\t}", " i = streamer_read_uhwi (ib);", " }", "}" ] }, { "parent": "", "source_code": [ "#define stream_read_tree(IB, DATA_IN) \\", " streamer_hooks.read_tree (IB, DATA_IN)" ] }, { "parent": "", "source_code": [ "void", "lto_streamer_hooks_init (void)", "{", " streamer_hooks_init ();", " streamer_hooks.write_tree = lto_output_tree;", " streamer_hooks.read_tree = lto_input_tree;", " streamer_hooks.input_location = lto_input_location;", " streamer_hooks.output_location = lto_output_location;", " streamer_hooks.output_location_and_block = lto_output_location_and_block;", "}" ] } ], "type": "fnptr-global-struct" }
null
null
null
null
null
null
{ "callees": { "targets": { "__gmp_asprintf_memory": null, "do_valueize": "", "dom_valueize": "", "dump_queued_macros": null, "lto_input_tree": null, "noop_region_model_context::get_state_map_by_name": null, "pta_valueize": "", "region_model_context_decorator::get_state_map_by_name": null, "relocate_ptrs": null, "threadedge_valueize": "", "valueize_op": "", "valueize_val": "", "vn_valueize": "" } }, "callsite": "valueize", "chain_summary": [ { "parent": "", "source_code": [ "tree", "gimple_fold_stmt_to_constant_1 (gimple *stmt, tree (*valueize) (tree),", "\t\t\t\ttree (*gvalueize) (tree))", "{", " gimple_match_op res_op;", " ...", "\tif (gimple_call_internal_p (stmt))", "\t {", "\t tree arg0 = gimple_call_arg (stmt, 0);", "\t tree arg1 = gimple_call_arg (stmt, 1);", "\t tree op0 = (*valueize) (arg0);", "\t tree op1 = (*valueize) (arg1);", " }", " ...", "}" ] }, { "parent": "", "source_code": [ "tree", "gimple_fold_stmt_to_constant (gimple *stmt, tree (*valueize) (tree))", "{", " tree res = gimple_fold_stmt_to_constant_1 (stmt, valueize);", " if (res && is_gimple_min_invariant (res))", " return res;", " return NULL_TREE;", "}" ] }, { "parent": "", "source_code": [ "static unsigned int", "object_sizes_execute (function *fun, bool early)", "{", " basic_block bb;", " ...", " result = gimple_fold_stmt_to_constant (call, do_valueize);", " ...", "}" ] }, { "parent": "", "source_code": [ "static tree", "ccp_fold (gimple *stmt)", "{", " switch (gimple_code (stmt))", " {", " case GIMPLE_SWITCH:", " {", "\t/* Return the constant switch index. */", " return valueize_op (gimple_switch_index (as_a <gswitch *> (stmt)));", " }", " case GIMPLE_COND:", " case GIMPLE_ASSIGN:", " case GIMPLE_CALL:", " return gimple_fold_stmt_to_constant_1 (stmt,", "\t\t\t\t\t valueize_op, valueize_op_1);", " default:", " gcc_unreachable ();", " }", "}" ] }, { "parent": "", "source_code": [ "static enum ssa_prop_result", "copy_prop_visit_assignment (gimple *stmt, tree *result_p)", "{", " tree lhs = gimple_assign_lhs (stmt);", " tree rhs = gimple_fold_stmt_to_constant_1 (stmt, valueize_val);", " if (rhs", " && (TREE_CODE (rhs) == SSA_NAME", "\t || is_gimple_min_invariant (rhs)))", " {", " if (!may_propagate_copy (lhs, rhs))", "\trhs = lhs;", " }", " else", " rhs = lhs;", "}" ] }, { "parent": "", "source_code": [ "static void", "back_propagate_equivalences (tree lhs, edge e,", "\t\t\t class const_and_copies *const_and_copies,", "\t\t\t bitmap domby)", "{", " ...", " tree res = gimple_fold_stmt_to_constant_1 (use_stmt, dom_valueize,", " no_follow_ssa_edges);", " if (res && (TREE_CODE (res) == SSA_NAME || is_gimple_min_invariant (res)))", " record_equality (lhs2, res, const_and_copies);", " ...", "}" ] }, { "parent": "", "source_code": [ "static tree", "try_to_simplify (gassign *stmt)", "{", " enum tree_code code = gimple_assign_rhs_code (stmt);", " tree tem;", " /* For stores we can end up simplifying a SSA_NAME rhs. Just return", " in this case, there is no point in doing extra work. */", " if (code == SSA_NAME)", " return NULL_TREE;", " /* First try constant folding based on our current lattice. */", " mprts_hook = vn_lookup_simplify_result;", " tem = gimple_fold_stmt_to_constant_1 (stmt, vn_valueize, vn_valueize);", " mprts_hook = NULL;", " if (tem", " && (TREE_CODE (tem) == SSA_NAME", "\t || is_gimple_min_invariant (tem)))", " return tem;", " return NULL_TREE;", "}" ] }, { "parent": "", "source_code": [ "static bool", "visit_stmt (gimple *stmt, bool backedges_varying_p = false)", "{", " bool changed = false;", " ...", " \t tree simplified = gimple_fold_stmt_to_constant_1 (call_stmt,", "\t\t\t\t\t\t\t vn_valueize);", "\t if (simplified)", "\t {", "\t if (dump_file && (dump_flags & TDF_DETAILS))", "\t\t{", "\t\t fprintf (dump_file, \"call \");", "\t\t print_gimple_expr (dump_file, call_stmt, 0);", "\t\t fprintf (dump_file, \" simplified to \");", "\t\t print_generic_expr (dump_file, simplified);", "\t\t fprintf (dump_file, \"\\n\");", "\t\t}", "\t }", " ...", "}" ] }, { "parent": "", "source_code": [ "void", "jt_state::register_equivs_stmt (gimple *stmt, basic_block bb,", "\t\t\t\tjt_simplifier *simplifier)", "{", " tree cached_lhs = NULL;", " ...", " if (gimple_assign_single_p (stmt)", " && TREE_CODE (gimple_assign_rhs1 (stmt)) == SSA_NAME)", " cached_lhs = gimple_assign_rhs1 (stmt);", " else", " {", " ...", " cached_lhs = gimple_fold_stmt_to_constant_1 (stmt, threadedge_valueize);", " }", " ...", "}" ] }, { "parent": "", "source_code": [ "void", "pointer_equiv_analyzer::visit_stmt (gimple *stmt)", "{", " if (gimple_code (stmt) != GIMPLE_ASSIGN)", " return;", " tree lhs = gimple_assign_lhs (stmt);", " if (!supported_pointer_equiv_p (lhs))", " return;", " tree rhs = gimple_assign_rhs1 (stmt);", " rhs = get_equiv_expr (gimple_assign_rhs_code (stmt), rhs);", " if (rhs)", " {", " set_global_equiv (lhs, rhs);", " return;", " }", " // If we couldn't find anything, try fold.", " x_fold_context = { stmt, m_ranger, this};", " rhs = gimple_fold_stmt_to_constant_1 (stmt, pta_valueize, pta_valueize);", " if (rhs)", " {", " rhs = get_equiv_expr (TREE_CODE (rhs), rhs);", " if (rhs)", "\t{", "\t set_global_equiv (lhs, rhs);", "\t return;", "\t}", " }", "}" ] } ], "type": "fnptr-callback" }
null
null
null
null
null
null
{ "callees": { "targets": { "__gmp_asprintf_memory": null, "do_valueize": null, "dom_valueize": null, "dump_queued_macros": null, "lto_input_tree": null, "noop_region_model_context::get_state_map_by_name": null, "pta_valueize": null, "region_model_context_decorator::get_state_map_by_name": null, "relocate_ptrs": "", "threadedge_valueize": null, "valueize_op": null, "valueize_val": null, "vn_valueize": null } }, "callsite": "op", "chain_summary": [ { "parent": "", "source_code": [ "void", "gt_pch_p_14lang_tree_node (ATTRIBUTE_UNUSED void *this_obj,", "\tvoid *x_p,", "\tATTRIBUTE_UNUSED gt_pointer_operator op,", "\tATTRIBUTE_UNUSED void *cookie)", "{", " union lang_tree_node * x ATTRIBUTE_UNUSED = (union lang_tree_node *)x_p;", " switch ((int) (lto_tree_node_structure (&((*x)))))", " {", " case TS_LTO_GENERIC:", " switch ((int) (tree_node_structure (&((*x).generic))))", " {", " case TS_BASE:", " break;", " case TS_TYPED:", " if ((void *)(x) == this_obj)", " op (&((*x).generic.typed.type), NULL, cookie);", " break;", " }", " }", "}" ] }, { "parent": "", "source_code": [ "void", "gt_pch_nx_lang_tree_node (void *x_p)", "{", " union lang_tree_node * x = (union lang_tree_node *)x_p;", " union lang_tree_node * xlimit = x;", " while (gt_pch_note_object (xlimit, xlimit, gt_pch_p_14lang_tree_node))", " xlimit = (CODE_CONTAINS_STRUCT (TREE_CODE (&(*xlimit).generic), TS_TYPE_COMMON) ? ((union lang_tree_node *) (*xlimit).generic.type_common.next_variant) : CODE_CONTAINS_STRUCT (TREE_CODE (&(*xlimit).generic), TS_COMMON) ? ((union lang_tree_node *) (*xlimit).generic.common.chain) : NULL);", "}" ] }, { "parent": "", "source_code": [ "int", "gt_pch_note_object (void *obj, void *note_ptr_cookie,", "\t\t gt_note_pointers note_ptr_fn,", "\t\t size_t length_override)", "{", " struct ptr_data **slot;", " if (obj == NULL || obj == (void *) 1)", " return 0;", " slot = (struct ptr_data **)", " saving_htab->find_slot_with_hash (obj, POINTER_HASH (obj), INSERT);", " if (*slot != NULL)", " {", " gcc_assert ((*slot)->note_ptr_fn == note_ptr_fn", "\t\t && (*slot)->note_ptr_cookie == note_ptr_cookie);", " return 0;", " }", " *slot = XCNEW (struct ptr_data);", " (*slot)->obj = obj;", " (*slot)->note_ptr_fn = note_ptr_fn;", " (*slot)->note_ptr_cookie = note_ptr_cookie;", " if (length_override != (size_t)-1)", " (*slot)->size = length_override;", " else if (note_ptr_fn == gt_pch_p_S)", " (*slot)->size = strlen ((const char *)obj) + 1;", " else", " (*slot)->size = ggc_get_size (obj);", " return 1;", "}" ] }, { "parent": "", "source_code": [ "void", "gt_pch_save (FILE *f)", "{", " state.ptrs[i]->note_ptr_fn (state.ptrs[i]->obj,", " state.ptrs[i]->note_ptr_cookie,", " relocate_ptrs, &state);", "}" ] }, { "parent": "", "source_code": [ "static void", "relocate_ptrs (void *ptr_p, void *real_ptr_p, void *state_p)", "{", " void **ptr = (void **)ptr_p;", " struct traversal_state *state", " = (struct traversal_state *)state_p;", " struct ptr_data *result;", " if (*ptr == NULL || *ptr == (void *)1)", " return;", " result = (struct ptr_data *)", " saving_htab->find_with_hash (*ptr, POINTER_HASH (*ptr));", " gcc_assert (result);", " *ptr = result->new_addr;", " if (ptr_p == real_ptr_p)", " return;", " if (real_ptr_p == NULL)", " real_ptr_p = ptr_p;", " gcc_assert (real_ptr_p >= state->ptrs[state->ptrs_i]->obj", "\t && ((char *) real_ptr_p + sizeof (void *)", "\t\t <= ((char *) state->ptrs[state->ptrs_i]->obj", "\t\t + state->ptrs[state->ptrs_i]->size)));", " void *addr", " = (void *) ((char *) state->ptrs[state->ptrs_i]->new_addr", "\t\t+ ((char *) real_ptr_p", "\t\t - (char *) state->ptrs[state->ptrs_i]->obj));", " reloc_addrs_vec.safe_push (addr);", "}" ] } ], "type": "fnptr-callback" }
null
null
null
null
null
null
null
{ "callees": { "targets": { "NULL": null, "X509_STORE_CTX_get1_crls": null, "aesni_encrypt": null, "alpn_cb": null, "bind_engine": null, "crls_http_cb": null, "format_metric": null, "format_time_us": null, "l_alloc": "", "lj_alloc_f": "", "ossl_statem_accept": null, "ossl_statem_connect": null, "record_rate": null, "sock_read": null, "ssl3_put_cipher_by_char": null, "ssl_read": null, "ssl_security_default_callback": null, "tls1_md5_final_raw": null, "tls1_sha1_final_raw": null, "tls1_sha256_final_raw": null, "tls1_sha512_final_raw": null } }, "callsite": "g->allocf", "chain_summary": [ { "parent": "", "source_code": [ "#define setmref(r, p)\t((r).ptr64 = (uint64_t)(void *)(p))", "#define mref(r, t)\t((t *)(void *)(r).ptr64)", "#define G(L)\t\t\t(mref(L->glref, global_State))" ] }, { "parent": "", "source_code": [ "static LJ_AINLINE void lj_mem_free(global_State *g, void *p, size_t osize) {", " g->gc.total -= (GCSize)osize;", " g->allocf(g->allocd, p, osize, 0);", "}" ] }, { "parent": "", "source_code": [ "#if LJ_64 && !LJ_GC64 && !(defined(LUAJIT_USE_VALGRIND) && defined(LUAJIT_USE_SYSMALLOC))", "lua_State *lj_state_newstate(lua_Alloc allocf, void *allocd)", "#else", "LUA_API lua_State *lua_newstate(lua_Alloc allocf, void *allocd)", "#endif", "{", " lua_State *L;", " global_State *g;", " ...", "#ifndef LUAJIT_USE_SYSMALLOC", " if (allocf == LJ_ALLOCF_INTERNAL) {", " allocd = lj_alloc_create(&prng);", " if (!allocd) return NULL;", " allocf = lj_alloc_f;", " }", "#endif", " GG = (GG_State *)allocf(allocd, NULL, 0, sizeof(GG_State));", " L = &GG->L;", " g = &GG->g;", " setmref(L->glref, g);", " g->allocf = allocf;", " g->allocd = allocd;", "#ifndef LUAJIT_USE_SYSMALLOC", " if (allocf == lj_alloc_f) {", " lj_alloc_setprng(allocd, &g->prng);", " }", "#endif", " if (lj_vm_cpcall(L, NULL, NULL, cpluaopen) != 0) {", " close_state(L);", " return NULL;", " }", " return L;", "}" ] }, { "parent": "", "source_code": [ "static lua_State *luaL_newstate(void)", "{", " lua_State *L = lua_newstate(l_alloc, NULL);", " if (L)", " lua_atpanic(L, &panic);", " return L;", "}" ] }, { "parent": "", "source_code": [ "static void close_state(lua_State *L)", "{", " global_State *g = G(L);", " lj_buf_free(g, &g->tmpbuf);", "#ifndef LUAJIT_USE_SYSMALLOC", " if (g->allocf == lj_alloc_f)", " lj_alloc_destroy(g->allocd);", " else", "#endif", " g->allocf(g->allocd, G2GG(g), sizeof(GG_State), 0);", "}" ] }, { "parent": "", "source_code": [ "static LJ_AINLINE void lj_buf_free(global_State *g, SBuf *sb)", "{", " lj_mem_free(g, sbufB(sb), sbufsz(sb));", "}" ] }, { "parent": "", "source_code": [ "void lj_alloc_destroy(void *msp)", "{", " mstate ms = (mstate)msp;", " msegmentptr sp = &ms->seg;", " while (sp != 0) {", " char *base = sp->base;", " size_t size = sp->size;", " sp = sp->next;", " CALL_MUNMAP(base, size);", " }", "}" ] }, { "parent": "", "source_code": [ "LJ_ASMF int lj_vm_cpcall(lua_State *L, lua_CFunction func, void *ud,", "\t\t\t lua_CPFunction cp);" ] }, { "parent": "", "source_code": [ "void *lj_alloc_create(PRNGState *rs)", "{", " size_t tsize = DEFAULT_GRANULARITY;", " char *tbase;", " INIT_MMAP();", " UNUSED(rs);", " tbase = (char *)(CALL_MMAP(rs, tsize));", " if (tbase != CMFAIL) {", " size_t msize = pad_request(sizeof(struct malloc_state));", " mchunkptr mn;", " mchunkptr msp = align_as_chunk(tbase);", " mstate m = (mstate)(chunk2mem(msp));", " memset(m, 0, msize);", " msp->head = (msize|PINUSE_BIT|CINUSE_BIT);", " m->seg.base = tbase;", " m->seg.size = tsize;", " m->release_checks = MAX_RELEASE_CHECK_RATE;", " init_bins(m);", " mn = next_chunk(mem2chunk(m));", " init_top(m, mn, (size_t)((tbase + tsize) - (char *)mn) - TOP_FOOT_SIZE);", " return m;", " }", " return NULL;", "}" ] } ], "type": "fnptr-library" }
null
null
null
null
null
null
{ "callees": { "targets": { "NULL": null, "X509_STORE_CTX_get1_crls": null, "aesni_encrypt": null, "alpn_cb": null, "bind_engine": null, "crls_http_cb": null, "format_metric": null, "format_time_us": null, "l_alloc": null, "lj_alloc_f": null, "ossl_statem_accept": null, "ossl_statem_connect": null, "record_rate": null, "sock_read": "", "ssl3_put_cipher_by_char": null, "ssl_read": "", "ssl_security_default_callback": null, "tls1_md5_final_raw": null, "tls1_sha1_final_raw": null, "tls1_sha256_final_raw": null, "tls1_sha512_final_raw": null } }, "callsite": "sock.read", "chain_summary": [ { "parent": "", "source_code": [ "static void socket_readable(aeEventLoop *loop, int fd, void *data, int mask) {", "connection *c = data;", " size_t n;", " do {", " switch (sock.read(c, &n)) {", " case OK: break;", " case ERROR: goto error;", " case RETRY: return;", " }", " if (http_parser_execute(&c->parser, &parser_settings, c->buf, n) != n) goto error;", " if (n == 0 && !http_body_is_final(&c->parser)) goto error;", " }", "}" ] }, { "parent": "", "source_code": [ "int main(int argc, char **argv) {", " char *url, **headers = zmalloc(argc * sizeof(char *));", " struct http_parser_url parts = {};", " ...", " if (!strncmp(\"https\", schema, 5)) {", " if ((cfg.ctx = ssl_init()) == NULL) {", " fprintf(stderr, \"unable to initialize SSL\\n\");", " ERR_print_errors_fp(stderr);", " exit(1);", " }", " sock.connect = ssl_connect;", " sock.close = ssl_close;", " sock.read = ssl_read;", " sock.write = ssl_write;", " sock.readable = ssl_readable;", " }", "}", "..." ] }, { "parent": "", "source_code": [ "static struct sock sock = {", ".connect = sock_connect,", " .close = sock_close,", " .read = sock_read,", " .write = sock_write,", " .readable = sock_readable", "};" ] } ], "type": "fnptr-library" }
null
null
null
null
null
null
{ "callees": { "targets": { "NULL": null, "X509_STORE_CTX_get1_crls": "", "aesni_encrypt": null, "alpn_cb": null, "bind_engine": null, "crls_http_cb": "", "format_metric": null, "format_time_us": null, "l_alloc": null, "lj_alloc_f": null, "ossl_statem_accept": null, "ossl_statem_connect": null, "record_rate": null, "sock_read": null, "ssl3_put_cipher_by_char": null, "ssl_read": null, "ssl_security_default_callback": null, "tls1_md5_final_raw": null, "tls1_sha1_final_raw": null, "tls1_sha256_final_raw": null, "tls1_sha512_final_raw": null } }, "callsite": "ctx->lookup_crls", "chain_summary": [ { "parent": "", "source_code": [ "static int get_crl_delta(X509_STORE_CTX *ctx,", " X509_CRL **pcrl, X509_CRL **pdcrl, X509 *x)", "{", " skcrl = ctx->lookup_crls(ctx, nm);", "}" ] }, { "parent": "", "source_code": [ "void X509_STORE_set_lookup_crls(X509_STORE *ctx,", " X509_STORE_CTX_lookup_crls_fn lookup_crls)", "{", " ctx->lookup_crls = lookup_crls;", "}" ] }, { "parent": "", "source_code": [ "void store_setup_crl_download(X509_STORE *st)", "{", " X509_STORE_set_lookup_crls_cb(st, crls_http_cb);", "}" ] }, { "parent": "", "source_code": [ "#define X509_STORE_set_lookup_crls_cb(ctx, func) \\", " X509_STORE_set_lookup_crls((ctx), (func))" ] }, { "parent": "", "source_code": [ "int X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store, X509 *x509,", " STACK_OF(X509) *chain)", "{", " if (store && store->lookup_crls)", " ctx->lookup_crls = store->lookup_crls;", " else", " ctx->lookup_crls = X509_STORE_CTX_get1_crls;", " return 0;", "}" ] }, { "parent": "", "source_code": [ "STACK_OF(X509_CRL) *X509_STORE_CTX_get1_crls(X509_STORE_CTX *ctx, X509_NAME *nm)", "{", " int i, idx, cnt;", " STACK_OF(X509_CRL) *sk = sk_X509_CRL_new_null();", " X509_CRL *x;", " X509_OBJECT *obj, *xobj = X509_OBJECT_new();", " X509_STORE *store = ctx->ctx;", " /* Always do lookup to possibly add new CRLs to cache */", " if (sk == NULL", " || xobj == NULL", " || store == NULL", " || !X509_STORE_CTX_get_by_subject(ctx, X509_LU_CRL, nm, xobj)) {", " X509_OBJECT_free(xobj);", " sk_X509_CRL_free(sk);", " return NULL;", " }", " X509_OBJECT_free(xobj);", " X509_STORE_lock(store);", " idx = x509_object_idx_cnt(store->objs, X509_LU_CRL, nm, &cnt);", " if (idx < 0) {", " X509_STORE_unlock(store);", " sk_X509_CRL_free(sk);", " return NULL;", " }", " for (i = 0; i < cnt; i++, idx++) {", " obj = sk_X509_OBJECT_value(store->objs, idx);", " x = obj->data.crl;", " if (!X509_CRL_up_ref(x)) {", " X509_STORE_unlock(store);", " sk_X509_CRL_pop_free(sk, X509_CRL_free);", " return NULL;", " }", " if (!sk_X509_CRL_push(sk, x)) {", " X509_STORE_unlock(store);", " X509_CRL_free(x);", " sk_X509_CRL_pop_free(sk, X509_CRL_free);", " return NULL;", " }", " }", " X509_STORE_unlock(store);", " return sk;", "}" ] }, { "parent": "", "source_code": [ "static STACK_OF(X509_CRL) *crls_http_cb(X509_STORE_CTX *ctx, X509_NAME *nm)", "{", " X509 *x;", " STACK_OF(X509_CRL) *crls = NULL;", " X509_CRL *crl;", " STACK_OF(DIST_POINT) *crldp;", " crls = sk_X509_CRL_new_null();", " if (!crls)", " return NULL;", " x = X509_STORE_CTX_get_current_cert(ctx);", " crldp = X509_get_ext_d2i(x, NID_crl_distribution_points, NULL, NULL);", " crl = load_crl_crldp(crldp);", " sk_DIST_POINT_pop_free(crldp, DIST_POINT_free);", " if (!crl) {", " sk_X509_CRL_free(crls);", " return NULL;", " }", " sk_X509_CRL_push(crls, crl);", " /* Try to download delta CRL */", " crldp = X509_get_ext_d2i(x, NID_freshest_crl, NULL, NULL);", " crl = load_crl_crldp(crldp);", " sk_DIST_POINT_pop_free(crldp, DIST_POINT_free);", " if (crl)", " sk_X509_CRL_push(crls, crl);", " return crls;", "}" ] } ], "type": "fnptr-library" }
null
null
null
null
null
null
{ "callees": { "targets": { "NULL": null, "X509_STORE_CTX_get1_crls": null, "aesni_encrypt": null, "alpn_cb": null, "bind_engine": null, "crls_http_cb": null, "format_metric": null, "format_time_us": null, "l_alloc": null, "lj_alloc_f": null, "ossl_statem_accept": null, "ossl_statem_connect": null, "record_rate": "", "sock_read": null, "ssl3_put_cipher_by_char": null, "ssl_read": null, "ssl_security_default_callback": null, "tls1_md5_final_raw": null, "tls1_sha1_final_raw": null, "tls1_sha256_final_raw": null, "tls1_sha512_final_raw": null } }, "callsite": "te->timeProc", "chain_summary": [ { "parent": "", "source_code": [ "/* Process time events */", "static int processTimeEvents(aeEventLoop *eventLoop) {", " int processed = 0;", " ...", " while(te) {", " ...", " aeGetTime(&now_sec, &now_ms);", " if (now_sec > te->when_sec ||", " (now_sec == te->when_sec && now_ms >= te->when_ms))", " {", " ...", " retval = te->timeProc(eventLoop, id, te->clientData);", " ...", " }", " return processed;", " }", "}" ] }, { "parent": "", "source_code": [ "void *thread_main(void *arg) {", " thread *thread = arg;", " ...", " aeEventLoop *loop = thread->loop;", " aeCreateTimeEvent(loop, RECORD_INTERVAL_MS, record_rate, thread, NULL);", " ...", " aeMain(loop);", " ...", " return NULL;", "}" ] }, { "parent": "", "source_code": [ "long long aeCreateTimeEvent(aeEventLoop *eventLoop, long long milliseconds,", " aeTimeProc *proc, void *clientData,", " aeEventFinalizerProc *finalizerProc)", "{", " ...", " te->timeProc = proc;", " ...", " return id;", "}" ] }, { "parent": "", "source_code": [ "void aeMain(aeEventLoop *eventLoop) {", " eventLoop->stop = 0;", " while (!eventLoop->stop) {", " if (eventLoop->beforesleep != NULL)", " eventLoop->beforesleep(eventLoop);", " aeProcessEvents(eventLoop, AE_ALL_EVENTS);", " }", "}" ] }, { "parent": "", "source_code": [ "int aeProcessEvents(aeEventLoop *eventLoop, int flags)", "{", " ...", " /* Check time events */", " if (flags & AE_TIME_EVENTS)", " processed += processTimeEvents(eventLoop);", " return processed; /* return the number of processed file/time events */", "}" ] } ], "type": "fnptr-struct" }
null
null
null
null
null
null
{ "callees": { "targets": { "NULL": "", "X509_STORE_CTX_get1_crls": null, "aesni_encrypt": null, "alpn_cb": null, "bind_engine": null, "crls_http_cb": null, "format_metric": null, "format_time_us": null, "l_alloc": null, "lj_alloc_f": null, "ossl_statem_accept": null, "ossl_statem_connect": null, "record_rate": null, "sock_read": null, "ssl3_put_cipher_by_char": null, "ssl_read": null, "ssl_security_default_callback": null, "tls1_md5_final_raw": null, "tls1_sha1_final_raw": null, "tls1_sha256_final_raw": null, "tls1_sha512_final_raw": null } }, "callsite": "pkey->ameth->pkey_security_bits", "chain_summary": [ { "parent": "", "source_code": [ "int EVP_PKEY_security_bits(const EVP_PKEY *pkey)", "{", " if (pkey == NULL)", " return 0;", " if (!pkey->ameth || !pkey->ameth->pkey_security_bits)", " return -2;", " return pkey->ameth->pkey_security_bits(pkey);", "}" ] }, { "parent": "", "source_code": [ "void EVP_PKEY_asn1_set_security_bits(EVP_PKEY_ASN1_METHOD *ameth,", " int (*pkey_security_bits) (const EVP_PKEY", " *pk))", "{", " ameth->pkey_security_bits = pkey_security_bits;", "}" ] } ], "type": "fnptr-struct" }
null
null
null
null
null
null
{ "callees": { "targets": { "NULL": null, "X509_STORE_CTX_get1_crls": null, "aesni_encrypt": null, "alpn_cb": null, "bind_engine": null, "crls_http_cb": null, "format_metric": null, "format_time_us": null, "l_alloc": null, "lj_alloc_f": null, "ossl_statem_accept": null, "ossl_statem_connect": null, "record_rate": null, "sock_read": null, "ssl3_put_cipher_by_char": null, "ssl_read": null, "ssl_security_default_callback": "", "tls1_md5_final_raw": null, "tls1_sha1_final_raw": null, "tls1_sha256_final_raw": null, "tls1_sha512_final_raw": null } }, "callsite": "sdb->old_cb", "chain_summary": [ { "parent": "", "source_code": [ "static int security_callback_debug(const SSL *s, const SSL_CTX *ctx,", " int op, int bits, int nid,", " void *other, void *ex)", "{", " security_debug_ex *sdb = ex;", " int rv, show_bits = 1, cert_md = 0;", " const char *nm;", " int show_nm;", " rv = sdb->old_cb(s, ctx, op, bits, nid, other, ex);", "}" ] }, { "parent": "", "source_code": [ "void ssl_ctx_security_debug(SSL_CTX *ctx, int verbose)", "{", " static security_debug_ex sdb;", " sdb.out = bio_err;", " sdb.verbose = verbose;", " sdb.old_cb = SSL_CTX_get_security_callback(ctx);", " SSL_CTX_set_security_callback(ctx, security_callback_debug);", " SSL_CTX_set0_security_ex_data(ctx, &sdb);", "}" ] }, { "parent": "", "source_code": [ "void SSL_CTX_set_security_callback(SSL_CTX *ctx,", " int (*cb) (const SSL *s, const SSL_CTX *ctx,", " int op, int bits, int nid,", " void *other, void *ex))", "{", " ctx->cert->sec_cb = cb;", "}", "int (*SSL_CTX_get_security_callback(const SSL_CTX *ctx)) (const SSL *s,", " const SSL_CTX *ctx,", " int op, int bits,", " int nid,", " void *other,", " void *ex) {", " return ctx->cert->sec_cb;", "}" ] }, { "parent": "", "source_code": [ "int ssl_security(const SSL *s, int op, int bits, int nid, void *other)", "{", " return s->cert->sec_cb(s, NULL, op, bits, nid, other, s->cert->sec_ex);", "}", "int ssl_ctx_security(const SSL_CTX *ctx, int op, int bits, int nid, void *other)", "{", " return ctx->cert->sec_cb(NULL, ctx, op, bits, nid, other,", " ctx->cert->sec_ex);", "}" ] }, { "parent": "", "source_code": [ "int s_client_main(int argc, char **argv)", "{", " ctx = SSL_CTX_new(meth);", " if (ctx == NULL) {", " ERR_print_errors(bio_err);", " goto end;", " }", " if (srp_arg.srplogin) {", " if (!srp_lateuser && !SSL_CTX_set_srp_username(ctx, srp_arg.srplogin)) {", " BIO_printf(bio_err, \"Unable to set SRP username\\n\");", " goto end;", " }", " srp_arg.msg = c_msg;", " srp_arg.debug = c_debug;", " SSL_CTX_set_srp_cb_arg(ctx, &srp_arg);", " SSL_CTX_set_srp_client_pwd_callback(ctx, ssl_give_srp_client_pwd_cb);", " SSL_CTX_set_srp_strength(ctx, srp_arg.strength);", " if (c_msg || c_debug || srp_arg.amp == 0)", " SSL_CTX_set_srp_verify_param_callback(ctx,", " ssl_srp_verify_param_cb);", " }", "}" ] }, { "parent": "", "source_code": [ "# define tls1_ctx_ctrl ssl3_ctx_ctrl", "int SSL_CTX_set_srp_username(SSL_CTX *ctx, char *name)", "{", " return tls1_ctx_ctrl(ctx, SSL_CTRL_SET_TLS_EXT_SRP_USERNAME, 0, name);", "}" ] }, { "parent": "", "source_code": [ "long ssl3_ctx_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg)", "{", " DH *dh = (DH *)parg;", " EVP_PKEY *pkdh = NULL;", " if (dh == NULL) {", " SSLerr(SSL_F_SSL3_CTX_CTRL, ERR_R_PASSED_NULL_PARAMETER);", " return 0;", " }", " pkdh = ssl_dh_to_pkey(dh);", " if (pkdh == NULL) {", " SSLerr(SSL_F_SSL3_CTX_CTRL, ERR_R_MALLOC_FAILURE);", " return 0;", " }", " if (!ssl_ctx_security(ctx, SSL_SECOP_TMP_DH,", " EVP_PKEY_security_bits(pkdh), 0, pkdh)) {", " SSLerr(SSL_F_SSL3_CTX_CTRL, SSL_R_DH_KEY_TOO_SMALL);", " EVP_PKEY_free(pkdh);", " return 0;", " }", " EVP_PKEY_free(ctx->cert->dh_tmp);", " ctx->cert->dh_tmp = pkdh;", " return 1;", "}" ] }, { "parent": "", "source_code": [ "SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth)", "{", " if ((ret->cert = ssl_cert_new()) == NULL)", " goto err;", "}" ] }, { "parent": "", "source_code": [ "CERT *ssl_cert_new(void)", "{", " CERT *ret = OPENSSL_zalloc(sizeof(*ret));", " if (ret == NULL) {", " SSLerr(SSL_F_SSL_CERT_NEW, ERR_R_MALLOC_FAILURE);", " return NULL;", " }", " ret->key = &(ret->pkeys[SSL_PKEY_RSA]);", " ret->references = 1;", " ret->sec_cb = ssl_security_default_callback;", " ret->sec_level = OPENSSL_TLS_SECURITY_LEVEL;", " ret->sec_ex = NULL;", " ret->lock = CRYPTO_THREAD_lock_new();", " if (ret->lock == NULL) {", " SSLerr(SSL_F_SSL_CERT_NEW, ERR_R_MALLOC_FAILURE);", " OPENSSL_free(ret);", " return NULL;", " }", " return ret;", "}" ] }, { "parent": "", "source_code": [ "static int ssl_security_default_callback(const SSL *s, const SSL_CTX *ctx,", " int op, int bits, int nid, void *other,", " void *ex)", "{", " int level, minbits;", " static const int minbits_table[5] = { 80, 112, 128, 192, 256 };", " if (ctx)", " level = SSL_CTX_get_security_level(ctx);", " else", " level = SSL_get_security_level(s);", " if (level <= 0) {", " /*", " * No EDH keys weaker than 1024-bits even at level 0, otherwise,", " * anything goes.", " */", " if (op == SSL_SECOP_TMP_DH && bits < 80)", " return 0;", " return 1;", " }", " if (level > 5)", " level = 5;", " minbits = minbits_table[level - 1];", " switch (op) {", " case SSL_SECOP_CIPHER_SUPPORTED:", " case SSL_SECOP_CIPHER_SHARED:", " case SSL_SECOP_CIPHER_CHECK:", " {", " const SSL_CIPHER *c = other;", " /* No ciphers below security level */", " if (bits < minbits)", " return 0;", " /* No unauthenticated ciphersuites */", " if (c->algorithm_auth & SSL_aNULL)", " return 0;", " /* No MD5 mac ciphersuites */", " if (c->algorithm_mac & SSL_MD5)", " return 0;", " /* SHA1 HMAC is 160 bits of security */", " if (minbits > 160 && c->algorithm_mac & SSL_SHA1)", " return 0;", " /* Level 2: no RC4 */", " if (level >= 2 && c->algorithm_enc == SSL_RC4)", " return 0;", " /* Level 3: forward secure ciphersuites only */", " if (level >= 3 && c->min_tls != TLS1_3_VERSION &&", " !(c->algorithm_mkey & (SSL_kEDH | SSL_kEECDH)))", " return 0;", " break;", " }", " case SSL_SECOP_VERSION:", " if (!SSL_IS_DTLS(s)) {", " /* SSLv3 not allowed at level 2 */", " if (nid <= SSL3_VERSION && level >= 2)", " return 0;", " /* TLS v1.1 and above only for level 3 */", " if (nid <= TLS1_VERSION && level >= 3)", " return 0;", " /* TLS v1.2 only for level 4 and above */", " if (nid <= TLS1_1_VERSION && level >= 4)", " return 0;", " } else {", " /* DTLS v1.2 only for level 4 and above */", " if (DTLS_VERSION_LT(nid, DTLS1_2_VERSION) && level >= 4)", " return 0;", " }", " break;", " case SSL_SECOP_COMPRESSION:", " if (level >= 2)", " return 0;", " break;", " case SSL_SECOP_TICKET:", " if (level >= 3)", " return 0;", " break;", " default:", " if (bits < minbits)", " return 0;", " }", " return 1;", "}" ] } ], "type": "fnptr-struct" }
null
null
null
null
null
null
{ "callees": { "targets": { "NULL": "", "X509_STORE_CTX_get1_crls": null, "aesni_encrypt": null, "alpn_cb": null, "bind_engine": null, "crls_http_cb": null, "format_metric": null, "format_time_us": null, "l_alloc": null, "lj_alloc_f": null, "ossl_statem_accept": null, "ossl_statem_connect": null, "record_rate": null, "sock_read": null, "ssl3_put_cipher_by_char": null, "ssl_read": null, "ssl_security_default_callback": null, "tls1_md5_final_raw": null, "tls1_sha1_final_raw": null, "tls1_sha256_final_raw": null, "tls1_sha512_final_raw": null } }, "callsite": "dsa->meth->bn_mod_exp", "chain_summary": [ { "parent": "", "source_code": [ "static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in,", " BIGNUM **kinvp, BIGNUM **rp,", " const unsigned char *dgst, int dlen)", "{", " if ((dsa)->meth->bn_mod_exp != NULL) {", " if (!dsa->meth->bn_mod_exp(dsa, r, dsa->g, k, dsa->p, ctx,", " dsa->method_mont_p))", " goto err;", " } else {", " if (!BN_mod_exp_mont(r, dsa->g, k, dsa->p, ctx, dsa->method_mont_p))", " goto err;", " }", "}" ] }, { "parent": "", "source_code": [ "int DSA_meth_set_bn_mod_exp(DSA_METHOD *dsam,", " int (*bn_mod_exp) (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *,", " const BIGNUM *, BN_CTX *, BN_MONT_CTX *))", "{", " dsam->bn_mod_exp = bn_mod_exp;", " return 1;", "}" ] }, { "parent": "", "source_code": [ "static int capi_init(ENGINE *e)", "{", " /* Setup DSA Method */", " dsa_capi_idx = DSA_get_ex_new_index(0, NULL, NULL, NULL, 0);", " ossl_dsa_meth = DSA_OpenSSL();", " if ( !DSA_meth_set_sign(capi_dsa_method, capi_dsa_do_sign)", " || !DSA_meth_set_verify(capi_dsa_method,", " DSA_meth_get_verify(ossl_dsa_meth))", " || !DSA_meth_set_finish(capi_dsa_method, capi_dsa_free)", " || !DSA_meth_set_mod_exp(capi_dsa_method,", " DSA_meth_get_mod_exp(ossl_dsa_meth))", " || !DSA_meth_set_bn_mod_exp(capi_dsa_method,", " DSA_meth_get_bn_mod_exp(ossl_dsa_meth))) {", " goto memerr;", " }", "}" ] }, { "parent": "", "source_code": [ "int (*DSA_meth_get_bn_mod_exp(const DSA_METHOD *dsam))", " (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *,", " BN_MONT_CTX *)", "{", " return dsam->bn_mod_exp;", "}" ] }, { "parent": "", "source_code": [ "const DSA_METHOD *DSA_OpenSSL(void)", "{", " return &openssl_dsa_meth;", "}" ] }, { "parent": "", "source_code": [ "static DSA_METHOD openssl_dsa_meth = {", " \"OpenSSL DSA method\",", " dsa_do_sign,", " dsa_sign_setup_no_digest,", " dsa_do_verify,", " NULL, /* dsa_mod_exp, */", " NULL, /* dsa_bn_mod_exp, */", " dsa_init,", " dsa_finish,", " DSA_FLAG_FIPS_METHOD,", " NULL,", " NULL,", " NULL", "};" ] }, { "parent": "", "source_code": [ "int (*DSA_meth_get_mod_exp(const DSA_METHOD *dsam))", " (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *,", " const BIGNUM *, const BIGNUM *, BN_CTX *, BN_MONT_CTX *)", "{", " return dsam->dsa_mod_exp;", "}", "int DSA_meth_set_mod_exp(DSA_METHOD *dsam,", " int (*mod_exp) (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *,", " const BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *,", " BN_MONT_CTX *))", "{", " dsam->dsa_mod_exp = mod_exp;", " return 1;", "}" ] } ], "type": "fnptr-struct" }
null
null
null
null
null
null
{ "callees": { "targets": { "NULL": null, "X509_STORE_CTX_get1_crls": null, "aesni_encrypt": null, "alpn_cb": null, "bind_engine": null, "crls_http_cb": null, "format_metric": null, "format_time_us": null, "l_alloc": null, "lj_alloc_f": null, "ossl_statem_accept": null, "ossl_statem_connect": null, "record_rate": null, "sock_read": null, "ssl3_put_cipher_by_char": "", "ssl_read": null, "ssl_security_default_callback": null, "tls1_md5_final_raw": null, "tls1_sha1_final_raw": null, "tls1_sha256_final_raw": null, "tls1_sha512_final_raw": null } }, "callsite": "s->method->put_cipher_by_char", "chain_summary": [ { "parent": "", "source_code": [ "int ssl_cipher_list_to_bytes(SSL *s, STACK_OF(SSL_CIPHER) *sk, WPACKET *pkt)", "{", " if (!s->method->put_cipher_by_char(c, pkt, &len)) {", " SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_F_SSL_CIPHER_LIST_TO_BYTES,", " ERR_R_INTERNAL_ERROR);", " return 0;", " }", "}" ] }, { "parent": "", "source_code": [ "# define IMPLEMENT_tls_meth_func(version, flags, mask, func_name, s_accept, \\", " s_connect, enc_data) \\", "const SSL_METHOD *func_name(void) \\", " { \\", " static const SSL_METHOD func_name##_data= { \\", " version, \\", " flags, \\", " mask, \\", " tls1_new, \\", " tls1_clear, \\", " tls1_free, \\", " s_accept, \\", " s_connect, \\", " ssl3_read, \\", " ssl3_peek, \\", " ssl3_write, \\", " ssl3_shutdown, \\", " ssl3_renegotiate, \\", " ssl3_renegotiate_check, \\", " ssl3_read_bytes, \\", " ssl3_write_bytes, \\", " ssl3_dispatch_alert, \\", " ssl3_ctrl, \\", " ssl3_ctx_ctrl, \\", " ssl3_get_cipher_by_char, \\", " ssl3_put_cipher_by_char, \\", " ssl3_pending, \\", " ssl3_num_ciphers, \\", " ssl3_get_cipher, \\", " tls1_default_timeout, \\", " &enc_data, \\", " ssl_undefined_void_function, \\", " ssl3_callback_ctrl, \\", " ssl3_ctx_callback_ctrl, \\", " }; \\", " return &func_name##_data; \\", " }" ] }, { "parent": "", "source_code": [ "struct ssl_method_st {", " int version;", " unsigned flags;", " unsigned long mask;", " int (*ssl_new) (SSL *s);", " int (*ssl_clear) (SSL *s);", " void (*ssl_free) (SSL *s);", " int (*ssl_accept) (SSL *s);", " int (*ssl_connect) (SSL *s);", " int (*ssl_read) (SSL *s, void *buf, size_t len, size_t *readbytes);", " int (*ssl_peek) (SSL *s, void *buf, size_t len, size_t *readbytes);", " int (*ssl_write) (SSL *s, const void *buf, size_t len, size_t *written);", " int (*ssl_shutdown) (SSL *s);", " int (*ssl_renegotiate) (SSL *s);", " int (*ssl_renegotiate_check) (SSL *s, int);", " int (*ssl_read_bytes) (SSL *s, int type, int *recvd_type,", " unsigned char *buf, size_t len, int peek,", " size_t *readbytes);", " int (*ssl_write_bytes) (SSL *s, int type, const void *buf_, size_t len,", " size_t *written);", " int (*ssl_dispatch_alert) (SSL *s);", " long (*ssl_ctrl) (SSL *s, int cmd, long larg, void *parg);", " long (*ssl_ctx_ctrl) (SSL_CTX *ctx, int cmd, long larg, void *parg);", " const SSL_CIPHER *(*get_cipher_by_char) (const unsigned char *ptr);", " int (*put_cipher_by_char) (const SSL_CIPHER *cipher, WPACKET *pkt,", " size_t *len);", " size_t (*ssl_pending) (const SSL *s);", " int (*num_ciphers) (void);", " const SSL_CIPHER *(*get_cipher) (unsigned ncipher);", " long (*get_timeout) (void);", " const struct ssl3_enc_method *ssl3_enc; /* Extra SSLv3/TLS stuff */", " int (*ssl_version) (void);", " long (*ssl_callback_ctrl) (SSL *s, int cb_id, void (*fp) (void));", " long (*ssl_ctx_callback_ctrl) (SSL_CTX *s, int cb_id, void (*fp) (void));", "};" ] }, { "parent": "", "source_code": [ "int ssl3_put_cipher_by_char(const SSL_CIPHER *c, WPACKET *pkt, size_t *len)", "{", " if ((c->id & 0xff000000) != SSL3_CK_CIPHERSUITE_FLAG) {", " *len = 0;", " return 1;", " }", " if (!WPACKET_put_bytes_u16(pkt, c->id & 0xffff))", " return 0;", " *len = 2;", " return 1;", "}" ] } ], "type": "fnptr-struct" }
null
null
null
null
null
null
{ "callees": { "targets": { "NULL": null, "X509_STORE_CTX_get1_crls": null, "aesni_encrypt": null, "alpn_cb": "", "bind_engine": null, "crls_http_cb": null, "format_metric": null, "format_time_us": null, "l_alloc": null, "lj_alloc_f": null, "ossl_statem_accept": null, "ossl_statem_connect": null, "record_rate": null, "sock_read": null, "ssl3_put_cipher_by_char": null, "ssl_read": null, "ssl_security_default_callback": null, "tls1_md5_final_raw": null, "tls1_sha1_final_raw": null, "tls1_sha256_final_raw": null, "tls1_sha512_final_raw": null } }, "callsite": "s->ctx->ext.alpn_select_cb", "chain_summary": [ { "parent": "", "source_code": [ "int tls_handle_alpn(SSL *s)", "{", " if (s->ctx->ext.alpn_select_cb != NULL && s->s3->alpn_proposed != NULL) {", " int r = s->ctx->ext.alpn_select_cb(s, &selected, &selected_len,", " s->s3->alpn_proposed,", " (unsigned int)s->s3->alpn_proposed_len,", " s->ctx->ext.alpn_select_cb_arg);", " }", " return 1;", "}" ] }, { "parent": "", "source_code": [ "void SSL_CTX_set_alpn_select_cb(SSL_CTX *ctx,", " SSL_CTX_alpn_select_cb_func cb,", " void *arg)", "{", " ctx->ext.alpn_select_cb = cb;", " ctx->ext.alpn_select_cb_arg = arg;", "}" ] }, { "parent": "", "source_code": [ "int s_server_main(int argc, char *argv[])", "{", " if (alpn_ctx.data)", " SSL_CTX_set_alpn_select_cb(ctx, alpn_cb, &alpn_ctx);", "}" ] }, { "parent": "", "source_code": [ "static int alpn_cb(SSL *s, const unsigned char **out, unsigned char *outlen,", " const unsigned char *in, unsigned int inlen, void *arg)", "{", " tlsextalpnctx *alpn_ctx = arg;", " if (!s_quiet) {", " /* We can assume that |in| is syntactically valid. */", " unsigned int i;", " BIO_printf(bio_s_out, \"ALPN protocols advertised by the client: \");", " for (i = 0; i < inlen;) {", " if (i)", " BIO_write(bio_s_out, \", \", 2);", " BIO_write(bio_s_out, &in[i + 1], in[i]);", " i += in[i] + 1;", " }", " BIO_write(bio_s_out, \"\\n\", 1);", " }", " if (SSL_select_next_proto", " ((unsigned char **)out, outlen, alpn_ctx->data, alpn_ctx->len, in,", " inlen) != OPENSSL_NPN_NEGOTIATED) {", " return SSL_TLSEXT_ERR_NOACK;", " }", " if (!s_quiet) {", " BIO_printf(bio_s_out, \"ALPN protocols selected: \");", " BIO_write(bio_s_out, *out, *outlen);", " BIO_write(bio_s_out, \"\\n\", 1);", " }", " return SSL_TLSEXT_ERR_OK;", "}" ] } ], "type": "fnptr-struct" }
null
null
null
null
null
null
{ "callees": { "targets": { "NULL": null, "X509_STORE_CTX_get1_crls": null, "aesni_encrypt": "", "alpn_cb": null, "bind_engine": null, "crls_http_cb": null, "format_metric": null, "format_time_us": null, "l_alloc": null, "lj_alloc_f": null, "ossl_statem_accept": null, "ossl_statem_connect": null, "record_rate": null, "sock_read": null, "ssl3_put_cipher_by_char": null, "ssl_read": null, "ssl_security_default_callback": null, "tls1_md5_final_raw": null, "tls1_sha1_final_raw": null, "tls1_sha256_final_raw": null, "tls1_sha512_final_raw": null } }, "callsite": "block", "chain_summary": [ { "parent": "", "source_code": [ "int CRYPTO_gcm128_encrypt(GCM128_CONTEXT *ctx,", " const unsigned char *in, unsigned char *out,", " size_t len)", "{", " block128_f block = ctx->block;", " (*block) (ctx->Yi.c, ctx->EKi.c, key);", "}" ] }, { "parent": "", "source_code": [ "static int aes_gcm_tls_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,", " const unsigned char *in, size_t len)", "{", " EVP_AES_GCM_CTX *gctx = EVP_C_DATA(EVP_AES_GCM_CTX,ctx);", " int rv = -1;", " /* Encrypt/decrypt must be performed in place */", " if (out != in", " || len < (EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN))", " return -1;", " /*", " * Set IV from start of buffer or generate IV and write to start of", " * buffer.", " */", " if (EVP_CIPHER_CTX_ctrl(ctx, ctx->encrypt ? EVP_CTRL_GCM_IV_GEN", " : EVP_CTRL_GCM_SET_IV_INV,", " EVP_GCM_TLS_EXPLICIT_IV_LEN, out) <= 0)", " goto err;", " /* Use saved AAD */", " if (CRYPTO_gcm128_aad(&gctx->gcm, ctx->buf, gctx->tls_aad_len))", " goto err;", " /* Fix buffer and length to point to payload */", " in += EVP_GCM_TLS_EXPLICIT_IV_LEN;", " out += EVP_GCM_TLS_EXPLICIT_IV_LEN;", " len -= EVP_GCM_TLS_EXPLICIT_IV_LEN + EVP_GCM_TLS_TAG_LEN;", " if (ctx->encrypt) {", " /* Encrypt payload */", " if (gctx->ctr) {", " size_t bulk = 0;", "#if defined(AES_GCM_ASM)", " if (len >= 32 && AES_GCM_ASM(gctx)) {", " if (CRYPTO_gcm128_encrypt(&gctx->gcm, NULL, NULL, 0))", " return -1;", " bulk = AES_gcm_encrypt(in, out, len,", " gctx->gcm.key,", " gctx->gcm.Yi.c, gctx->gcm.Xi.u);", " gctx->gcm.len.u[1] += bulk;", " }", "#endif", " }", " }", "}" ] }, { "parent": "", "source_code": [ "void CRYPTO_gcm128_init(GCM128_CONTEXT *ctx, void *key, block128_f block)", "{", " const union {", " long one;", " char little;", " } is_endian = { 1 };", " memset(ctx, 0, sizeof(*ctx));", " ctx->block = block;", " ctx->key = key;", "}" ] }, { "parent": "", "source_code": [ "static int aesni_gcm_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,", " const unsigned char *iv, int enc)", "{", " EVP_AES_GCM_CTX *gctx = EVP_C_DATA(EVP_AES_GCM_CTX,ctx);", " if (!iv && !key)", " return 1;", " if (key) {", " aesni_set_encrypt_key(key, EVP_CIPHER_CTX_key_length(ctx) * 8,", " &gctx->ks.ks);", " CRYPTO_gcm128_init(&gctx->gcm, &gctx->ks, (block128_f) aesni_encrypt);", " gctx->ctr = (ctr128_f) aesni_ctr32_encrypt_blocks;", " /*", " * If we have an iv can set it directly, otherwise use saved IV.", " */", " if (iv == NULL && gctx->iv_set)", " iv = gctx->iv;", " if (iv) {", " CRYPTO_gcm128_setiv(&gctx->gcm, iv, gctx->ivlen);", " gctx->iv_set = 1;", " }", " gctx->key_set = 1;", " }", "}" ] }, { "parent": "", "source_code": [ "void aesni_encrypt(const unsigned char *in, unsigned char *out,", " const AES_KEY *key);" ] } ], "type": "fnptr-struct" }
null
null
null
null
null
null
{ "callees": { "targets": { "NULL": null, "X509_STORE_CTX_get1_crls": null, "aesni_encrypt": null, "alpn_cb": null, "bind_engine": null, "crls_http_cb": null, "format_metric": null, "format_time_us": null, "l_alloc": null, "lj_alloc_f": null, "ossl_statem_accept": "", "ossl_statem_connect": "", "record_rate": null, "sock_read": null, "ssl3_put_cipher_by_char": null, "ssl_read": null, "ssl_security_default_callback": null, "tls1_md5_final_raw": null, "tls1_sha1_final_raw": null, "tls1_sha256_final_raw": null, "tls1_sha512_final_raw": null } }, "callsite": "s->handshake_func", "chain_summary": [ { "parent": "", "source_code": [ "int ssl3_write_bytes(SSL *s, int type, const void *buf_, size_t len,", " size_t *written)", "{", " if (SSL_in_init(s) && !ossl_statem_get_in_handshake(s)", " && s->early_data_state != SSL_EARLY_DATA_UNAUTH_WRITING) {", " i = s->handshake_func(s);", " /* SSLfatal() already called */", " if (i < 0)", " return i;", " if (i == 0) {", " return -1;", " }", " }", "}" ] }, { "parent": "", "source_code": [ "WORK_STATE tls_finish_handshake(SSL *s, WORK_STATE wst, int clearbufs, int stop)", "{", " void (*cb) (const SSL *ssl, int type, int val) = NULL;", " int cleanuphand = s->statem.cleanuphand;", " if (clearbufs) {", " if (!SSL_IS_DTLS(s)", "#ifndef OPENSSL_NO_SCTP", " /*", " * RFC6083: SCTP provides a reliable and in-sequence transport service for DTLS", " * messages that require it. Therefore, DTLS procedures for retransmissions", " * MUST NOT be used.", " * Hence the init_buf can be cleared when DTLS over SCTP as transport is used.", " */", " || BIO_dgram_is_sctp(SSL_get_wbio(s))", "#endif", " ) {", " /*", " * We don't do this in DTLS over UDP because we may still need the init_buf", " * in case there are any unexpected retransmits", " */", " BUF_MEM_free(s->init_buf);", " s->init_buf = NULL;", " }", " if (!ssl_free_wbio_buffer(s)) {", " SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_F_TLS_FINISH_HANDSHAKE,", " ERR_R_INTERNAL_ERROR);", " return WORK_ERROR;", " }", " s->init_num = 0;", " }", " if (SSL_IS_TLS13(s) && !s->server", " && s->post_handshake_auth == SSL_PHA_REQUESTED)", " s->post_handshake_auth = SSL_PHA_EXT_SENT;", " /*", " * Only set if there was a Finished message and this isn't after a TLSv1.3", " * post handshake exchange", " */", " if (cleanuphand) {", " /* skipped if we just sent a HelloRequest */", " s->renegotiate = 0;", " s->new_session = 0;", " s->statem.cleanuphand = 0;", " s->ext.ticket_expected = 0;", " ssl3_cleanup_key_block(s);", " if (s->server) {", " /*", " * In TLSv1.3 we update the cache as part of constructing the", " * NewSessionTicket", " */", " if (!SSL_IS_TLS13(s))", " ssl_update_cache(s, SSL_SESS_CACHE_SERVER);", " /* N.B. s->ctx may not equal s->session_ctx */", " tsan_counter(&s->ctx->stats.sess_accept_good);", " s->handshake_func = ossl_statem_accept;", " } else {", " if (SSL_IS_TLS13(s)) {", " /*", " * We encourage applications to only use TLSv1.3 tickets once,", " * so we remove this one from the cache.", " */", " if ((s->session_ctx->session_cache_mode", " & SSL_SESS_CACHE_CLIENT) != 0)", " SSL_CTX_remove_session(s->session_ctx, s->session);", " } else {", " /*", " * In TLSv1.3 we update the cache as part of processing the", " * NewSessionTicket", " */", " ssl_update_cache(s, SSL_SESS_CACHE_CLIENT);", " }", " if (s->hit)", " tsan_counter(&s->session_ctx->stats.sess_hit);", " s->handshake_func = ossl_statem_connect;", " tsan_counter(&s->session_ctx->stats.sess_connect_good);", " }", " if (SSL_IS_DTLS(s)) {", " /* done with handshaking */", " s->d1->handshake_read_seq = 0;", " s->d1->handshake_write_seq = 0;", " s->d1->next_handshake_write_seq = 0;", " dtls1_clear_received_buffer(s);", " }", " }", " if (s->info_callback != NULL)", " cb = s->info_callback;", " else if (s->ctx->info_callback != NULL)", " cb = s->ctx->info_callback;", " /* The callback may expect us to not be in init at handshake done */", " ossl_statem_set_in_init(s, 0);", " if (cb != NULL) {", " if (cleanuphand", " || !SSL_IS_TLS13(s)", " || SSL_IS_FIRST_HANDSHAKE(s))", " cb(s, SSL_CB_HANDSHAKE_DONE, 1);", " }", " if (!stop) {", " /* If we've got more work to do we go back into init */", " ossl_statem_set_in_init(s, 1);", " return WORK_FINISHED_CONTINUE;", " }", " return WORK_FINISHED_STOP;", "}" ] } ], "type": "fnptr-struct" }
null
null
null
null
null
null
{ "callees": { "targets": { "NULL": null, "X509_STORE_CTX_get1_crls": null, "aesni_encrypt": null, "alpn_cb": null, "bind_engine": null, "crls_http_cb": null, "format_metric": null, "format_time_us": null, "l_alloc": null, "lj_alloc_f": null, "ossl_statem_accept": null, "ossl_statem_connect": null, "record_rate": null, "sock_read": null, "ssl3_put_cipher_by_char": null, "ssl_read": null, "ssl_security_default_callback": null, "tls1_md5_final_raw": "", "tls1_sha1_final_raw": "", "tls1_sha256_final_raw": "", "tls1_sha512_final_raw": "" } }, "callsite": "md_final_raw", "chain_summary": [ { "parent": "", "source_code": [ "int unsigned char *md_out,", " size_t *md_out_size,", " const unsigned char header[13],", " const unsigned char *data,", " size_t data_plus_mac_size,", " size_t data_plus_mac_plus_padding_size,", " const unsigned char *mac_secret,", " size_t mac_secret_length, char is_sslv3)", "{", " union {", " double align;", " unsigned char c[sizeof(LARGEST_DIGEST_CTX)];", " } md_state;", " void (*md_final_raw) (void *ctx, unsigned char *md_out);", " void (*md_transform) (void *ctx, const unsigned char *block);", "...", "switch (EVP_MD_CTX_type(ctx)) {", "case NID_md5: ", "...", " md_final_raw = tls1_md5_final_raw;", " ...", " break;", "case NID_sha1:", "...", " md_final_raw = tls1_sha1_final_raw;", " md_transform =", " (void (*)(void *ctx, const unsigned char *block))SHA1_Transform;", " md_size = 20;", " break;", "case NID_sha224:", "...", " md_final_raw = tls1_sha256_final_raw;", " md_transform =", " (void (*)(void *ctx, const unsigned char *block))SHA256_Transform;", "...", " break;", "case NID_sha256:", " if (SHA256_Init((SHA256_CTX *)md_state.c) <= 0)", " return 0;", " md_final_raw = tls1_sha256_final_raw;", " md_transform =", " (void (*)(void *ctx, const unsigned char *block))SHA256_Transform;", " md_size = 32;", " break;", "case NID_sha384:", "...", " md_final_raw = tls1_sha512_final_raw;", " md_transform =", " (void (*)(void *ctx, const unsigned char *block))SHA512_Transform;", "...", " break;", "case NID_sha512:", "...", " md_final_raw = tls1_sha512_final_raw;", "...", " break;", "default:", " ...", "for (i = num_starting_blocks; i <= num_starting_blocks + variance_blocks;", " i++) {", "...", " md_transform(md_state.c, block);", " md_final_raw(md_state.c, block);", " /* If this is index_b, copy the hash value to |mac_out|. */", " for (j = 0; j < md_size; j++)", " mac_out[j] |= block[j] & is_block_b;", "...", " }", "}", "}" ] } ], "type": "fnptr-only" }
null
null
null
null
null
null
{ "callees": { "targets": { "NULL": null, "X509_STORE_CTX_get1_crls": null, "aesni_encrypt": null, "alpn_cb": null, "bind_engine": "", "crls_http_cb": null, "format_metric": null, "format_time_us": null, "l_alloc": null, "lj_alloc_f": null, "ossl_statem_accept": null, "ossl_statem_connect": null, "record_rate": null, "sock_read": null, "ssl3_put_cipher_by_char": null, "ssl_read": null, "ssl_security_default_callback": null, "tls1_md5_final_raw": null, "tls1_sha1_final_raw": null, "tls1_sha256_final_raw": null, "tls1_sha512_final_raw": null } }, "callsite": "ctx->bind_engine", "chain_summary": [ { "parent": "", "source_code": [ "void engine_load_dynamic_int(void)", "{", " ENGINE *toadd = engine_dynamic();", " if (!toadd)", " return;", " ENGINE_add(toadd);", " /*", " * If the \"add\" worked, it gets a structural reference. So either way, we", " * release our just-created reference.", " */", " ENGINE_free(toadd);", " /*", " * If the \"add\" didn't work, it was probably a conflict because it was", " * already added (eg. someone calling ENGINE_load_blah then calling", " * ENGINE_load_builtin_engines() perhaps).", " */", " ERR_clear_error();", "}" ] }, { "parent": "", "source_code": [ "static ENGINE *engine_dynamic(void)", "{", " ENGINE *ret = ENGINE_new();", " if (ret == NULL)", " return NULL;", " if (!ENGINE_set_id(ret, engine_dynamic_id) ||", " !ENGINE_set_name(ret, engine_dynamic_name) ||", " !ENGINE_set_init_function(ret, dynamic_init) ||", " !ENGINE_set_finish_function(ret, dynamic_finish) ||", " !ENGINE_set_ctrl_function(ret, dynamic_ctrl) ||", " !ENGINE_set_flags(ret, ENGINE_FLAGS_BY_ID_COPY) ||", " !ENGINE_set_cmd_defns(ret, dynamic_cmd_defns)) {", " ENGINE_free(ret);", " return NULL;", " }", " return ret;", "}" ] }, { "parent": "", "source_code": [ "/* Add another \"ENGINE\" type into the list. */", "int ENGINE_add(ENGINE *e)", "{", " int to_return = 1;", " if (e == NULL) {", " ENGINEerr(ENGINE_F_ENGINE_ADD, ERR_R_PASSED_NULL_PARAMETER);", " return 0;", " }", " if ((e->id == NULL) || (e->name == NULL)) {", " ENGINEerr(ENGINE_F_ENGINE_ADD, ENGINE_R_ID_OR_NAME_MISSING);", " return 0;", " }", " CRYPTO_THREAD_write_lock(global_engine_lock);", " if (!engine_list_add(e)) {", " ENGINEerr(ENGINE_F_ENGINE_ADD, ENGINE_R_INTERNAL_LIST_ERROR);", " to_return = 0;", " }", " CRYPTO_THREAD_unlock(global_engine_lock);", " return to_return;", "}" ] }, { "parent": "", "source_code": [ "ENGINE *ENGINE_by_id(const char *id)", "{", " ENGINE *iterator;", " char *load_dir = NULL;", " if (id == NULL) {", " ENGINEerr(ENGINE_F_ENGINE_BY_ID, ERR_R_PASSED_NULL_PARAMETER);", " return NULL;", " }", " if (!RUN_ONCE(&engine_lock_init, do_engine_lock_init)) {", " ENGINEerr(ENGINE_F_ENGINE_BY_ID, ERR_R_MALLOC_FAILURE);", " return NULL;", " }", " CRYPTO_THREAD_write_lock(global_engine_lock);", " iterator = engine_list_head;", " while (iterator && (strcmp(id, iterator->id) != 0))", " iterator = iterator->next;", " if (iterator != NULL) {", " /*", " * We need to return a structural reference. If this is an ENGINE", " * type that returns copies, make a duplicate - otherwise increment", " * the existing ENGINE's reference count.", " */", " if (iterator->flags & ENGINE_FLAGS_BY_ID_COPY) {", " ENGINE *cp = ENGINE_new();", " if (cp == NULL)", " iterator = NULL;", " else {", " engine_cpy(cp, iterator);", " iterator = cp;", " }", " } else {", " iterator->struct_ref++;", " engine_ref_debug(iterator, 0, 1);", " }", " }", " CRYPTO_THREAD_unlock(global_engine_lock);", " if (iterator != NULL)", " return iterator;", " /*", " * Prevent infinite recursion if we're looking for the dynamic engine.", " */", " if (strcmp(id, \"dynamic\")) {", " if ((load_dir = ossl_safe_getenv(\"OPENSSL_ENGINES\")) == NULL)", " load_dir = ENGINESDIR;", " iterator = ENGINE_by_id(\"dynamic\");", " if (!iterator || !ENGINE_ctrl_cmd_string(iterator, \"ID\", id, 0) ||", " !ENGINE_ctrl_cmd_string(iterator, \"DIR_LOAD\", \"2\", 0) ||", " !ENGINE_ctrl_cmd_string(iterator, \"DIR_ADD\",", " load_dir, 0) ||", " !ENGINE_ctrl_cmd_string(iterator, \"LIST_ADD\", \"1\", 0) ||", " !ENGINE_ctrl_cmd_string(iterator, \"LOAD\", NULL, 0))", " goto notfound;", " return iterator;", " }", " notfound:", " ENGINE_free(iterator);", " ENGINEerr(ENGINE_F_ENGINE_BY_ID, ENGINE_R_NO_SUCH_ENGINE);", " ERR_add_error_data(2, \"id=\", id);", " return NULL;", " /* EEK! Experimental code ends */", "}" ] }, { "parent": "", "source_code": [ "int ENGINE_ctrl_cmd_string(ENGINE *e, const char *cmd_name, const char *arg,", " int cmd_optional)", "{", " int num, flags;", " long l;", " char *ptr;", " if (e == NULL || cmd_name == NULL) {", " ENGINEerr(ENGINE_F_ENGINE_CTRL_CMD_STRING, ERR_R_PASSED_NULL_PARAMETER);", " return 0;", " }", " if (e->ctrl == NULL", " || (num = ENGINE_ctrl(e, ENGINE_CTRL_GET_CMD_FROM_NAME,", " 0, (void *)cmd_name, NULL)) <= 0) {", " }", "}" ] }, { "parent": "", "source_code": [ "int ENGINE_set_ctrl_function(ENGINE *e, ENGINE_CTRL_FUNC_PTR ctrl_f)", "{", " e->ctrl = ctrl_f;", " return 1;", "}" ] }, { "parent": "", "source_code": [ "int ENGINE_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f) (void))", "{", " int ctrl_exists, ref_exists;", " if (e == NULL) {", " ENGINEerr(ENGINE_F_ENGINE_CTRL, ERR_R_PASSED_NULL_PARAMETER);", " return 0;", " }", " CRYPTO_THREAD_write_lock(global_engine_lock);", " ref_exists = ((e->struct_ref > 0) ? 1 : 0);", " CRYPTO_THREAD_unlock(global_engine_lock);", " ctrl_exists = ((e->ctrl == NULL) ? 0 : 1);", " if (!ref_exists) {", " ENGINEerr(ENGINE_F_ENGINE_CTRL, ENGINE_R_NO_REFERENCE);", " return 0;", " }", " /*", " * Intercept any \"root-level\" commands before trying to hand them on to", " * ctrl() handlers.", " */", " switch (cmd) {", " case ENGINE_CTRL_HAS_CTRL_FUNCTION:", " return ctrl_exists;", " case ENGINE_CTRL_GET_FIRST_CMD_TYPE:", " case ENGINE_CTRL_GET_NEXT_CMD_TYPE:", " case ENGINE_CTRL_GET_CMD_FROM_NAME:", " case ENGINE_CTRL_GET_NAME_LEN_FROM_CMD:", " case ENGINE_CTRL_GET_NAME_FROM_CMD:", " case ENGINE_CTRL_GET_DESC_LEN_FROM_CMD:", " case ENGINE_CTRL_GET_DESC_FROM_CMD:", " case ENGINE_CTRL_GET_CMD_FLAGS:", " if (ctrl_exists && !(e->flags & ENGINE_FLAGS_MANUAL_CMD_CTRL))", " return int_ctrl_helper(e, cmd, i, p, f);", " if (!ctrl_exists) {", " ENGINEerr(ENGINE_F_ENGINE_CTRL, ENGINE_R_NO_CONTROL_FUNCTION);", " /*", " * For these cmd-related functions, failure is indicated by a -1", " * return value (because 0 is used as a valid return in some", " * places).", " */", " return -1;", " }", " default:", " break;", " }", " /* Anything else requires a ctrl() handler to exist. */", " if (!ctrl_exists) {", " ENGINEerr(ENGINE_F_ENGINE_CTRL, ENGINE_R_NO_CONTROL_FUNCTION);", " return 0;", " }", " return e->ctrl(e, cmd, i, p, f);", "}" ] }, { "parent": "", "source_code": [ "static int dynamic_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f) (void))", "{", " dynamic_data_ctx *ctx = dynamic_get_data_ctx(e);", " switch (cmd) {", " case DYNAMIC_CMD_LOAD:", " return dynamic_load(e, ctx);", " }", "}" ] }, { "parent": "", "source_code": [ "/*", " * This function retrieves the context structure from an ENGINE's \"ex_data\",", " * or if it doesn't exist yet, sets it up.", " */", "static dynamic_data_ctx *dynamic_get_data_ctx(ENGINE *e)", "{", " dynamic_data_ctx *ctx;", " if (dynamic_ex_data_idx < 0) {", " /*", " * Create and register the ENGINE ex_data, and associate our \"free\"", " * function with it to ensure any allocated contexts get freed when", " * an ENGINE goes underground.", " */", " int new_idx = ENGINE_get_ex_new_index(0, NULL, NULL, NULL,", " dynamic_data_ctx_free_func);", " if (new_idx == -1) {", " ENGINEerr(ENGINE_F_DYNAMIC_GET_DATA_CTX, ENGINE_R_NO_INDEX);", " return NULL;", " }", " CRYPTO_THREAD_write_lock(global_engine_lock);", " /* Avoid a race by checking again inside this lock */", " if (dynamic_ex_data_idx < 0) {", " /* Good, someone didn't beat us to it */", " dynamic_ex_data_idx = new_idx;", " new_idx = -1;", " }", " CRYPTO_THREAD_unlock(global_engine_lock);", " /*", " * In theory we could \"give back\" the index here if (new_idx>-1), but", " * it's not possible and wouldn't gain us much if it were.", " */", " }", " ctx = (dynamic_data_ctx *)ENGINE_get_ex_data(e, dynamic_ex_data_idx);", " /* Check if the context needs to be created */", " if ((ctx == NULL) && !dynamic_set_data_ctx(e, &ctx))", " /* \"set_data\" will set errors if necessary */", " return NULL;", " return ctx;", "}" ] }, { "parent": "", "source_code": [ "static int dynamic_set_data_ctx(ENGINE *e, dynamic_data_ctx **ctx)", "{", " dynamic_data_ctx *c = OPENSSL_zalloc(sizeof(*c));", " int ret = 1;", " if (c == NULL) {", " ENGINEerr(ENGINE_F_DYNAMIC_SET_DATA_CTX, ERR_R_MALLOC_FAILURE);", " return 0;", " }", " c->dirs = sk_OPENSSL_STRING_new_null();", " if (c->dirs == NULL) {", " ENGINEerr(ENGINE_F_DYNAMIC_SET_DATA_CTX, ERR_R_MALLOC_FAILURE);", " OPENSSL_free(c);", " return 0;", " }", " c->DYNAMIC_F1 = \"v_check\";", " c->DYNAMIC_F2 = \"bind_engine\";", " c->dir_load = 1;", " CRYPTO_THREAD_write_lock(global_engine_lock);", " if ((*ctx = (dynamic_data_ctx *)ENGINE_get_ex_data(e,", " dynamic_ex_data_idx))", " == NULL) {", " /* Good, we're the first */", " ret = ENGINE_set_ex_data(e, dynamic_ex_data_idx, c);", " if (ret) {", " *ctx = c;", " c = NULL;", " }", " }", " CRYPTO_THREAD_unlock(global_engine_lock);", " /*", " * If we lost the race to set the context, c is non-NULL and *ctx is the", " * context of the thread that won.", " */", " if (c)", " sk_OPENSSL_STRING_free(c->dirs);", " OPENSSL_free(c);", " return ret;", "}" ] }, { "parent": "", "source_code": [ "static int dynamic_load(ENGINE *e, dynamic_data_ctx *ctx)", "{", " ENGINE cpy;", " dynamic_fns fns;", " if (ctx->dynamic_dso == NULL)", " ctx->dynamic_dso = DSO_new();", " if (ctx->dynamic_dso == NULL)", " return 0;", " if (!ctx->DYNAMIC_LIBNAME) {", " if (!ctx->engine_id)", " return 0;", " DSO_ctrl(ctx->dynamic_dso, DSO_CTRL_SET_FLAGS,", " DSO_FLAG_NAME_TRANSLATION_EXT_ONLY, NULL);", " ctx->DYNAMIC_LIBNAME =", " DSO_convert_filename(ctx->dynamic_dso, ctx->engine_id);", " }", " if (!int_load(ctx)) {", " ENGINEerr(ENGINE_F_DYNAMIC_LOAD, ENGINE_R_DSO_NOT_FOUND);", " DSO_free(ctx->dynamic_dso);", " ctx->dynamic_dso = NULL;", " return 0;", " }", " /* We have to find a bind function otherwise it'll always end badly */", " if (!", " (ctx->bind_engine =", " (dynamic_bind_engine) DSO_bind_func(ctx->dynamic_dso,", " ctx->DYNAMIC_F2))) {", " ctx->bind_engine = NULL;", " DSO_free(ctx->dynamic_dso);", " ctx->dynamic_dso = NULL;", " ENGINEerr(ENGINE_F_DYNAMIC_LOAD, ENGINE_R_DSO_FAILURE);", " return 0;", " }", " /* Do we perform version checking? */", " if (!ctx->no_vcheck) {", " unsigned long vcheck_res = 0;", " /*", " * Now we try to find a version checking function and decide how to", " * cope with failure if/when it fails.", " */", " ctx->v_check =", " (dynamic_v_check_fn) DSO_bind_func(ctx->dynamic_dso,", " ctx->DYNAMIC_F1);", " if (ctx->v_check)", " vcheck_res = ctx->v_check(OSSL_DYNAMIC_VERSION);", " /*", " * We fail if the version checker veto'd the load *or* if it is", " * deferring to us (by returning its version) and we think it is too", " * old.", " */", " if (vcheck_res < OSSL_DYNAMIC_OLDEST) {", " /* Fail */", " ctx->bind_engine = NULL;", " ctx->v_check = NULL;", " DSO_free(ctx->dynamic_dso);", " ctx->dynamic_dso = NULL;", " ENGINEerr(ENGINE_F_DYNAMIC_LOAD,", " ENGINE_R_VERSION_INCOMPATIBILITY);", " return 0;", " }", " }", " /*", " * First binary copy the ENGINE structure so that we can roll back if the", " * hand-over fails", " */", " memcpy(&cpy, e, sizeof(ENGINE));", " /*", " * Provide the ERR, \"ex_data\", memory, and locking callbacks so the", " * loaded library uses our state rather than its own. FIXME: As noted in", " * engine.h, much of this would be simplified if each area of code", " * provided its own \"summary\" structure of all related callbacks. It", " * would also increase opaqueness.", " */", " fns.static_state = ENGINE_get_static_state();", " CRYPTO_get_mem_functions(&fns.mem_fns.malloc_fn, &fns.mem_fns.realloc_fn,", " &fns.mem_fns.free_fn);", " /*", " * Now that we've loaded the dynamic engine, make sure no \"dynamic\"", " * ENGINE elements will show through.", " */", " engine_set_all_null(e);", " /* Try to bind the ENGINE onto our own ENGINE structure */", " if (!ctx->bind_engine(e, ctx->engine_id, &fns)) {", " ctx->bind_engine = NULL;", " ctx->v_check = NULL;", " DSO_free(ctx->dynamic_dso);", " ctx->dynamic_dso = NULL;", " ENGINEerr(ENGINE_F_DYNAMIC_LOAD, ENGINE_R_INIT_FAILED);", " /* Copy the original ENGINE structure back */", " memcpy(e, &cpy, sizeof(ENGINE));", " return 0;", " }", " /* Do we try to add this ENGINE to the internal list too? */", " if (ctx->list_add_value > 0) {", " if (!ENGINE_add(e)) {", " /* Do we tolerate this or fail? */", " if (ctx->list_add_value > 1) {", " /*", " * Fail - NB: By this time, it's too late to rollback, and", " * trying to do so allows the bind_engine() code to have", " * created leaks. We just have to fail where we are, after", " * the ENGINE has changed.", " */", " ENGINEerr(ENGINE_F_DYNAMIC_LOAD,", " ENGINE_R_CONFLICTING_ENGINE_ID);", " return 0;", " }", " /* Tolerate */", " ERR_clear_error();", " }", " }", " return 1;", "}" ] }, { "parent": "", "source_code": [ "static int dynamic_set_data_ctx(ENGINE *e, dynamic_data_ctx **ctx)", "{", " dynamic_data_ctx *c = OPENSSL_zalloc(sizeof(*c));", " int ret = 1;", " if (c == NULL) {", " ENGINEerr(ENGINE_F_DYNAMIC_SET_DATA_CTX, ERR_R_MALLOC_FAILURE);", " return 0;", " }", " c->dirs = sk_OPENSSL_STRING_new_null();", " if (c->dirs == NULL) {", " ENGINEerr(ENGINE_F_DYNAMIC_SET_DATA_CTX, ERR_R_MALLOC_FAILURE);", " OPENSSL_free(c);", " return 0;", " }", " c->DYNAMIC_F1 = \"v_check\";", " c->DYNAMIC_F2 = \"bind_engine\";", " c->dir_load = 1;", " CRYPTO_THREAD_write_lock(global_engine_lock);", " if ((*ctx = (dynamic_data_ctx *)ENGINE_get_ex_data(e,", " dynamic_ex_data_idx))", " == NULL) {", " /* Good, we're the first */", " ret = ENGINE_set_ex_data(e, dynamic_ex_data_idx, c);", " if (ret) {", " *ctx = c;", " c = NULL;", " }", " }", " CRYPTO_THREAD_unlock(global_engine_lock);", " /*", " * If we lost the race to set the context, c is non-NULL and *ctx is the", " * context of the thread that won.", " */", " if (c)", " sk_OPENSSL_STRING_free(c->dirs);", " OPENSSL_free(c);", " return ret;", "}" ] }, { "parent": "", "source_code": [ "DSO_FUNC_TYPE DSO_bind_func(DSO *dso, const char *symname)", "{", " DSO_FUNC_TYPE ret = NULL;", " if ((dso == NULL) || (symname == NULL)) {", " DSOerr(DSO_F_DSO_BIND_FUNC, ERR_R_PASSED_NULL_PARAMETER);", " return NULL;", " }", " if (dso->meth->dso_bind_func == NULL) {", " DSOerr(DSO_F_DSO_BIND_FUNC, DSO_R_UNSUPPORTED);", " return NULL;", " }", " if ((ret = dso->meth->dso_bind_func(dso, symname)) == NULL) {", " DSOerr(DSO_F_DSO_BIND_FUNC, DSO_R_SYM_FAILURE);", " return NULL;", " }", " /* Success */", " return ret;", "}" ] }, { "parent": "", "source_code": [ "struct dso_meth_st {", " const char *name;", " /*", " * Loads a shared library, NB: new DSO_METHODs must ensure that a", " * successful load populates the loaded_filename field, and likewise a", " * successful unload OPENSSL_frees and NULLs it out.", " */", " int (*dso_load) (DSO *dso);", " /* Unloads a shared library */", " int (*dso_unload) (DSO *dso);", " /*", " * Binds a function - assumes a return type of DSO_FUNC_TYPE. This should", " * be cast to the real function prototype by the caller. Platforms that", " * don't have compatible representations for different prototypes (this", " * is possible within ANSI C) are highly unlikely to have shared", " * libraries at all, let alone a DSO_METHOD implemented for them.", " */", " DSO_FUNC_TYPE (*dso_bind_func) (DSO *dso, const char *symname);", " /*", " * The generic (yuck) \"ctrl()\" function. NB: Negative return values", " * (rather than zero) indicate errors.", " */", " long (*dso_ctrl) (DSO *dso, int cmd, long larg, void *parg);", " /*", " * The default DSO_METHOD-specific function for converting filenames to a", " * canonical native form.", " */", " DSO_NAME_CONVERTER_FUNC dso_name_converter;", " /*", " * The default DSO_METHOD-specific function for converting filenames to a", " * canonical native form.", " */", " DSO_MERGER_FUNC dso_merger;", " /* [De]Initialisation handlers. */", " int (*init) (DSO *dso);", " int (*finish) (DSO *dso);", " /* Return pathname of the module containing location */", " int (*pathbyaddr) (void *addr, char *path, int sz);", " /* Perform global symbol lookup, i.e. among *all* modules */", " void *(*globallookup) (const char *symname);", "};" ] } ], "type": "fnptr-dynamic-call" }
null
null
null
null
null
null
{ "callees": { "targets": { "NULL": null, "X509_STORE_CTX_get1_crls": null, "aesni_encrypt": null, "alpn_cb": null, "bind_engine": null, "crls_http_cb": null, "format_metric": "", "format_time_us": "", "l_alloc": null, "lj_alloc_f": null, "ossl_statem_accept": null, "ossl_statem_connect": null, "record_rate": null, "sock_read": null, "ssl3_put_cipher_by_char": null, "ssl_read": null, "ssl_security_default_callback": null, "tls1_md5_final_raw": null, "tls1_sha1_final_raw": null, "tls1_sha256_final_raw": null, "tls1_sha512_final_raw": null } }, "callsite": "fmt", "chain_summary": [ { "parent": "", "source_code": [ "static void print_units(long double n, char *(*fmt)(long double), int width) {", "char *msg = fmt(n);", " int len = strlen(msg), pad = 2;", " if (isalpha(msg[len-1])) pad--;", " if (isalpha(msg[len-2])) pad--;", " width -= pad;", " printf(\"%*.*s%.*s\", width, width, msg, pad, \" \");", " free(msg);", "}" ] }, { "parent": "", "source_code": [ "static void print_stats_latency(stats *stats) {", " long double percentiles[] = { 50.0, 75.0, 90.0, 99.0 };", " printf(\" Latency Distribution\\n\");", " for (size_t i = 0; i < sizeof(percentiles) / sizeof(long double); i++) {", " long double p = percentiles[i];", " uint64_t n = stats_percentile(stats, p);", " printf(\"%7.0Lf%%\", p);", " print_units(n, format_time_us, 10);", " printf(\"\\n\");", " }", "}" ] }, { "parent": "", "source_code": [ "static void print_stats(char *name, stats *stats, char *(*fmt)(long double)) {", " uint64_t max = stats->max;", " long double mean = stats_mean(stats);", " long double stdev = stats_stdev(stats, mean);", " printf(\" %-10s\", name);", " print_units(mean, fmt, 8);", " print_units(stdev, fmt, 10);", " print_units(max, fmt, 9);", " printf(\"%8.2Lf%%\\n\", stats_within_stdev(stats, mean, stdev, 1));", "}" ] }, { "parent": "", "source_code": [ "int main(int argc, char **argv) {", " char *url, **headers = zmalloc(argc * sizeof(char *));", " struct http_parser_url parts = {};", " if (parse_args(&cfg, &url, &parts, headers, argc, argv)) {", " usage();", " exit(1);", " }", " ...", " print_stats_header();", " print_stats(\"Latency\", statistics.latency, format_time_us);", " print_stats(\"Req/Sec\", statistics.requests, format_metric);", " ...", "}" ] } ], "type": "fnptr-callback" }
null
null
null
null
null
null
null
{ "callees": { "targets": { "_ssh_verify_host_key": null, "client_simple_escape_filter": "", "key_print_wrapper": null, "mm_log_handler": null, "mux_master_process_alive_check": null, "mux_master_process_close_fwd": null, "mux_master_process_hello": null, "mux_master_process_new_session": null, "mux_master_process_open_fwd": null, "mux_master_process_proxy": null, "mux_master_process_stdio_fwd": null, "mux_master_process_stop_listening": null, "mux_master_process_terminate": null, "mux_session_confirm": null, "mux_stdio_confirm": null, "scpio": null, "sftpio": null, "sk_api_version": null, "sk_enroll": null, "ssh_ecdsa_equal": null, "ssh_ed25519_serialize_public": null, "ssh_rsa_alloc": null, "ssh_rsa_size": null, "ssh_session2_setup": null, "ssh_sk_enroll": null, "ssh_stdio_confirm": null, "ssh_tun_confirm": null, "sys_tun_infilter": "", "sys_tun_outfilter": null } }, "callsite": "c->input_filter", "chain_summary": [ { "parent": "", "source_code": [ "static int channel_handle_rfd(struct ssh *ssh, Channel *c)", "{", "\t...", "\tif (c->input_filter != NULL) {", "\t\tif (c->input_filter(ssh, c, buf, len) == -1) {", "\t\t\tdebug2(\"channel %d: filter stops\", c->self);", "\t\t\tchan_read_failed(ssh, c);", "\t\t}", " ...", " }", " ...", "}" ] }, { "parent": "", "source_code": [ "void channel_register_filter(struct ssh *ssh, int id, channel_infilter_fn *ifn,", " channel_outfilter_fn *ofn, channel_filter_cleanup_fn *cfn, void *ctx)", "{", "\t...", "\tc->input_filter = ifn;", "\tc->output_filter = ofn;", "\tc->filter_ctx = ctx;", "\tc->filter_cleanup = cfn;", "}" ] }, { "parent": "", "source_code": [ "static int mux_master_process_new_session(struct ssh *ssh, u_int rid,", " Channel *c, struct sshbuf *m, struct sshbuf *reply)", "{", "\t...", "\tif (cctx->want_tty && escape_char != 0xffffffff) {", "\t\tchannel_register_filter(ssh, nc->self,", "\t\t client_simple_escape_filter, NULL,", "\t\t client_filter_cleanup,", "\t\t client_new_escape_filter_ctx((int)escape_char));", "\t}", " ...", "}" ] }, { "parent": "", "source_code": [ "char *", "client_request_tun_fwd(struct ssh *ssh, int tun_mode,", " int local_tun, int remote_tun, channel_open_fn *cb, void *cbctx)", "{", " ...", "#if defined(SSH_TUN_FILTER)", "\tif (options.tun_open == SSH_TUNMODE_POINTOPOINT)", "\t\tchannel_register_filter(ssh, c->self, sys_tun_infilter,", "\t\t sys_tun_outfilter, NULL, NULL);", "#endif", " ...", "}" ] } ], "type": "fnptr-library" }
null
null
null
null
null
null
{ "callees": { "targets": { "_ssh_verify_host_key": "", "client_simple_escape_filter": null, "key_print_wrapper": "", "mm_log_handler": null, "mux_master_process_alive_check": null, "mux_master_process_close_fwd": null, "mux_master_process_hello": null, "mux_master_process_new_session": null, "mux_master_process_open_fwd": null, "mux_master_process_proxy": null, "mux_master_process_stdio_fwd": null, "mux_master_process_stop_listening": null, "mux_master_process_terminate": null, "mux_session_confirm": null, "mux_stdio_confirm": null, "scpio": null, "sftpio": null, "sk_api_version": null, "sk_enroll": null, "ssh_ecdsa_equal": null, "ssh_ed25519_serialize_public": null, "ssh_rsa_alloc": null, "ssh_rsa_size": null, "ssh_session2_setup": null, "ssh_sk_enroll": null, "ssh_stdio_confirm": null, "ssh_tun_confirm": null, "sys_tun_infilter": null, "sys_tun_outfilter": null } }, "callsite": "kex->verify_host_key", "chain_summary": [ { "parent": "", "source_code": [ "int", "kex_verify_host_key(struct ssh *ssh, struct sshkey *server_host_key)", "{", "\tstruct kex *kex = ssh->kex;", "\tif (kex->verify_host_key == NULL) {", "\t\terror_f(\"missing hostkey verifier\");", "\t\treturn SSH_ERR_INVALID_ARGUMENT;", "\t}", "\tif (server_host_key->type != kex->hostkey_type ||", "\t (kex->hostkey_type == KEY_ECDSA &&", "\t server_host_key->ecdsa_nid != kex->hostkey_nid))", "\t\treturn SSH_ERR_KEY_TYPE_MISMATCH;", "\tif (kex->verify_host_key(server_host_key, ssh) == -1)", "\t\treturn SSH_ERR_SIGNATURE_INVALID;", "\treturn 0;", "}" ] }, { "parent": "", "source_code": [ "int", "ssh_init(struct ssh **sshp, int is_server, struct kex_params *kex_params)", "{", "\tstruct ssh *ssh;", "\tif ((ssh = ssh_packet_set_connection(NULL, -1, -1)) == NULL)", "\t\treturn SSH_ERR_ALLOC_FAIL;", "\tif (is_server)", "\t\tssh_packet_set_server(ssh);", "\tssh->kex->server = is_server;", "\tif (is_server) {", "\t\tssh->kex->kex[KEX_C25519_SHA256] = kex_gen_client;", "\t\tssh->kex->kex[KEX_KEM_SNTRUP761X25519_SHA512] = kex_gen_client;", "\t\tssh->kex->verify_host_key =&_ssh_verify_host_key;", "\t}", "\t*sshp = ssh;", "\treturn 0;", "}" ] }, { "parent": "", "source_code": [ "int", "_ssh_verify_host_key(struct sshkey *hostkey, struct ssh *ssh)", "{", "\tstruct key_entry *k;", "\tdebug3_f(\"need %s\", sshkey_type(hostkey));", "\tTAILQ_FOREACH(k, &ssh->public_keys, next) {", "\t\tdebug3_f(\"check %s\", sshkey_type(k->key));", "\t\tif (sshkey_equal_public(hostkey, k->key))", "\t\t\treturn (0);\t/* ok */", "\t}", "\treturn (-1);\t/* failed */", "}" ] }, { "parent": "", "source_code": [ "int", "ssh_set_verify_host_key_callback(struct ssh *ssh,", " int (*cb)(struct sshkey *, struct ssh *))", "{", "\tif (cb == NULL || ssh->kex == NULL)", "\t\treturn SSH_ERR_INVALID_ARGUMENT;", "\tssh->kex->verify_host_key = cb;", "\treturn 0;", "}" ] }, { "parent": "", "source_code": [ "static void", "keygrab_ssh2(con *c)", "{", "\tssh_set_verify_host_key_callback(c->c_ssh, key_print_wrapper);", "}" ] }, { "parent": "", "source_code": [ "static int", "key_print_wrapper(struct sshkey *hostkey, struct ssh *ssh)", "{", "\tcon *c;", "\tif ((c = ssh_get_app_data(ssh)) != NULL)", "\t\tkeyprint(c, hostkey);", "\t/* always abort key exchange */", "\treturn -1;", "}" ] } ], "type": "fnptr-library" }
null
null
null
null
null
null
{ "callees": { "targets": { "_ssh_verify_host_key": null, "client_simple_escape_filter": null, "key_print_wrapper": null, "mm_log_handler": null, "mux_master_process_alive_check": null, "mux_master_process_close_fwd": null, "mux_master_process_hello": null, "mux_master_process_new_session": null, "mux_master_process_open_fwd": null, "mux_master_process_proxy": null, "mux_master_process_stdio_fwd": null, "mux_master_process_stop_listening": null, "mux_master_process_terminate": null, "mux_session_confirm": null, "mux_stdio_confirm": null, "scpio": null, "sftpio": null, "sk_api_version": null, "sk_enroll": null, "ssh_ecdsa_equal": null, "ssh_ed25519_serialize_public": null, "ssh_rsa_alloc": null, "ssh_rsa_size": null, "ssh_session2_setup": null, "ssh_sk_enroll": null, "ssh_stdio_confirm": null, "ssh_tun_confirm": null, "sys_tun_infilter": null, "sys_tun_outfilter": "" } }, "callsite": "c->output_filter", "chain_summary": [ { "parent": "", "source_code": [ "static int", "channel_handle_wfd(struct ssh *ssh, Channel *c)", "{", "\tu_char *data = NULL, *buf; /* XXX const; need filter API change */", "\tsize_t dlen, olen = 0;", "\tint r, len;", "\t/* Send buffered output data to the socket. */", "\tolen = sshbuf_len(c->output);", "\tif (c->output_filter != NULL) {", "\t\tif ((buf = c->output_filter(ssh, c, &data, &dlen)) == NULL) {", "\t\t\tdebug2(\"channel %d: filter stops\", c->self);", "\t\t\tif (c->type != SSH_CHANNEL_OPEN)", "\t\t\t\tchan_mark_dead(ssh, c);", "\t\t\telse", "\t\t\t\tchan_write_failed(ssh, c);", "\t\t\treturn -1;", "\t\t}", "\t}", " out:", "\tc->local_consumed += olen - sshbuf_len(c->output);", "\treturn 1;", "}" ] }, { "parent": "", "source_code": [ "void", "channel_register_filter(struct ssh *ssh, int id, channel_infilter_fn *ifn,", " channel_outfilter_fn *ofn, channel_filter_cleanup_fn *cfn, void *ctx)", "{", "\tChannel *c = channel_lookup(ssh, id);", "\tif (c == NULL) {", "\t\tlogit_f(\"%d: bad id\", id);", "\t\treturn;", "\t}", "\tc->input_filter = ifn;", "\tc->output_filter = ofn;", "\tc->filter_ctx = ctx;", "\tc->filter_cleanup = cfn;", "}" ] }, { "parent": "", "source_code": [ "int", "client_loop(struct ssh *ssh, int have_pty, int escape_char_arg,", " int ssh2_chan_id)", "{", "\tif (session_ident != -1) {", "\t\tif (escape_char_arg != SSH_ESCAPECHAR_NONE) {", "\t\t\tchannel_register_filter(ssh, session_ident,", "\t\t\t client_simple_escape_filter, NULL,", "\t\t\t client_filter_cleanup,", "\t\t\t client_new_escape_filter_ctx(", "\t\t\t escape_char_arg));", "\t\t}", "\t}", "\treturn exit_status;", "}" ] }, { "parent": "", "source_code": [ "char *", "client_request_tun_fwd(struct ssh *ssh, int tun_mode,", " int local_tun, int remote_tun, channel_open_fn *cb, void *cbctx)", "{", "\tChannel *c;", "\tint r, fd;", "\tchar *ifname = NULL;", "\tif (tun_mode == SSH_TUNMODE_NO)", "\t\treturn 0;", "\tdebug(\"Requesting tun unit %d in mode %d\", local_tun, tun_mode);", "\t/* Open local tunnel device */", "\tif ((fd = tun_open(local_tun, tun_mode, &ifname)) == -1) {", "\t\terror(\"Tunnel device open failed.\");", "\t\treturn NULL;", "\t}", "\tdebug(\"Tunnel forwarding using interface %s\", ifname);", "\tc = channel_new(ssh, \"tun-connection\", SSH_CHANNEL_OPENING, fd, fd, -1,", "\t CHAN_TCP_WINDOW_DEFAULT, CHAN_TCP_PACKET_DEFAULT, 0, \"tun\", 1);", "\tc->datagram = 1;", "#if defined(SSH_TUN_FILTER)", "\tif (options.tun_open == SSH_TUNMODE_POINTOPOINT)", "\t\tchannel_register_filter(ssh, c->self, sys_tun_infilter,", "\t\t sys_tun_outfilter, NULL, NULL);", "#endif", "\tif (cb != NULL)", "\t\tchannel_register_open_confirm(ssh, c->self, cb, cbctx);", "\tif ((r = sshpkt_start(ssh, SSH2_MSG_CHANNEL_OPEN)) != 0 ||", "\t (r = sshpkt_put_cstring(ssh, \"tun@openssh.com\")) != 0 ||", "\t (r = sshpkt_put_u32(ssh, c->self)) != 0 ||", "\t (r = sshpkt_put_u32(ssh, c->local_window_max)) != 0 ||", "\t (r = sshpkt_put_u32(ssh, c->local_maxpacket)) != 0 ||", "\t (r = sshpkt_put_u32(ssh, tun_mode)) != 0 ||", "\t (r = sshpkt_put_u32(ssh, remote_tun)) != 0 ||", "\t (r = sshpkt_send(ssh)) != 0)", "\t\tsshpkt_fatal(ssh, r, \"%s: send reply\", __func__);", "\treturn ifname;", "}" ] } ], "type": "fnptr-library" }
null
null
null
null
null
null
{ "callees": { "targets": { "_ssh_verify_host_key": null, "client_simple_escape_filter": null, "key_print_wrapper": null, "mm_log_handler": null, "mux_master_process_alive_check": null, "mux_master_process_close_fwd": null, "mux_master_process_hello": null, "mux_master_process_new_session": null, "mux_master_process_open_fwd": null, "mux_master_process_proxy": null, "mux_master_process_stdio_fwd": null, "mux_master_process_stop_listening": null, "mux_master_process_terminate": null, "mux_session_confirm": "", "mux_stdio_confirm": "", "scpio": null, "sftpio": null, "sk_api_version": null, "sk_enroll": null, "ssh_ecdsa_equal": null, "ssh_ed25519_serialize_public": null, "ssh_rsa_alloc": null, "ssh_rsa_size": null, "ssh_session2_setup": "", "ssh_sk_enroll": null, "ssh_stdio_confirm": "", "ssh_tun_confirm": "", "sys_tun_infilter": null, "sys_tun_outfilter": null } }, "callsite": "c->open_confirm", "chain_summary": [ { "parent": "", "source_code": [ "int", "channel_input_open_failure(int type, u_int32_t seq, struct ssh *ssh)", "{", "\tChannel *c = channel_from_packet_id(ssh, __func__, \"open failure\");", "\tu_int32_t reason;", "\tchar *msg = NULL;", "\tint r;", "\tif (channel_proxy_upstream(c, type, seq, ssh))", "\t\treturn 0;", "\tif (c->type != SSH_CHANNEL_OPENING)", "\t\tssh_packet_disconnect(ssh, \"Received open failure for \"", "\t\t \"non-opening channel %d.\", c->self);", "\tif ((r = sshpkt_get_u32(ssh, &reason)) != 0) {", "\t\terror_fr(r, \"parse reason\");", "\t\tssh_packet_disconnect(ssh, \"Invalid open failure message\");", "\t}", "\t/* skip language */", "\tif ((r = sshpkt_get_cstring(ssh, &msg, NULL)) != 0 ||", "\t (r = sshpkt_get_string_direct(ssh, NULL, NULL)) != 0 ||", " (r = sshpkt_get_end(ssh)) != 0) {", "\t\terror_fr(r, \"parse msg/lang\");", "\t\tssh_packet_disconnect(ssh, \"Invalid open failure message\");", "\t}", "\tlogit(\"channel %d: open failed: %s%s%s\", c->self,", "\t reason2txt(reason), msg ? \": \": \"\", msg ? msg : \"\");", "\tfree(msg);", "\tif (c->open_confirm) {", "\t\tdebug2_f(\"channel %d: callback start\", c->self);", "\t\tc->open_confirm(ssh, c->self, 0, c->open_confirm_ctx);", "\t\tdebug2_f(\"channel %d: callback done\", c->self);", "\t}", "\t/* Schedule the channel for cleanup/deletion. */", "\tchan_mark_dead(ssh, c);", "\treturn 0;", "}" ] }, { "parent": "", "source_code": [ "void", "channel_register_open_confirm(struct ssh *ssh, int id,", " channel_open_fn *fn, void *ctx)", "{", "\tChannel *c = channel_lookup(ssh, id);", "\tif (c == NULL) {", "\t\tlogit_f(\"%d: bad id\", id);", "\t\treturn;", "\t}", "\tc->open_confirm = fn;", "\tc->open_confirm_ctx = ctx;", "}" ] }, { "parent": "", "source_code": [ "char *", "client_request_tun_fwd(struct ssh *ssh, int tun_mode,", " int local_tun, int remote_tun, channel_open_fn *cb, void *cbctx)", "{", "\tif (cb != NULL)", "\t\tchannel_register_open_confirm(ssh, c->self, cb, cbctx);", "}" ] }, { "parent": "", "source_code": [ "static int", "mux_master_process_new_session(struct ssh *ssh, u_int rid,", " Channel *c, struct sshbuf *m, struct sshbuf *reply)", "{", "\tchannel_register_open_confirm(ssh, nc->self, mux_session_confirm, cctx);", "}" ] }, { "parent": "", "source_code": [ "static int", "mux_master_process_stdio_fwd(struct ssh *ssh, u_int rid,", " Channel *c, struct sshbuf *m, struct sshbuf *reply)", "{", "\tchannel_register_open_confirm(ssh, nc->self, mux_stdio_confirm, cctx);", "}" ] }, { "parent": "", "source_code": [ "static void", "ssh_init_stdio_forwarding(struct ssh *ssh)", "{", "\tChannel *c;", "\tint in, out;", "\tif (options.stdio_forward_host == NULL)", "\t\treturn;", "\tdebug3_f(\"%s:%d\", options.stdio_forward_host,", "\t options.stdio_forward_port);", "\tif ((in = dup(STDIN_FILENO)) == -1 ||", "\t (out = dup(STDOUT_FILENO)) == -1)", "\t\tfatal_f(\"dup() in/out failed\");", "\tif ((c = channel_connect_stdio_fwd(ssh, options.stdio_forward_host,", "\t options.stdio_forward_port, in, out,", "\t CHANNEL_NONBLOCK_STDIO)) == NULL)", "\t\tfatal_f(\"channel_connect_stdio_fwd failed\");", "\tchannel_register_cleanup(ssh, c->self, client_cleanup_stdio_fwd, 0);", "\tchannel_register_open_confirm(ssh, c->self, ssh_stdio_confirm, NULL);", "}" ] }, { "parent": "", "source_code": [ "static int", "ssh_session2_open(struct ssh *ssh)", "{", "\tChannel *c;", "\tint window, packetmax, in, out, err;", "\tif (options.stdin_null) {", "\t\tin = open(_PATH_DEVNULL, O_RDONLY);", "\t} else {", "\t\tin = dup(STDIN_FILENO);", "\t}", "\tout = dup(STDOUT_FILENO);", "\terr = dup(STDERR_FILENO);", "\tif (in == -1 || out == -1 || err == -1)", "\t\tfatal(\"dup() in/out/err failed\");", "\twindow = CHAN_SES_WINDOW_DEFAULT;", "\tpacketmax = CHAN_SES_PACKET_DEFAULT;", "\tif (tty_flag) {", "\t\twindow >>= 1;", "\t\tpacketmax >>= 1;", "\t}", "\tc = channel_new(ssh,", "\t \"session\", SSH_CHANNEL_OPENING, in, out, err,", "\t window, packetmax, CHAN_EXTENDED_WRITE,", "\t \"client-session\", CHANNEL_NONBLOCK_STDIO);", "\tdebug3_f(\"channel_new: %d\", c->self);", "\tchannel_send_open(ssh, c->self);", "\tif (options.session_type != SESSION_TYPE_NONE)", "\t\tchannel_register_open_confirm(ssh, c->self,", "\t\t ssh_session2_setup, NULL);", "\treturn c->self;", "}" ] }, { "parent": "", "source_code": [ "static void", "ssh_init_forwarding(struct ssh *ssh, char **ifname)", "{", "\t/* Initiate tunnel forwarding. */", "\tif (options.tun_open != SSH_TUNMODE_NO) {", "\t\tif ((*ifname = client_request_tun_fwd(ssh,", "\t\t options.tun_open, options.tun_local,", "\t\t options.tun_remote, ssh_tun_confirm, NULL)) != NULL)", "\t\t\tforward_confirms_pending++;", "\t}", "}" ] } ], "type": "fnptr-library" }
null
null
null
null
null
null
{ "callees": { "targets": { "_ssh_verify_host_key": null, "client_simple_escape_filter": null, "key_print_wrapper": null, "mm_log_handler": "", "mux_master_process_alive_check": null, "mux_master_process_close_fwd": null, "mux_master_process_hello": null, "mux_master_process_new_session": null, "mux_master_process_open_fwd": null, "mux_master_process_proxy": null, "mux_master_process_stdio_fwd": null, "mux_master_process_stop_listening": null, "mux_master_process_terminate": null, "mux_session_confirm": null, "mux_stdio_confirm": null, "scpio": null, "sftpio": null, "sk_api_version": null, "sk_enroll": null, "ssh_ecdsa_equal": null, "ssh_ed25519_serialize_public": null, "ssh_rsa_alloc": null, "ssh_rsa_size": null, "ssh_session2_setup": null, "ssh_sk_enroll": null, "ssh_stdio_confirm": null, "ssh_tun_confirm": null, "sys_tun_infilter": null, "sys_tun_outfilter": null } }, "callsite": "tmp_handler", "chain_summary": [ { "parent": "", "source_code": [ "static void", "do_log(LogLevel level, int force, const char *suffix, const char *fmt,", " va_list args)", "{", " ...", "\tlog_handler_fn *tmp_handler;", "\tconst char *progname = argv0 != NULL ? argv0 : __progname;", "\tif (!force && level > log_level)", "\t\treturn;", "\t...", "\tif (log_handler != NULL) {", "\t\t/* Avoid recursion */", "\t\ttmp_handler = log_handler;", "\t\tlog_handler = NULL;", "\t\ttmp_handler(level, force, fmtbuf, log_handler_ctx);", "\t\tlog_handler = tmp_handler;", "\t} else if (log_on_stderr) {", "\t\tsnprintf(msgbuf, sizeof msgbuf, \"%s%s%.*s\\r\\n\",", "\t\t (log_on_stderr > 1) ? progname : \"\",", "\t\t (log_on_stderr > 1) ? \": \" : \"\",", "\t\t (int)sizeof msgbuf - 3, fmtbuf);", "\t\t(void)write(log_stderr_fd, msgbuf, strlen(msgbuf));", "\t} else {", " ...", " }", "}" ] }, { "parent": "", "source_code": [ "static log_handler_fn *log_handler;", "void set_log_handler(log_handler_fn *handler, void *ctx)", "{", "\tlog_handler = handler;", "\tlog_handler_ctx = ctx;", "}" ] }, { "parent": "", "source_code": [ "static int privsep_preauth(struct ssh *ssh)", "{", "\t...", "\tif (use_privsep == PRIVSEP_ON)", "\t\tbox = ssh_sandbox_init(pmonitor);", "\tpid = fork();", "\tif (pid == -1) {", "\t\tfatal(\"fork of unprivileged child failed\");", "\t} else if (pid != 0) {", "\t\t...", "\t} else {", "\t\t...", "\t\t/* Arrange for logging to be sent to the monitor */", "\t\tset_log_handler(mm_log_handler, pmonitor);", "\t\t...", "\t}", "}" ] } ], "type": "fnptr-only" }
null
null
null
null
null
null
{ "callees": { "targets": { "_ssh_verify_host_key": null, "client_simple_escape_filter": null, "key_print_wrapper": null, "mm_log_handler": null, "mux_master_process_alive_check": null, "mux_master_process_close_fwd": null, "mux_master_process_hello": null, "mux_master_process_new_session": null, "mux_master_process_open_fwd": null, "mux_master_process_proxy": null, "mux_master_process_stdio_fwd": null, "mux_master_process_stop_listening": null, "mux_master_process_terminate": null, "mux_session_confirm": null, "mux_stdio_confirm": null, "scpio": null, "sftpio": null, "sk_api_version": "", "sk_enroll": null, "ssh_ecdsa_equal": null, "ssh_ed25519_serialize_public": null, "ssh_rsa_alloc": null, "ssh_rsa_size": null, "ssh_session2_setup": null, "ssh_sk_enroll": null, "ssh_stdio_confirm": null, "ssh_tun_confirm": null, "sys_tun_infilter": null, "sys_tun_outfilter": null } }, "callsite": "ret->sk_api_version", "chain_summary": [ { "parent": "", "source_code": [ "if ((ret->dlhandle = dlopen(path, RTLD_NOW)) == NULL)", "\tfatal(\"Provider \\\"%s\\\" dlopen failed: %s\", path, dlerror());", "if ((ret->sk_api_version = dlsym(ret->dlhandle,", " \"sk_api_version\")) == NULL) {", "\terror(\"Provider \\\"%s\\\" dlsym(sk_api_version) failed: %s\",", "\t path, dlerror());", "\tgoto fail;", "}", "version = ret->sk_api_version();" ] } ], "type": "fnptr-dynamic-call" }
null
null
null
null
null
null
{ "callees": { "targets": { "_ssh_verify_host_key": null, "client_simple_escape_filter": null, "key_print_wrapper": null, "mm_log_handler": null, "mux_master_process_alive_check": null, "mux_master_process_close_fwd": null, "mux_master_process_hello": null, "mux_master_process_new_session": null, "mux_master_process_open_fwd": null, "mux_master_process_proxy": null, "mux_master_process_stdio_fwd": null, "mux_master_process_stop_listening": null, "mux_master_process_terminate": null, "mux_session_confirm": null, "mux_stdio_confirm": null, "scpio": null, "sftpio": null, "sk_api_version": null, "sk_enroll": "", "ssh_ecdsa_equal": null, "ssh_ed25519_serialize_public": null, "ssh_rsa_alloc": null, "ssh_rsa_size": null, "ssh_session2_setup": null, "ssh_sk_enroll": "", "ssh_stdio_confirm": null, "ssh_tun_confirm": null, "sys_tun_infilter": null, "sys_tun_outfilter": null } }, "callsite": "skp->sk_enroll", "chain_summary": [ { "parent": "", "source_code": [ "int", "sshsk_enroll(int type, const char *provider_path, const char *device,", " const char *application, const char *userid, uint8_t flags,", " const char *pin, struct sshbuf *challenge_buf,", " struct sshkey **keyp, struct sshbuf *attest)", "{", "\tif ((skp = sshsk_open(provider_path)) == NULL) {", "\t\tr = SSH_ERR_INVALID_FORMAT; /* XXX sshsk_open return code? */", "\t\tgoto out;", "\t}", "\t/* XXX validate flags? */", "\t/* enroll key */", "\tif ((r = skp->sk_enroll(alg, challenge, challenge_len, application,", "\t flags, pin, opts, &resp)) != 0) {", "\t\tdebug_f(\"provider \\\"%s\\\" failure %d\", provider_path, r);", "\t\tr = skerr_to_ssherr(r);", "\t\tgoto out;", "\t}", " out:", "\treturn r;", "}" ] }, { "parent": "", "source_code": [ "static struct sshsk_provider *", "sshsk_open(const char *path)", "{", "\tstruct sshsk_provider *ret = NULL;", "\tuint32_t version;", "\tif (path == NULL || *path == '\\0') {", "\t\terror(\"No FIDO SecurityKeyProvider specified\");", "\t\treturn NULL;", "\t}", "\tif ((ret = calloc(1, sizeof(*ret))) == NULL) {", "\t\terror_f(\"calloc failed\");", "\t\treturn NULL;", "\t}", "\tif ((ret->path = strdup(path)) == NULL) {", "\t\terror_f(\"strdup failed\");", "\t\tgoto fail;", "\t}", "\t/* Skip the rest if we're using the linked in middleware */", "\tif (strcasecmp(ret->path, \"internal\") == 0) {", "#ifdef ENABLE_SK_INTERNAL", "\t\tret->sk_enroll = ssh_sk_enroll;", "\t\tret->sk_sign = ssh_sk_sign;", "\t\tret->sk_load_resident_keys = ssh_sk_load_resident_keys;", "\t\treturn ret;", "#else", "\t\terror(\"internal security key support not enabled\");", "\t\tgoto fail;", "#endif", "\t}", "\tif ((ret->dlhandle = dlopen(path, RTLD_NOW)) == NULL)", "\t\tfatal(\"Provider \\\"%s\\\" dlopen failed: %s\", path, dlerror());", "\tif ((ret->sk_enroll = dlsym(ret->dlhandle, \"sk_enroll\")) == NULL) {", "\t\terror(\"Provider %s dlsym(sk_enroll) failed: %s\",", "\t\t path, dlerror());", "\t\tgoto fail;", "\t}", "\t/* success */", "\treturn ret;", "fail:", "\tsshsk_free(ret);", "\treturn NULL;", "}" ] }, { "parent": "", "source_code": [ "int ssh_sk_enroll(int alg, const uint8_t *challenge,", " size_t challenge_len, const char *application, uint8_t flags,", " const char *pin, struct sk_option **opts,", " struct sk_enroll_response **enroll_response);" ] } ], "type": "fnptr-dynamic-call" }
null
null
null
null
null
null
{ "callees": { "targets": { "_ssh_verify_host_key": null, "client_simple_escape_filter": null, "key_print_wrapper": null, "mm_log_handler": null, "mux_master_process_alive_check": null, "mux_master_process_close_fwd": null, "mux_master_process_hello": null, "mux_master_process_new_session": null, "mux_master_process_open_fwd": null, "mux_master_process_proxy": null, "mux_master_process_stdio_fwd": null, "mux_master_process_stop_listening": null, "mux_master_process_terminate": null, "mux_session_confirm": null, "mux_stdio_confirm": null, "scpio": null, "sftpio": null, "sk_api_version": null, "sk_enroll": null, "ssh_ecdsa_equal": "", "ssh_ed25519_serialize_public": null, "ssh_rsa_alloc": null, "ssh_rsa_size": null, "ssh_session2_setup": null, "ssh_sk_enroll": null, "ssh_stdio_confirm": null, "ssh_tun_confirm": null, "sys_tun_infilter": null, "sys_tun_outfilter": null } }, "callsite": "sshkey_ecdsa_funcs.equal", "chain_summary": [ { "parent": "", "source_code": [ "static int", "ssh_ecdsa_sk_equal(const struct sshkey *a, const struct sshkey *b)", "{", "\tif (!sshkey_sk_fields_equal(a, b))", "\t\treturn 0;", "\tif (!sshkey_ecdsa_funcs.equal(a, b))", "\t\treturn 0;", "\treturn 1;", "}" ] }, { "parent": "", "source_code": [ "/* NB. not static; used by ECDSA-SK */", "const struct sshkey_impl_funcs sshkey_ecdsa_funcs = {", "\t/* .size = */\t\tssh_ecdsa_size,", "\t/* .alloc = */\t\tNULL,", "\t/* .cleanup = */\tssh_ecdsa_cleanup,", "\t/* .equal = */\t\tssh_ecdsa_equal,", "\t/* .ssh_serialize_public = */ ssh_ecdsa_serialize_public,", "\t/* .ssh_deserialize_public = */ ssh_ecdsa_deserialize_public,", "\t/* .ssh_serialize_private = */ ssh_ecdsa_serialize_private,", "\t/* .ssh_deserialize_private = */ ssh_ecdsa_deserialize_private,", "\t/* .generate = */\tssh_ecdsa_generate,", "\t/* .copy_public = */\tssh_ecdsa_copy_public,", "\t/* .sign = */\t\tssh_ecdsa_sign,", "\t/* .verify = */\t\tssh_ecdsa_verify,", "};" ] }, { "parent": "", "source_code": [ "struct sshkey_impl_funcs {", "\tu_int (*size)(const struct sshkey *);\t/* optional */", "\tint (*alloc)(struct sshkey *);\t\t/* optional */", "\tvoid (*cleanup)(struct sshkey *);\t/* optional */", "\tint (*equal)(const struct sshkey *, const struct sshkey *);", "\tint (*serialize_public)(const struct sshkey *, struct sshbuf *,", "\t enum sshkey_serialize_rep);", "\tint (*deserialize_public)(const char *, struct sshbuf *,", "\t struct sshkey *);", "\tint (*serialize_private)(const struct sshkey *, struct sshbuf *,", "\t enum sshkey_serialize_rep);", "\tint (*deserialize_private)(const char *, struct sshbuf *,", "\t struct sshkey *);", "\tint (*generate)(struct sshkey *, int);\t/* optional */", "\tint (*copy_public)(const struct sshkey *, struct sshkey *);", "\tint (*sign)(struct sshkey *, u_char **, size_t *,", "\t const u_char *, size_t, const char *,", "\t const char *, const char *, u_int); /* optional */", "\tint (*verify)(const struct sshkey *, const u_char *, size_t,", "\t const u_char *, size_t, const char *, u_int,", "\t struct sshkey_sig_details **);", "};" ] } ], "type": "fnptr-global-struct" }
null
null
null
null
null
null
{ "callees": { "targets": { "_ssh_verify_host_key": null, "client_simple_escape_filter": null, "key_print_wrapper": null, "mm_log_handler": null, "mux_master_process_alive_check": null, "mux_master_process_close_fwd": null, "mux_master_process_hello": null, "mux_master_process_new_session": null, "mux_master_process_open_fwd": null, "mux_master_process_proxy": null, "mux_master_process_stdio_fwd": null, "mux_master_process_stop_listening": null, "mux_master_process_terminate": null, "mux_session_confirm": null, "mux_stdio_confirm": null, "scpio": null, "sftpio": null, "sk_api_version": null, "sk_enroll": null, "ssh_ecdsa_equal": null, "ssh_ed25519_serialize_public": "", "ssh_rsa_alloc": null, "ssh_rsa_size": null, "ssh_session2_setup": null, "ssh_sk_enroll": null, "ssh_stdio_confirm": null, "ssh_tun_confirm": null, "sys_tun_infilter": null, "sys_tun_outfilter": null } }, "callsite": "sshkey_ed25519_funcs.serialize_public", "chain_summary": [ { "parent": "", "source_code": [ "static int", "ssh_ed25519_sk_serialize_public(const struct sshkey *key, struct sshbuf *b,", " enum sshkey_serialize_rep opts)", "{", "\tint r;", "\tif ((r = sshkey_ed25519_funcs.serialize_public(key, b, opts)) != 0)", "\t\treturn r;", "\tif ((r = sshkey_serialize_sk(key, b)) != 0)", "\t\treturn r;", "\treturn 0;", "}" ] }, { "parent": "", "source_code": [ "/* NB. not static; used by ED25519-SK */", "const struct sshkey_impl_funcs sshkey_ed25519_funcs = {", "\t/* .size = */\t\tNULL,", "\t/* .alloc = */\t\tNULL,", "\t/* .cleanup = */\tssh_ed25519_cleanup,", "\t/* .equal = */\t\tssh_ed25519_equal,", "\t/* .ssh_serialize_public = */ ssh_ed25519_serialize_public,", "\t/* .ssh_deserialize_public = */ ssh_ed25519_deserialize_public,", "\t/* .ssh_serialize_private = */ ssh_ed25519_serialize_private,", "\t/* .ssh_deserialize_private = */ ssh_ed25519_deserialize_private,", "\t/* .generate = */\tssh_ed25519_generate,", "\t/* .copy_public = */\tssh_ed25519_copy_public,", "\t/* .sign = */\t\tssh_ed25519_sign,", "\t/* .verify = */\t\tssh_ed25519_verify,", "};" ] }, { "parent": "", "source_code": [ "struct sshkey_impl_funcs {", "\tu_int (*size)(const struct sshkey *);\t/* optional */", "\tint (*alloc)(struct sshkey *);\t\t/* optional */", "\tvoid (*cleanup)(struct sshkey *);\t/* optional */", "\tint (*equal)(const struct sshkey *, const struct sshkey *);", "\tint (*serialize_public)(const struct sshkey *, struct sshbuf *,", "\t enum sshkey_serialize_rep);", "\tint (*deserialize_public)(const char *, struct sshbuf *,", "\t struct sshkey *);", "\tint (*serialize_private)(const struct sshkey *, struct sshbuf *,", "\t enum sshkey_serialize_rep);", "\tint (*deserialize_private)(const char *, struct sshbuf *,", "\t struct sshkey *);", "\tint (*generate)(struct sshkey *, int);\t/* optional */", "\tint (*copy_public)(const struct sshkey *, struct sshkey *);", "\tint (*sign)(struct sshkey *, u_char **, size_t *,", "\t const u_char *, size_t, const char *,", "\t const char *, const char *, u_int); /* optional */", "\tint (*verify)(const struct sshkey *, const u_char *, size_t,", "\t const u_char *, size_t, const char *, u_int,", "\t struct sshkey_sig_details **);", "};" ] } ], "type": "fnptr-global-struct" }