← Back to team overview

kernel-packages team mailing list archive

[Bug 1381805] Re: 'man perf-stat' has bad notation for specifying multiple events of interest

 

** Changed in: linux (Ubuntu)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1381805

Title:
  'man perf-stat' has bad notation for specifying multiple events of
  interest

Status in “linux” package in Ubuntu:
  Confirmed

Bug description:
  The SYNOPSIS in the manpage of perf-stat(1) says:

     perf stat [-e <EVENT> | --event=EVENT] [-a] <command>

  where -e specifies events of interest:

         -e, --event=
             Select the PMU event. Selection can be a symbolic event name (use perf list to list all events) or a raw PMU event 
             (eventsel+umask) in the form of rNNN where NNN is a hexadecimal event descriptor.

  Nowhere in the manpage does it say how to specify multiple events, or
  even whether that is possible. A strict reading of the syntax would
  suggest that it actually *isn't* possible.

  Now, it's not hard to guess: either 'perf -e event1 -e event2 ...' or
  'perf -e event1,event2' seems to work, but this should be specified
  explicitly. Perhaps something like

         -e, --event=
             Select the PMU event. Selection can be a symbolic event name (use perf list to list all events) or a raw PMU event 
             (eventsel+umask) in the form of rNNN where NNN is a hexadecimal event descriptor. Multiple events can be specified
             either as a comma-separated list or as multiple -e <EVENT> options.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: linux-tools-generic 3.13.0.37.44
  ProcVersionSignature: Ubuntu 3.13.0-36.63-generic 3.13.11.6
  Uname: Linux 3.13.0-36-generic x86_64
  ApportVersion: 2.14.1-0ubuntu3.5
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC1:  edriscoll   2480 F.... pulseaudio
   /dev/snd/pcmC1D0p:   edriscoll   2480 F...m pulseaudio
   /dev/snd/controlC0:  edriscoll   2480 F.... pulseaudio
  CurrentDesktop: GNOME
  Date: Wed Oct 15 17:40:03 2014
  HibernationDevice: RESUME=/dev/mapper/md126p4_crypt
  IwConfig:
   lo        no wireless extensions.
   
   em1       no wireless extensions.
  MachineType: Hewlett-Packard HP Z220 CMT Workstation
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 inteldrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.13.0-36-generic.efi.signed root=UUID=4977c0ff-3e3b-46ec-8514-7b53d26fe4df ro splash quiet nomdmonddf nomdmonisw vt.handoff=7
  RelatedPackageVersions:
   linux-restricted-modules-3.13.0-36-generic N/A
   linux-backports-modules-3.13.0-36-generic  N/A
   linux-firmware                             1.127.7
  RfKill:
   
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 05/16/2013
  dmi.bios.vendor: Hewlett-Packard
  dmi.bios.version: K51 v01.61
  dmi.board.asset.tag: 2UA3310KB0
  dmi.board.name: 1790
  dmi.board.vendor: Hewlett-Packard
  dmi.chassis.asset.tag: 2UA3310KB0
  dmi.chassis.type: 6
  dmi.chassis.vendor: Hewlett-Packard
  dmi.modalias: dmi:bvnHewlett-Packard:bvrK51v01.61:bd05/16/2013:svnHewlett-Packard:pnHPZ220CMTWorkstation:pvr:rvnHewlett-Packard:rn1790:rvr:cvnHewlett-Packard:ct6:cvr:
  dmi.product.name: HP Z220 CMT Workstation
  dmi.sys.vendor: Hewlett-Packard

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1381805/+subscriptions


References