This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug tapsets/10975] New: cpuid() context tapset function unused and duplicate
- From: "mjw at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 17 Nov 2009 22:22:00 -0000
- Subject: [Bug tapsets/10975] New: cpuid() context tapset function unused and duplicate
- Reply-to: sourceware-bugzilla at sourceware dot org
tapset/context.stp has:
// cpuid() is not documented
function cpuid:long () %{ /* pure */
THIS->__retvalue = smp_processor_id();
%}
Which is identical (except for not being unprivileged) to:
/**
* sfunction cpu - Returns the current cpu number.
*/
function cpu:long () %{ /* pure */ /* unprivileged */
THIS->__retvalue = smp_processor_id();
%}
cpuid() is not used anywhere in the sources, documentation or examples.
Should we just nuke it? Or do we want to keep it for compatibility reasons?
--
Summary: cpuid() context tapset function unused and duplicate
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: tapsets
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: mjw at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=10975
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.