ログについて
「gCDEmu」では、ディスクイメージの操作や仮想CDドライブの操作時にログを出力する機能があります。ログの配置場所
「gCDEmu」のログは、「~/.cdemu-daemon.log」です。「テキストエディター」で開くと、以下のように詳細な情報が表示されます。
出力するログの内容を設定する
ログに出力する内容を設定することができます。ログの設定は仮想CDドライブごとに行い、ログの設定には以下の2種類があります。
- 仮想CDドライブを管理するデーモンのログの設定
- ディスクイメージをパースするライブラリのログの設定
デーモンのログの設定
仮想CDドライブを管理するデーモンのログの設定を行います。ログ設定画面の表示
ログの設定を行いたい仮想CDドライブのプロパティー画面を開きます。プロパティー画面を開いたら、「Daemon」タブをクリックします。
設定について
チェックをオンにした内容がログに出力されます。また設定を変更すると、以下のような通知メッセージが表示されます。
DAEMON_DEBUG_DEVICE
デバイスの起動に関するログを出力します。DAEMON_DEBUG_MMC
MMC-3コマンドに関するログを出力します。ログの例
cdemu0:
cdemu0: MMC-3: 4A 01 00 00 10 00 00 00 08 00 00 00
cdemu0: MMC-3: command: GET EVENT/STATUS NOTIFICATION
cdemu0: MMC-3: media event class
cdemu0: MMC-3: reporting media event 0x0
cdemu0: MMC-3: medium present: 0
cdemu0: MMC-3: command completed with status 0
cdemu0: MMC-3: 4A 01 00 00 10 00 00 00 08 00 00 00
cdemu0: MMC-3: command: GET EVENT/STATUS NOTIFICATION
cdemu0: MMC-3: media event class
cdemu0: MMC-3: reporting media event 0x0
cdemu0: MMC-3: medium present: 0
cdemu0: MMC-3: command completed with status 0
DAEMON_DEBUG_DELAY
「Transfer rate emulation」に関するログを出力します。以下の通知メッセージが表示されます。
ログの例
cdemu0: Delay Emulation: failed to get DPM data for sector 0x0
cdemu0: Delay Emulation: no delay to perform
cdemu0: Delay Emulation: failed to get DPM data for sector 0x4
cdemu0: Delay Emulation: no delay to perform
cdemu0: Delay Emulation: failed to get DPM data for sector 0x20
cdemu0: Delay Emulation: no delay to perform
cdemu0: Delay Emulation: failed to get DPM data for sector 0x10
cdemu0: Delay Emulation: no delay to perform
cdemu0: Delay Emulation: failed to get DPM data for sector 0x12
cdemu0: Delay Emulation: no delay to perform
cdemu0: Delay Emulation: no delay to perform
cdemu0: Delay Emulation: failed to get DPM data for sector 0x4
cdemu0: Delay Emulation: no delay to perform
cdemu0: Delay Emulation: failed to get DPM data for sector 0x20
cdemu0: Delay Emulation: no delay to perform
cdemu0: Delay Emulation: failed to get DPM data for sector 0x10
cdemu0: Delay Emulation: no delay to perform
cdemu0: Delay Emulation: failed to get DPM data for sector 0x12
cdemu0: Delay Emulation: no delay to perform
DAEMON_DEBUG_AUDIOPLAY
CD-DAの再生に関するログを出力します。DAEMON_DEBUG_KERNEL_IO
Kernel I/Oに関するログを出力します。ログの例
cdemu0: Kernel I/O: I/O handler invoked
cdemu0: Kernel I/O: reading request
cdemu0: Kernel I/O: successfully read request; cmd 4Ah, in/out len 8, tag 1119
cdemu0: Kernel I/O: flushing cache
cdemu0: Kernel I/O: write data from cache (8 bytes)
cdemu0: Kernel I/O: copying 8 bytes to OUT buffer at offset 0
cdemu0: Kernel I/O: writing response
cdemu0: Kernel I/O: I/O handler done
cdemu0: Kernel I/O: reading request
cdemu0: Kernel I/O: successfully read request; cmd 4Ah, in/out len 8, tag 1119
cdemu0: Kernel I/O: flushing cache
cdemu0: Kernel I/O: write data from cache (8 bytes)
cdemu0: Kernel I/O: copying 8 bytes to OUT buffer at offset 0
cdemu0: Kernel I/O: writing response
cdemu0: Kernel I/O: I/O handler done
ライブラリのログの設定
ディスクイメージをパースするライブラリのログの設を行います。ログ設定画面の表示
ログの設定を行いたい仮想CDドライブのプロパティー画面を開きます。プロパティー画面を開いたら、「Daemon」タブをクリックします。
設定について
チェックをオンにした内容がログに出力されます。また設定を変更すると、以下のような通知メッセージが表示されます。
MIRAGE_DEBUG_PARSER
ディスクイメージのパース(解析)に関するログを出力します。ログの例
cdemu0: ISO-Parser: parsing the image...
cdemu0: ISO-Parser: ISO filename: /home/ubuntu/ダウンロード/ubuntu-ja-13.10-desktop-amd64.iso
cdemu0: ISO-Parser: 2048-byte main sector data; assuming Mode 1 track
cdemu0: ISO-Parser: no subchannel data found!
cdemu0: ISO-Parser: loading track...
cdemu0: ISO-Parser: creating data fragment
cdemu0: ISO-Parser: adding track
cdemu0: ISO-Parser: finished loading track
cdemu0: ISO-Parser: ISO filename: /home/ubuntu/ダウンロード/ubuntu-ja-13.10-desktop-amd64.iso
cdemu0: ISO-Parser: 2048-byte main sector data; assuming Mode 1 track
cdemu0: ISO-Parser: no subchannel data found!
cdemu0: ISO-Parser: loading track...
cdemu0: ISO-Parser: creating data fragment
cdemu0: ISO-Parser: adding track
cdemu0: ISO-Parser: finished loading track
MIRAGE_DEBUG_DISC
ディスクイメージの解析に関するログを出力します。ログの例
cdemu0: Disc: start
cdemu0: Disc: end
cdemu0: Disc: start
cdemu0: Disc: end
cdemu0: Disc: end
cdemu0: Disc: start
cdemu0: Disc: end
MIRAGE_DEBUG_SESSION
ディスクのセッションに関するログを出力します。MIRAGE_DEBUG_TRACK
ディスクのトラック関するログを出力します。ログの例
cdemu0: Track: getting sector for address 0x0 (0); absolute: 1
cdemu0: Track: getting sector for address 0x1 (1); absolute: 1
cdemu0: Track: getting sector for address 0x4 (4); absolute: 1
cdemu0: Track: getting sector for address 0x5 (5); absolute: 1
cdemu0: Track: getting sector for address 0x20 (32); absolute: 1
cdemu0: Track: getting sector for address 0x21 (33); absolute: 1
cdemu0: Track: getting sector for address 0x10 (16); absolute: 1
cdemu0: Track: getting sector for address 0x11 (17); absolute: 1
cdemu0: Track: getting sector for address 0x1 (1); absolute: 1
cdemu0: Track: getting sector for address 0x4 (4); absolute: 1
cdemu0: Track: getting sector for address 0x5 (5); absolute: 1
cdemu0: Track: getting sector for address 0x20 (32); absolute: 1
cdemu0: Track: getting sector for address 0x21 (33); absolute: 1
cdemu0: Track: getting sector for address 0x10 (16); absolute: 1
cdemu0: Track: getting sector for address 0x11 (17); absolute: 1
MIRAGE_DEBUG_SECTOR
ディスクのセクター関するログを出力します。ログの例
cdemu0: Sector: feeding data for sector 0x0
cdemu0: Sector: got fragment for track-relative address 0x0... 0x120fd10
cdemu0: Sector: main channel data size: 2048
cdemu0: Sector: subchannel sector size: 0
cdemu0: Sector: sector type: 2
cdemu0: Sector: offset: 16 length: 2048
cdemu0: Sector: feeding data for sector 0x1
cdemu0: Sector: got fragment for track-relative address 0x1... 0x120fd10
cdemu0: Sector: main channel data size: 2048
cdemu0: Sector: got fragment for track-relative address 0x0... 0x120fd10
cdemu0: Sector: main channel data size: 2048
cdemu0: Sector: subchannel sector size: 0
cdemu0: Sector: sector type: 2
cdemu0: Sector: offset: 16 length: 2048
cdemu0: Sector: feeding data for sector 0x1
cdemu0: Sector: got fragment for track-relative address 0x1... 0x120fd10
cdemu0: Sector: main channel data size: 2048
MIRAGE_DEBUG_FRAGMENT
サブチャンネル関するログを出力します。ログの例
cdemu0: Fragment: no subchannel (size = 0)!
cdemu0: Fragment: no subchannel (size = 0)!
cdemu0: Fragment: reading from position 0x0
cdemu0: Fragment: no subchannel (size = 0)!
cdemu0: Fragment: reading from position 0x800
cdemu0: Fragment: no subchannel (size = 0)!
cdemu0: Fragment: reading from position 0x2000
cdemu0: Fragment: no subchannel (size = 0)!
cdemu0: Fragment: reading from position 0x2800
cdemu0: Fragment: no subchannel (size = 0)!
cdemu0: Fragment: no subchannel (size = 0)!
cdemu0: Fragment: reading from position 0x0
cdemu0: Fragment: no subchannel (size = 0)!
cdemu0: Fragment: reading from position 0x800
cdemu0: Fragment: no subchannel (size = 0)!
cdemu0: Fragment: reading from position 0x2000
cdemu0: Fragment: no subchannel (size = 0)!
cdemu0: Fragment: reading from position 0x2800
cdemu0: Fragment: no subchannel (size = 0)!
MIRAGE_DEBUG_CDTEXT
CD-TEXTに関するログを出力します。MIRAGE_DEBUG_FILE_IO
ディスクイメージの解析に関するログを出力します。ログを出力するかどうかは、ディスクイメージの形式によります。
ログの例
cdemu0: XZ-FileFilter: XZ stream contains a single large block! To allow efficient seeking, consider re-compressing the file using smaller blocks (e.g. 'xz --block-size=1M ...')!
cdemu0: FileFilter: seek: -512 (0xFFFFFFFFFFFFFE00), type 2
cdemu0: FileFilter: seeking to position 114176 (0x1BE00)
cdemu0: FileFilter: read 512 (0x200) bytes from position 114176 (0x1BE00)!
cdemu0: XZ-FileFilter: stream position: 114176 (0x1BE00) -> block #1 (cached: #-1)
cdemu0: XZ-FileFilter: block not cached, reading...
cdemu0: XZ-FileFilter: block header size: 12!
cdemu0: XZ-FileFilter: offset within block: 114176, copying 512 bytes
cdemu0: FileFilter: seek: -512 (0xFFFFFFFFFFFFFE00), type 2
cdemu0: FileFilter: seeking to position 114176 (0x1BE00)
cdemu0: FileFilter: read 512 (0x200) bytes from position 114176 (0x1BE00)!
cdemu0: XZ-FileFilter: stream position: 114176 (0x1BE00) -> block #1 (cached: #-1)
cdemu0: XZ-FileFilter: block not cached, reading...
cdemu0: XZ-FileFilter: block header size: 12!
cdemu0: XZ-FileFilter: offset within block: 114176, copying 512 bytes
MIRAGE_DEBUG_IMAGE_ID
ディスクイメージの解析に関するログを出力します。ログを出力するかどうかは、ディスクイメージの形式によります。
ログの例
cdemu0: CUE-Parser: checking if parser can handle given image...
cdemu0: CUE-Parser: verifying image file's suffix...
cdemu0: CUE-Parser: parser cannot handle given image: invalid suffix (not a *.cue file!)!
cdemu0: CDI-Parser: checking if parser can handle given image...
cdemu0: CDI-Parser: verifying image file's suffix...
cdemu0: CDI-Parser: parser cannot handle given image: invalid suffix (not a *.cdi file!)!
cdemu0: ISO-Parser: checking if parser can handle given image...
cdemu0: ISO-Parser: verifying file size...
cdemu0: ISO-Parser: cheking 2048-byte sector size with 0-byte subchannel...
cdemu0: ISO-Parser: file size check passed; looking for CD001/BEA01 pattern at sector 16...
cdemu0: ISO-Parser: image is an ISO9660/UDF image, with 2048-byte sector data and 0-byte subchannel data
cdemu0: ISO-Parser: parser can handle given image!
cdemu0: CUE-Parser: verifying image file's suffix...
cdemu0: CUE-Parser: parser cannot handle given image: invalid suffix (not a *.cue file!)!
cdemu0: CDI-Parser: checking if parser can handle given image...
cdemu0: CDI-Parser: verifying image file's suffix...
cdemu0: CDI-Parser: parser cannot handle given image: invalid suffix (not a *.cdi file!)!
cdemu0: ISO-Parser: checking if parser can handle given image...
cdemu0: ISO-Parser: verifying file size...
cdemu0: ISO-Parser: cheking 2048-byte sector size with 0-byte subchannel...
cdemu0: ISO-Parser: file size check passed; looking for CD001/BEA01 pattern at sector 16...
cdemu0: ISO-Parser: image is an ISO9660/UDF image, with 2048-byte sector data and 0-byte subchannel data
cdemu0: ISO-Parser: parser can handle given image!