public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug runtime/9821] New: Support strftime like format for output file
@ 2009-02-04 22:21 mhiramat at redhat dot com
  2009-02-04 22:49 ` [Bug runtime/9821] " mhiramat at redhat dot com
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: mhiramat at redhat dot com @ 2009-02-04 22:21 UTC (permalink / raw)
  To: systemtap

Support the subset of strftime(3) for output file name, like below.
$ stap foo.stp -o foo-%F-%T.log 

With the on-file flight recorder mode, this feature is useful for checking
creation time of the logfile without looking into it.

-- 
           Summary: Support strftime like format for output file
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: runtime
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: mhiramat at redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=9821

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug runtime/9821] Support strftime like format for output file
  2009-02-04 22:21 [Bug runtime/9821] New: Support strftime like format for output file mhiramat at redhat dot com
@ 2009-02-04 22:49 ` mhiramat at redhat dot com
  2009-02-04 23:14 ` mhiramat at redhat dot com
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: mhiramat at redhat dot com @ 2009-02-04 22:49 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From mhiramat at redhat dot com  2009-02-04 22:43 -------
Created an attachment (id=3719)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=3719&action=view)
[PATCH][depend 6930] staprun supports subset of strftime.

This patch adds strftime like format support for output file name to systemtap.


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=9821

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug runtime/9821] Support strftime like format for output file
  2009-02-04 22:21 [Bug runtime/9821] New: Support strftime like format for output file mhiramat at redhat dot com
  2009-02-04 22:49 ` [Bug runtime/9821] " mhiramat at redhat dot com
@ 2009-02-04 23:14 ` mhiramat at redhat dot com
  2009-03-20  2:53 ` fche at redhat dot com
                   ` (12 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: mhiramat at redhat dot com @ 2009-02-04 23:14 UTC (permalink / raw)
  To: systemtap



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |6930


http://sourceware.org/bugzilla/show_bug.cgi?id=9821

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug runtime/9821] Support strftime like format for output file
  2009-02-04 22:21 [Bug runtime/9821] New: Support strftime like format for output file mhiramat at redhat dot com
  2009-02-04 22:49 ` [Bug runtime/9821] " mhiramat at redhat dot com
  2009-02-04 23:14 ` mhiramat at redhat dot com
@ 2009-03-20  2:53 ` fche at redhat dot com
  2009-03-20 20:31 ` mhiramat at redhat dot com
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: fche at redhat dot com @ 2009-03-20  2:53 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From fche at redhat dot com  2009-03-20 01:16 -------
Looks OK.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=9821

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug runtime/9821] Support strftime like format for output file
  2009-02-04 22:21 [Bug runtime/9821] New: Support strftime like format for output file mhiramat at redhat dot com
                   ` (2 preceding siblings ...)
  2009-03-20  2:53 ` fche at redhat dot com
@ 2009-03-20 20:31 ` mhiramat at redhat dot com
  2009-03-20 20:35 ` mhiramat at redhat dot com
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: mhiramat at redhat dot com @ 2009-03-20 20:31 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From mhiramat at redhat dot com  2009-03-20 19:33 -------
patch committed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=9821

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug runtime/9821] Support strftime like format for output file
  2009-02-04 22:21 [Bug runtime/9821] New: Support strftime like format for output file mhiramat at redhat dot com
                   ` (3 preceding siblings ...)
  2009-03-20 20:31 ` mhiramat at redhat dot com
@ 2009-03-20 20:35 ` mhiramat at redhat dot com
  2009-03-24 17:21 ` fche at redhat dot com
                   ` (9 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: mhiramat at redhat dot com @ 2009-03-20 20:35 UTC (permalink / raw)
  To: systemtap



-- 
Bug 9821 depends on bug 6930, which changed state.

Bug 6930 Summary: Flight Recorder on file
http://sourceware.org/bugzilla/show_bug.cgi?id=6930

           What    |Old Value                   |New Value
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

http://sourceware.org/bugzilla/show_bug.cgi?id=9821

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug runtime/9821] Support strftime like format for output file
  2009-02-04 22:21 [Bug runtime/9821] New: Support strftime like format for output file mhiramat at redhat dot com
                   ` (4 preceding siblings ...)
  2009-03-20 20:35 ` mhiramat at redhat dot com
@ 2009-03-24 17:21 ` fche at redhat dot com
  2009-04-02 15:01 ` mhiramat at redhat dot com
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: fche at redhat dot com @ 2009-03-24 17:21 UTC (permalink / raw)
  To: systemtap



