aboutsummaryrefslogtreecommitdiffstats
path: root/trace-input.c
diff options
context:
space:
mode:
Diffstat (limited to 'trace-input.c')
-rw-r--r--trace-input.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/trace-input.c b/trace-input.c
index 201f5dd..a567754 100644
--- a/trace-input.c
+++ b/trace-input.c
@@ -77,6 +77,7 @@ struct cpu_data {
77struct tracecmd_input { 77struct tracecmd_input {
78 struct pevent *pevent; 78 struct pevent *pevent;
79 struct plugin_list *plugin_list; 79 struct plugin_list *plugin_list;
80 unsigned long flags;
80 int fd; 81 int fd;
81 int long_size; 82 int long_size;
82 int page_size; 83 int page_size;
@@ -97,6 +98,16 @@ struct tracecmd_input {
97 98
98__thread struct tracecmd_input *tracecmd_curr_thread_handle; 99__thread struct tracecmd_input *tracecmd_curr_thread_handle;
99 100
101void tracecmd_set_flag(struct tracecmd_input *handle, int flag)
102{
103 handle->flags |= flag;
104}
105
106void tracecmd_clear_flag(struct tracecmd_input *handle, int flag)
107{
108 handle->flags &= ~flag;
109}
110
100#if DEBUG_RECORD 111#if DEBUG_RECORD
101static void remove_record(struct page *page, struct record *record) 112static void remove_record(struct page *page, struct record *record)
102{ 113{
@@ -1998,6 +2009,8 @@ static int handle_options(struct tracecmd_input *handle)
1998 * gtod. It is stored as ASCII with '0x' 2009 * gtod. It is stored as ASCII with '0x'
1999 * appended. 2010 * appended.
2000 */ 2011 */
2012 if (handle->flags & TRACECMD_FL_IGNORE_DATE)
2013 break;
2001 offset = strtoll(buf, NULL, 0); 2014 offset = strtoll(buf, NULL, 0);
2002 /* Convert from micro to nano */ 2015 /* Convert from micro to nano */
2003 offset *= 1000; 2016 offset *= 1000;