[ubuntu 16.10] Enable perf to probe and record on SDT events present in binaries

Bug #1585742 reported by bugproxy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Undecided
Tim Gardner
Yakkety
Fix Released
Undecided
Tim Gardner

Bug Description

This is a feature request for 16.10:

SDT events are markers placed at important places in the binaries. When they are probed and traced, they can give valuable information about the userspace application. This feature aims to enable perf to probe/record on SDT events.

Patches are being currently sent :
https://lkml.org/lkml/2016/5/14/107 patchset for probe-cache and initial SDT support
https://lkml.org/lkml/2016/5/3/810 patch to directly record on SDT events.

bugproxy (bugproxy)
tags: added: architecture-ppc64le bugnameltc-141655 severity-medium targetmilestone-inin1610
Changed in ubuntu:
assignee: nobody → Taco Screen team (taco-screen-team)
affects: ubuntu → linux (Ubuntu)
Tim Gardner (timg-tpi)
Changed in linux (Ubuntu Yakkety):
assignee: Taco Screen team (taco-screen-team) → Tim Gardner (timg-tpi)
status: New → In Progress
Tim Gardner (timg-tpi)
Changed in linux (Ubuntu Yakkety):
milestone: none → ubuntu-16.10
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2016-07-22 12:48 EDT-------
Patches for this feature are upstream now (in tip). This was accepted over multiple patchsets. Here is a list of commits which enable this feature :
These commits are in "master" branch of kernel "tip" tree.

e5dc848356ecf6ea8d27d641c4d7ad8d42fe92b "perf test: Add a test case for SDT event"
e26e63be64a108c1fd12020b93b5b447ffe0532b "perf build: Add sdt feature detection"
7e9fca51fbf8430e27fb6b29299eda575e3f00cf "perf probe: Support a special SDT probe format"
a598180aa1279bac4d24dfc85cd2d78553c4210d "perf probe: Support @BUILDID or @FILE suffix for SDT events"
40218daea1db1f95f1f10e58ebd43b8adf1c6c61 "perf list: Show SDT and pre-cached events"
1de7b8bf728fd8d51b0cc644003d0694c6e0feef "perf probe: Search SDT/cached event from all probe caches"
42bba263eb58800b6239a0cb35ac17fd29379277 "perf probe: Allow wildcard for cached events"
05bf2c8a2a819132b4a8f35d4315ff22e8e84a20 "perf probe-cache: Add for_each_probe_cache_entry() wrapper"
c3492a3a4e58117f18d96125e67b0bed7c4231e1 "perf probe: Make --list show only available cached events"
36a009fe07bdecd201335f982babb8af34b603e2 "perf probe: Accept %sdt and %cached event name"
1c1a3a4729aae712c55e001e151ef008d030d4a7 "perf tools: Add feature detection for gelf_getnote()"
6430a94ead2a4c8f350441351a735303eb6d1c8a "perf buildid-cache: Scan and import user SDT events to probe cache"
8d993d96901f55d26e083390aae80fd02cbff7aa "perf probe: Add group name support"
060fa0c7a3e0bb4f1426ee79dfd38e2a4c80067a "perf sdt: ELF support for SDT"
2492c465ad3ae6860ebfff1c9032865017835e70 "perf build: Add feature detection for libelf's elf_getshdrstrndx()"

Thanks,
Hemant

Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2016-08-02 11:57 EDT-------
Canonical - any outlook here for including the patchset in daily build?

Revision history for this message
Tim Gardner (timg-tpi) wrote :

All of the commits mentioned in #1 have been merged upstream and will be present in 4.8-rc1. v4.8 is the target kernel for Ubuntu 16.10. As such, I believe no further work is required for this feature. The mainline daily builds for v4.8 should appear soon after v4.8-rc1 is released.

Revision history for this message
Tim Gardner (timg-tpi) wrote :

Merged in v4.8

Changed in linux (Ubuntu Yakkety):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.