Automic VaultAutomic Vault

brew

libcpucycles を Homebrew, dnf, Nix, apt でインストール

libcpucycles のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install libcpucycles

local Homebrew formula metadata

Linux

Fedora dnf確認済み · 92%
sudo dnf install libcpucycles

Fedora Rawhide package metadata · libcpucycles · ソース: dl.fedoraproject.org

Nix確認済み · 92%
nix profile install nixpkgs#libcpucycles

nixpkgs package indexes · pkgs/by-name/li/libcpucycles/package.nix · ソース: api.github.com

Debian apt確認済み · 92%
sudo apt install cpucycles

Debian stable package indexes · cpucycles · ソース: deb.debian.org

概要

パッケージ概要

Microlibrary for counting CPU cycles

コマンドとエイリアス

  • cpucycles-info
  • cpucycles-open

履歴

プロジェクトの歴史と使われ方

libcpucycles is a small timing library for counting CPU cycles across multiple CPU and operating-system counter mechanisms. It comes from the cr.yp.to ecosystem associated with Daniel J. Bernstein's performance-oriented cryptographic and systems software.

プロジェクトの歴史

The official introduction describes libcpucycles as a microlibrary for cycle counting, with a simple API: include `cpucycles.h`, call `cpucycles()`, and link with `-lcpucycles`. The project abstracts machine-level counters such as amd64 TSC/PMC, ARM counters, RISC-V counters, and OS fallbacks such as `mach_absolute_time`, `perf_event`, `CLOCK_MONOTONIC`, and `gettimeofday`.

The release notes visible in the 20250925 documentation show active portability work after the early 2023 tarballs, including s390x counter support, FreeBSD support, arm32-1176 support, a `cpucycles-info` man page, and macOS build fixes.

採用の歴史

Adoption is concentrated among developers who need reproducible low-overhead timing for cryptography, benchmarking, and systems tuning. Its appearance in Homebrew, Debian, Ubuntu, Fedora-family packages, and Nix reflects a package-manager role as a tiny measurement primitive rather than an end-user application.

使われ方

Programmers use libcpucycles when they want an architecture-aware cycle counter without writing per-platform assembly and fallback code. Package users also get tools such as `cpucycles-info` and `cpucycles-open`, which help inspect available counters and support benchmarking workflows.

パッケージ好きにとっての重要性

libcpucycles is package-nerd interesting because it packages the messy hardware reality of cycle counters into a minimal library. It is deliberately small, but its value is in the portability table: one dependency handles CPU families and OS timing APIs that would otherwise become build-system conditionals in every benchmark.

タイムライン

  • 2023-01-10: Release notes document `cpucycles_version()` and s390x counter work.
  • 2023-01-15: Release notes mention behavior alignment for `cpucycles_version()`.
  • 2024-01-14: Release notes add arm32-1176 counter support, FreeBSD support, and install/license documentation updates.
  • 2024-03-18: Release notes mention macOS porting fixes and the `cpucycles-info` man page.
  • 2025-09-25: Documentation tree published for libcpucycles-20250925.

Related projects

  • Related projects include the broader cr.yp.to software family, architecture-specific cycle counters such as TSC and PMC, Linux `perf_event`, POSIX clocks, and benchmarking code in cryptographic libraries.

セキュリティ状態

リスクレベル: グリーン

library-like package without higher-risk signals.

リスク分類器

リスク グリーン · 信頼度 低 · appliance

理由

  • library-like package without higher-risk signals

信号

  • metadata:library-like

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 6 個のプラットフォームターゲットで利用できます。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
cpucycles-infocliグローバル実行可能ファイル
cpucycles-opencliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-26
マネージャ版20260625
マネージャ更新日2026-06-25
ローカルデータOK
上流not checked
検出された最新未検出

