{"id":17774626,"url":"https://github.com/jiegec/apple-pmu","last_synced_at":"2025-05-13T01:47:28.985Z","repository":{"id":247980086,"uuid":"827253402","full_name":"jiegec/apple-pmu","owner":"jiegec","description":"Dump Apple PMU counter definitions from `/usr/share/kpep` in macOS","archived":false,"fork":false,"pushed_at":"2025-04-02T07:48:55.000Z","size":78,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-13T01:47:20.601Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jiegec.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-11T09:38:51.000Z","updated_at":"2025-04-18T08:09:18.000Z","dependencies_parsed_at":"2024-12-26T07:21:27.771Z","dependency_job_id":"0911f4cb-20f1-4c4d-aa0f-4bc03750cc10","html_url":"https://github.com/jiegec/apple-pmu","commit_stats":null,"previous_names":["jiegec/apple-pmu"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiegec%2Fapple-pmu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiegec%2Fapple-pmu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiegec%2Fapple-pmu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiegec%2Fapple-pmu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jiegec","download_url":"https://codeload.github.com/jiegec/apple-pmu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253856615,"owners_count":21974576,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-26T21:51:36.069Z","updated_at":"2025-05-13T01:47:28.978Z","avatar_url":"https://github.com/jiegec.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# apple-pmu\n\nDump Apple PMU counter definitions from `/usr/share/kpep` in macOS. Also in `/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/*/DeveloperDiskImage.dmg`\n\nAlso see [cyyself/m1-pmu-gen](https://github.com/cyyself/m1-pmu-gen) to see how to integrate the counters into perf.\n\nSee also: https://gist.github.com/ibireme/173517c208c7dc333ba962c1f0d67d12, https://github.com/Tencent/ncnn/blob/master/src/cpu.cpp https://github.com/Homebrew/brew/blob/master/Library/Homebrew/extend/os/mac/hardware/cpu.rb https://en.wikipedia.org/wiki/List_of_Apple_codenames https://github.com/xybp888/iOS-SDKs/blob/d7f1be9f5b79cffcfb547bbd930f92ec0fc35038/iPhoneOS17.5.sdk/usr/include/mach/machine.h#L365 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/machine.h /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/machine.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/arm/cpuid.h\n\nOutput of `sysctl -nx hw.cputype hw.cpusubtype hw.cpufamily`:\n\n- A7 Cyclone: cpu_100000c_1_37a09642.md -\u003e a7.md\n- A8 Typhoon: cpu_100000c_1_2c91a47e.md -\u003e a8.md\n- A9 Twister: cpu_100000c_1_92fb37c8.md -\u003e a9.md\n- A10 Hurricane: cpu_100000c_1_67ceee93.md -\u003e a10.md\n- A11(H10) Monsoon+Mistral: cpu_100000c_1_e81e7ef6.md -\u003e a11.md\n- A12(H11) Vortex+Tempest: cpu_100000c_2_7d34b9f.md -\u003e a12.md\n- A13(H12) Lightning+Thunder: cpu_100000c_2_462504d2.md -\u003e a13.md\n- A14/M1(H13) Firestorm+Icestorm: cpu_100000c_2_1b588bb3.md -\u003e a14.md\n- A15/M2(H14) Avalanche+Blizzard: cpu_100000c_2_da33d83d.md -\u003e a15.md\n- A16(H15) Everest+Sawtooth: cpu_100000c_2_8765edea.md -\u003e a16.md\n- M3 (H15 Ibiza): cpu_100000c_2_fa33415e.md -\u003e as1.md\n- A17 Pro (H15 Coll): cpu_100000c_2_2876f5b5.md -\u003e as2.md\n- M3 Pro (H15 Lobos): cpu_100000c_2_5f4dea93.md -\u003e as3.md\n- M3 Max (H15 Palma): cpu_100000c_2_72015832.md -\u003e as3.md\n- M4 (H16G/H16H Donan): cpu_100000c_2_6f5129ac.md -\u003e as4.md\n- M4 Pro (H16S/H16C Brava): cpu_100000c_2_17d5b93a.md -\u003e as4-1.md\n- A18 (H17A Tupai): cpu_100000c_2_204526d0.md -\u003e as4-2.md\n- A18 Pro (H17P Tahiti): cpu_100000c_2_75d4acb9.md -\u003e as4-2.md\n\nFrom PMU:\n\na14 ~ a15 -\u003e a16 = as1 = as2 = as3 -\u003e as4 = as4-1 = as4-2\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiegec%2Fapple-pmu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjiegec%2Fapple-pmu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiegec%2Fapple-pmu/lists"}