This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tapsets/10975] New: cpuid() context tapset function unused and duplicate


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]