提交 fd82f015 编写于 作者: H Harsh Prateek Bora 提交者: Stefan Hajnoczi

trace: drop unused TraceBufferRecord->next_tbuf_idx field

Signed-off-by: NHarsh Prateek Bora <harsh@linux.vnet.ibm.com>
Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
上级 83d35d3e
......@@ -231,8 +231,6 @@ int trace_record_start(TraceBufferRecord *rec, TraceEventID event, size_t datasi
}
idx = old_idx % TRACE_BUF_LEN;
/* To check later if threshold crossed */
rec->next_tbuf_idx = new_idx % TRACE_BUF_LEN;
rec_off = idx;
rec_off = write_to_buffer(rec_off, &event, sizeof(event));
......
......@@ -29,7 +29,6 @@ void st_flush_trace_buffer(void);
typedef struct {
unsigned int tbuf_idx;
unsigned int next_tbuf_idx;
unsigned int rec_off;
} TraceBufferRecord;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册