Integer startLogIndex = 0;
int fdApiType = contentTemp.getFdApiType();
- int seq = contentTemp.getSeq();
- contentText.add(0, Integer.toString(seq));
- contentData.add(Integer.toString(seq));
+ long seq = contentTemp.getSeq();
+ contentText.add(0, Long.toString(seq));
+ contentData.add(Long.toString(seq));
long time = contentTemp.getTime();
boolean isExistStartTimeLog = false;
if (null != obData && (obData instanceof LogData)) { // summary
LogData ldata = (LogData) obData;
dataTime = ldata.getTime();
- int seq = ldata.getSeq();
+ long seq = ldata.getSeq();
FileEvent event = chartManager.getApiDB().selectFileEventBySeq(seq);
if(event != null) {
int selectedIndex[] = fileChartBoard.getChartIndex(event);
}
public FileApiDB() {
- addColumn(new DBColumn(COLUMN.SEQ.getName(), DBConstants.NOT_NULL, DBConstants.INTEGER));
+ addColumn(new DBColumn(COLUMN.SEQ.getName(), DBConstants.NOT_NULL, DBConstants.LONG));
addColumn(new DBColumn(COLUMN.FILE_PATH.getName(), DBConstants.EMPTY, DBConstants.BIG_TEXT));
addColumn(new DBColumn(COLUMN.PID.getName(), DBConstants.NOT_NULL, DBConstants.INTEGER));
addColumn(new DBColumn(COLUMN.TID.getName(), DBConstants.NOT_NULL, DBConstants.INTEGER));
// temporary, to check if open event has been sent before the event has been sent
private Map<String, FileEvent> sysCallMap = new HashMap<String, FileEvent>();
// for searching entry message from exit message
- Map<Integer, FileEvent> entryMap = new HashMap<Integer, FileEvent>();
+ Map<Long, FileEvent> entryMap = new HashMap<Long, FileEvent>();
public FileDataMaker() {}
for (int i = 0; i < inputs.size(); i++) {
LogData input = (LogData) inputs.get(i);
profileData = (ProfileData) input;
- int seq = profileData.getSeq();
+ long seq = profileData.getSeq();
int pid = profileData.getPid();
int tid = profileData.getTid();
long time = profileData.getTime();
break;
case DataChannelConstants.MSG_FUNCTION_EXIT:
// for creating read/write end event with MSG_FUNCTION_EXIT
- int entrySeq = profileData.getEntrySeq();
+ long entrySeq = profileData.getEntrySeq();
if(entryMap.containsKey(entrySeq)) {
Logger.debug(">> syscall entrySeq:" + + entrySeq + "endseq:" + seq + ", pid:" + pid
+ ", tid:" + tid + ", type:" + eventType);
public FileEvent() { }
// for non-target process
- public FileEvent(int seq, int pid, int tid, long fd, String filePath,
+ public FileEvent(long seq, int pid, int tid, long fd, String filePath,
int apiType, long eventTime, long errNo, boolean target) {
this.seq = seq;
this.pid = pid;
}
- public FileEvent(int seq, String filePath, int pid, int tid,
+ public FileEvent(long seq, String filePath, int pid, int tid,
long fd, int apiType, int apiId, long eventTime, long fileSize, long size,
String args, String returnVal, long errNo, boolean target){
this.seq = seq;
this.target = target;
}
- public FileEvent(int seq, String filePath, int pid, int tid) {
+ public FileEvent(long seq, String filePath, int pid, int tid) {
this.seq = seq;
this.filePath = filePath;
this.pid = pid;
}
public FileEvent(List<Object> data) {
- this.seq = (Integer) data.get(FileApiDB.COLUMN.SEQ.getValue());
+ this.seq = (Long) data.get(FileApiDB.COLUMN.SEQ.getValue());
this.filePath = (String) data.get(FileApiDB.COLUMN.FILE_PATH.getValue());
this.pid = (Integer) data.get(FileApiDB.COLUMN.PID.getValue());
this.tid = (Integer) data.get(FileApiDB.COLUMN.TID.getValue());
return tid;
}
- public void setTid(int tid) {
- this.tid = tid;
- }
-
- public int getSeq() {
- return seq;
- }
-
public void setSeq(int seqNo) {
this.seq = seqNo;
}