-- 
Bug 9821 depends on bug 6930, which changed state.

Bug 6930 Summary: Flight Recorder on file
http://sourceware.org/bugzilla/show_bug.cgi?id=6930

           What    |Old Value                   |New Value
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

http://sourceware.org/bugzilla/show_bug.cgi?id=9821

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug runtime/9821] Support strftime like format for output file
  2009-02-04 22:21 [Bug runtime/9821] New: Support strftime like format for output file mhiramat at redhat dot com
                   ` (5 preceding siblings ...)
  2009-03-24 17:21 ` fche at redhat dot com
@ 2009-04-02 15:01 ` mhiramat at redhat dot com
  2009-04-02 23:54 ` jistone at redhat dot com
                   ` (7 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: mhiramat at redhat dot com @ 2009-04-02 15:01 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From mhiramat at redhat dot com  2009-04-02 15:01 -------
Created an attachment (id=3865)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=3865&action=view)
[PATCH][BUGFIX] fix strftime formatting

The results of %C, %l and %j have not fitted the output of date command. This
patch fixes this problem.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=9821

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug runtime/9821] Support strftime like format for output file
  2009-02-04 22:21 [Bug runtime/9821] New: Support strftime like format for output file mhiramat at redhat dot com
                   ` (6 preceding siblings ...)
  2009-04-02 15:01 ` mhiramat at redhat dot com
@ 2009-04-02 23:54 ` jistone at redhat dot com
  2009-04-03  0:41 ` mhiramat at redhat dot com
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: jistone at redhat dot com @ 2009-04-02 23:54 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From jistone at redhat dot com  2009-04-02 23:53 -------
(In reply to comment #5)
> Created an attachment (id=3865)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=3865&action=view)
> [PATCH][BUGFIX] fix strftime formatting
> 
> The results of %C, %l and %j have not fitted the output of date command. This
> patch fixes this problem.

Why are we taking a subset of strftime and implementing it ourselves?  Couldn't
we just use the real strftime(3) and be done with it?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jistone at redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=9821

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug runtime/9821] Support strftime like format for output file
  2009-02-04 22:21 [Bug runtime/9821] New: Support strftime like format for output file mhiramat at redhat dot com
                   ` (7 preceding siblings ...)
  2009-04-02 23:54 ` jistone at redhat dot com
@ 2009-04-03  0:41 ` mhiramat at redhat dot com
  2009-04-04  0:40 ` jistone at redhat dot com
                   ` (5 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: mhiramat at redhat dot com @ 2009-04-03  0:41 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From mhiramat at redhat dot com  2009-04-03 00:41 -------
(In reply to comment #6)
> Why are we taking a subset of strftime and implementing it ourselves?  Couldn't
> we just use the real strftime(3) and be done with it?

Good question :-). When I tried to use strftime(), compiler warned me that I
passed non-constant string for *fmt (I think strftime doesn't need compile-time
checking...),
and I couldn't build stapio.
Would you know how to suppress it?


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=9821

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug runtime/9821] Support strftime like format for output file
  2009-02-04 22:21 [Bug runtime/9821] New: Support strftime like format for output file mhiramat at redhat dot com
                   ` (8 preceding siblings ...)
  2009-04-03  0:41 ` mhiramat at redhat dot com
