Build Pass from file name hyphen->underscore

David Smith dsmith@redhat.com
Thu Dec 3 17:02:00 GMT 2009


On 12/03/2009 10:21 AM, Masami Hiramatsu wrote:
> Hi,
> 
> I'm not sure why don't we just add below code ;-)
> 
> for (s = modname; *s != '\0'; s++)
>     if (*s == '-')
>         *s = '_';

We could, at the cost of surprising the user.  With '-m', the user has
said, "hey, don't use the standard stap_XXXX module name, I need the
exact module name FOO-BAR".  Then, behind the user's back, we change
'FOO-BAR' to 'FOO_BAR'.  The user then goes looking for 'FOO-BAR', and
he won't find it.

-- 
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)



More information about the Systemtap mailing list