Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-11-14Fix profiler error() definition and usageMark Geisert
Minor updates to profiler and gmondump, which share some code: - fix operation of error() so it actually works as intended - resize 4K-size auto buffer reservations to BUFSIZ (==1K) - remove trailing '\n' from 2nd arg on error() calls everywhere - provide consistent annotation of Windows error number displays Fixes: 9887fb27f6126 ("Cygwin: New tool: profiler") Fixes: 087a3d76d7335 ("Cygwin: New tool: gmondump") Signed-off-by: Mark Geisert <mark@maxrnd.com>
2022-10-28Cygwin: utils: drop 32 bit considerationsCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2022-08-20Cygwin: profiler: Fix linking when building with -DDEBUGGINGCorinna Vinschen
CloseHandle gets redefined to a macro calling an internal function in debug.h when building with -DDEBUGGING, but profiler has no access to that function. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-08-03Cygwin: More profiler format + small issue fixesMark Geisert
Make sure to cast to ulong all DWORD values displayed with format "%lu". More instances are fixed here than in either my earlier unused patch or Corinna's patch. I decided to use typedef..ulong for more compact code. Address jturney's reported small issues: - Remove explicit external ref for cygwin_internal() as it is already provided by <sys/cygwin.h>. - Leave intact ref for cygwin_dll_path[] as it is required by function(s) in path.cc that profiler uses. Added comment to that effect. - Delete existing main() wrapper. Rename main2() to main(). This because profiler is now a Cygwin program and doesn't need to dynamically load cygwin1.dll. - Documentation issues will be addressed in a separate xml patch. (I would have linked message-ids of Corinna's and Jon's messages for proper theading but I no longer have their original emails and the mail archives don't show msgids any more.)
2021-07-21Cygwin: profiler: Fix formatting warningsCorinna Vinschen
DWORD has different types on 32 and 64 bit. Use a common cast to unsigned long to use %lu format for DWORD values throughout. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-07-19Cygwin: New tool: profilerMark Geisert
The new tool formerly known as cygmon is renamed to 'profiler'. For the name I considered 'ipsampler' and could not think of any others. I'm open to a different name if any is suggested. I decided that a discussion of the pros and cons of this profiler vs the existing ssp should probably be in the "Profiling Cygwin Programs" section of the Cygwin User's Guide rather than in the help for either. That material will be supplied at some point. CONTEXT buffers are made child-specific and thus thread-specific since there is one profiler thread for each child program being profiled. The SetThreadPriority() warning comment has been expanded. chmod() works on Cygwin so the "//XXX ineffective" comment is gone. I decided to make the "sample all executable sections" and "sample dynamically generated code" suggestions simply expanded comments for now. The profiler program is now a Cygwin exe rather than a native exe.