@ 2009-04-04  0:40 ` jistone at redhat dot com
  2009-04-18  4:03 ` mhiramat at redhat dot com
                   ` (4 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: jistone at redhat dot com @ 2009-04-04  0:40 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From jistone at redhat dot com  2009-04-04 00:40 -------
(In reply to comment #7)
> Would you know how to suppress it?

You can add -fno-builtin-strftime to stapio_CFLAGS.  We don't use strftime
anywhere else, so this should be fine.

(I'm assuming that you'd also move the strftime() calls out of common.c, since
staprun doesn't need it)

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=9821

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug runtime/9821] Support strftime like format for output file
  2009-02-04 22:21 [Bug runtime/9821] New: Support strftime like format for output file mhiramat at redhat dot com
                   ` (9 preceding siblings ...)
  2009-04-04  0:40 ` jistone at redhat dot com
@ 2009-04-18  4:03 ` mhiramat at redhat dot com
  2009-04-18  4:06 ` mhiramat at redhat dot com
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: mhiramat at redhat dot com @ 2009-04-18  4:03 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From mhiramat at redhat dot com  2009-04-18 04:03 -------
Created an attachment (id=3890)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=3890&action=view)
[PATCH] stapio: use genuine strftime

OK, here is a patch which use glibc's strftime.

I left stap_strfloctime in common.c due to filename format/length checking.


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=9821

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug runtime/9821] Support strftime like format for output file
  2009-02-04 22:21 [Bug runtime/9821] New: Support strftime like format for output file mhiramat at redhat dot com
                   ` (10 preceding siblings ...)
  2009-04-18  4:03 ` mhiramat at redhat dot com
@ 2009-04-18  4:06 ` mhiramat at redhat dot com
  2009-04-22 16:50 ` jistone at redhat dot com
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: mhiramat at redhat dot com @ 2009-04-18  4:06 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From mhiramat at redhat dot com  2009-04-18 04:05 -------
Created an attachment (id=3891)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=3891&action=view)
[PATCH] Add testcases for strftime

This patch adds a testcase for strftime filename.The test compares filename
with output of date(3).

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=9821

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug runtime/9821] Support strftime like format for output file
  2009-02-04 22:21 [Bug runtime/9821] New: Support strftime like format for output file mhiramat at redhat dot com
                   ` (11 preceding siblings ...)
  2009-04-18  4:06 ` mhiramat at redhat dot com
@ 2009-04-22 16:50 ` jistone at redhat dot com
  2009-04-22 17:27 ` mhiramat at redhat dot com
  2009-04-22 17:27 ` mhiramat at redhat dot com
  14 siblings, 0 replies; 16+ messages in thread
From: jistone at redhat dot com @ 2009-04-22 16:50 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From jistone at redhat dot com  2009-04-22 16:50 -------
> [PATCH] stapio: use genuine strftime
> [PATCH] Add testcases for strftime

Ship it!

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=9821

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug runtime/9821] Support strftime like format for output file
  2009-02-04 22:21 [Bug runtime/9821] New: Support strftime like format for output file mhiramat at redhat dot com
                   ` (13 preceding siblings ...)
  2009-04-22 17:27 ` mhiramat at redhat dot com
@ 2009-04-22 17:27 ` mhiramat at redhat dot com
  14 siblings, 0 replies; 16+ messages in thread
From: mhiramat at redhat dot com @ 2009-04-22 17:27 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From mhiramat at redhat dot com  2009-04-22 17:26 -------
(In reply to comment #11)
> > [PATCH] stapio: use genuine strftime
> > [PATCH] Add testcases for strftime
> 
> Ship it!

Done!

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=9821

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug runtime/9821] Support strftime like format for output file
  2009-02-04 22:21 [Bug runtime/9821] New: Support strftime like format for output file mhiramat at redhat dot com
                   ` (12 preceding siblings ...)
  2009-04-22 16:50 ` jistone at redhat dot com
@ 2009-04-22 17:27 ` mhiramat at redhat dot com
  2009-04-22 17:27 ` mhiramat at redhat dot com
  14 siblings, 0 replies; 16+ messages in thread
From: mhiramat at redhat dot com @ 2009-04-22 17:27 UTC (permalink / raw)
  To: systemtap



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|6930                        |


http://sourceware.org/bugzilla/show_bug.cgi?id=9821

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2009-04-22 17:27 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-04 22:21 [Bug runtime/9821] New: Support strftime like format for output file mhiramat at redhat dot com
2009-02-04 22:49 ` [Bug runtime/9821] " mhiramat at redhat dot com
2009-02-04 23:14 ` mhiramat at redhat dot com
2009-03-20  2:53 ` fche at redhat dot com
2009-03-20 20:31 ` mhiramat at redhat dot com
2009-03-20 20:35 ` mhiramat at redhat dot com
2009-03-24 17:21 ` fche at redhat dot com
2009-04-02 15:01 ` mhiramat at redhat dot com
2009-04-02 23:54 ` jistone at redhat dot com
2009-04-03  0:41 ` mhiramat at redhat dot com
2009-04-04  0:40 ` jistone at redhat dot com
2009-04-18  4:03 ` mhiramat at redhat dot com
2009-04-18  4:06 ` mhiramat at redhat dot com
2009-04-22 16:50 ` jistone at redhat dot com
2009-04-22 17:27 ` mhiramat at redhat dot com
2009-04-22 17:27 ` mhiramat at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).