https://cpucycles.cr.yp.to/

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:libcpucycles
バージョン20260625
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/libcpucycles
ホームページhttps://cpucycles.cr.yp.to/
上流ドキュメントhttps://cpucycles.cr.yp.to/
ライセンスLicenseRef-Homebrew-public-domain OR CC0-1.0 OR 0BSD OR MIT-0 OR MIT
ソースアーカイブhttps://cpucycles.cr.yp.to/libcpucycles-20260625.tar.gz
最終更新2026-06-25T22:50:15Z
Pulseupdated
Bottle利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namelibcpucycles
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

ソースデータベース一致

他のパッケージマネージャ記録

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

Debian apt95%

cpucycles 0~20240318-2

command-line tool for counting CPU cycles (libcpucycles)

https://cpucycles.cr.yp.to/

sudo apt install cpucycles
  • Section: devel
  • Architecture: amd64
  • Source Package: libcpucycles
  • 2 依存関係
  • normalized package name match
  • 一致条件: Libcpucycles
Debian stable package indexes · deb.debian.org · Debian stable package indexes: cpucycles from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libcpucycles-dev 0~20240318-2

library for counting CPU cycles - development files

https://cpucycles.cr.yp.to/

sudo apt install libcpucycles-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: libcpucycles
  • 1 依存関係
  • normalized package name match
  • 一致条件: Libcpucycles
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libcpucycles-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libcpucycles1 0~20240318-2

library for counting CPU cycles

https://cpucycles.cr.yp.to/

sudo apt install libcpucycles1
  • Section: libs
  • Architecture: amd64
  • Source Package: libcpucycles
  • 1 依存関係
  • normalized package name match
  • 一致条件: Libcpucycles
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libcpucycles1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

libcpucycles

nix profile install nixpkgs#libcpucycles
  • normalized package name match
  • 一致条件: Libcpucycles
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/li/libcpucycles/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

cpucycles 0~20240114-1

command-line tool for counting CPU cycles (libcpucycles)

https://cpucycles.cr.yp.to/

sudo apt install cpucycles
  • Section: universe/devel
  • Architecture: amd64
  • Source Package: libcpucycles
  • 2 依存関係
  • normalized package name match
  • 一致条件: Libcpucycles
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: cpucycles from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libcpucycles-dev 0~20240114-1

library for counting CPU cycles - development files

https://cpucycles.cr.yp.to/

sudo apt install libcpucycles-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: libcpucycles
  • 1 依存関係
  • normalized package name match
  • 一致条件: Libcpucycles
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libcpucycles-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libcpucycles1 0~20240114-1

library for counting CPU cycles

https://cpucycles.cr.yp.to/

sudo apt install libcpucycles1
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: libcpucycles
  • 1 依存関係
  • normalized package name match
  • 一致条件: Libcpucycles
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libcpucycles1 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
dnf95%

libcpucycles 20260105-1.fc44

Library for counting CPU cycles

https://cpucycles.cr.yp.to/

sudo dnf install libcpucycles
  • License: LicenseRef-Fedora-Public-Domain OR 0BSD OR MIT-0 OR MIT
  • Category: Unspecified
  • Architecture: i686
  • Source Package: libcpucycles
  • 4 依存関係
  • 2 提供
  • normalized package name match
  • 一致条件: Libcpucycles
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: libcpucycles from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

libcpucycles-devel 20260105-1.fc44

Development files for libcpucycles

https://cpucycles.cr.yp.to/

sudo dnf install libcpucycles-devel
  • License: LicenseRef-Fedora-Public-Domain OR 0BSD OR MIT-0 OR MIT
  • Category: Unspecified
  • Architecture: i686
  • Source Package: libcpucycles
  • 2 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Libcpucycles
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: libcpucycles-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

libcpucycles-static 20260105-1.fc44

Static version of the libcpucycles library

https://cpucycles.cr.yp.to/

sudo dnf install libcpucycles-static
  • License: LicenseRef-Fedora-Public-Domain OR 0BSD OR MIT-0 OR MIT
  • Category: Unspecified
  • Architecture: i686
  • Source Package: libcpucycles
  • 1 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Libcpucycles
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: libcpucycles-static from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment