Bug 50151 - glibc 2.16 included a new function __ppc_get_timebase
Summary: glibc 2.16 included a new function __ppc_get_timebase
Status: RESOLVED CODE_FIX
Alias: None
Product: Documentation
Classification: Unclassified
Component: man-pages (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: documentation_man-pages@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-06 12:33 UTC by Tulio Magno Quites Machado Filho
Modified: 2015-05-27 08:25 UTC (History)
1 user (show)

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments
Patch that adds the man-page for __ppc_get_timebase (2.76 KB, patch)
2012-11-06 12:33 UTC, Tulio Magno Quites Machado Filho
Details | Diff

Description Tulio Magno Quites Machado Filho 2012-11-06 12:33:45 UTC
Created attachment 85661 [details]
Patch that adds the man-page for __ppc_get_timebase

glibc 2.16 included a new function to read the Time Base Register on Power processors on the following commit:
http://sourceware.org/git/?p=glibc.git;a=commit;h=d9dc34cd569bcfe714fe8c708e58c028106e8b2e

The attached patch adds the new man-page and applies to the master branch.
Comment 1 Michael Kerrisk 2013-01-21 23:33:07 UTC
Hello Tulio,

What's the significance of the __" prefix in this function name? Is this function really intended for userspace?

Also, what about __ppc_get_timebase_freq(). Does it likewise need to be documented?
Comment 2 Tulio Magno Quites Machado Filho 2013-01-23 19:12:52 UTC
(In reply to comment #1)
> What's the significance of the __" prefix in this function name?

It was a convention adopted for platform specific functions.
You may find more information in http://www.gnu.org/software/libc/manual/html_node/Adding-Platform_002dspecific.html#Adding-Platform_002dspecific

> Is this function really intended for userspace?

Yes.

> Also, what about __ppc_get_timebase_freq(). Does it likewise need to be
> documented?

Yes. I'm also planning to prepare it's manpage.
Comment 3 Michael Kerrisk 2013-01-24 03:05:00 UTC
Would it make sense to document both functions on one page (since they seem closely related)?
Comment 4 Tulio Magno Quites Machado Filho 2013-01-24 10:56:51 UTC
Yes.
I also think this test [1] is good candidate for an example on how to use them.

[1] - http://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c;hb=HEAD
Comment 5 Michael Kerrisk 2015-05-10 11:56:33 UTC
(In reply to Michael Kerrisk from comment #1)
> Hello Tulio,
> 
> What's the significance of the __" prefix in this function name? Is this
> function really intended for userspace?
> 
> Also, what about __ppc_get_timebase_freq(). Does it likewise need to be
> documented?

Hello Tulio,

Okay -- this fell on the ground for a very long time. Sorry about that. But your patch is applied now. What shall we do about __ppc_get_timebase_freq()? (I see there is documentation in the glibc manual.)

Thanks,

Michael
Comment 6 Tulio Magno Quites Machado Filho 2015-05-12 22:12:16 UTC
(In reply to Michael Kerrisk from comment #5)
> Okay -- this fell on the ground for a very long time. Sorry about that. But
> your patch is applied now.

Thanks for applying it!

> What shall we do about __ppc_get_timebase_freq()?  (I see there is
> documentation in the glibc manual.)

Yes, it does.
I'll add it to the same man page.  Just give me some time because I'll be on a trip for the next 2 weeks.
Comment 7 Tulio Magno Quites Machado Filho 2015-05-25 19:10:37 UTC
(In reply to Michael Kerrisk from comment #5)
> What shall we do about __ppc_get_timebase_freq()?

I've just sent a patch adding it to the same page.

http://marc.info/?l=linux-man&m=143258058005074&w=2
Comment 8 Michael Kerrisk 2015-05-27 08:25:27 UTC
Patch applied. Closing.

Note You need to log in before you can comment on or make changes to this bug.