Changeset d926f42 in mainline


Ignore:
Timestamp:
2019-01-06T22:28:51Z (5 years ago)
Author:
Vojtech Horky <vojtech.horky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
77b01fe
Parents:
fe656783
git-author:
Vojtech Horky <vojtech.horky@…> (2019-01-06 22:26:12)
git-committer:
Vojtech Horky <vojtech.horky@…> (2019-01-06 22:28:51)
Message:

hbench: one header is enough

Location:
uspace/app/hbench
Files:
3 deleted
11 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/hbench/benchlist.c

    rfe656783 rd926f42  
    3636
    3737#include <stdlib.h>
    38 #include "benchlist.h"
     38#include "hbench.h"
    3939
    4040benchmark_t *benchmarks[] = {
  • uspace/app/hbench/csv.c

    rfe656783 rd926f42  
    3535
    3636#include <stdlib.h>
    37 #include "csv.h"
     37#include <stdio.h>
     38#include "hbench.h"
    3839
    3940static FILE *csv_output = NULL;
  • uspace/app/hbench/fs/dirread.c

    rfe656783 rd926f42  
    3636#include <stdio.h>
    3737#include <stdlib.h>
    38 #include "../benchlist.h"
    3938#include "../hbench.h"
    40 #include "../params.h"
    4139
    4240/*
  • uspace/app/hbench/fs/fileread.c

    rfe656783 rd926f42  
    3535#include <stdio.h>
    3636#include <stdlib.h>
    37 #include "../benchlist.h"
    3837#include "../hbench.h"
    39 #include "../params.h"
    4038
    4139#define BUFFER_SIZE 4096
  • uspace/app/hbench/hbench.h

    rfe656783 rd926f42  
    11/*
    22 * Copyright (c) 2018 Jiri Svoboda
     3 * Copyright (c) 2019 Vojtech Horky
    34 * All rights reserved.
    45 *
     
    3637#define HBENCH_H_
    3738
     39#include <errno.h>
    3840#include <stdbool.h>
    3941#include <perf.h>
     
    5153} benchmark_t;
    5254
     55extern benchmark_t *benchmarks[];
     56extern size_t benchmark_count;
     57
     58extern errno_t csv_report_open(const char *);
     59extern void csv_report_add_entry(stopwatch_t *, int, benchmark_t *, uint64_t);
     60extern void csv_report_close(void);
     61
     62extern errno_t bench_param_init(void);
     63extern errno_t bench_param_set(const char *, const char *);
     64extern const char *bench_param_get(const char *, const char *);
     65extern void bench_param_cleanup(void);
     66
     67/* Put your benchmark descriptors here (and also to benchlist.c). */
     68extern benchmark_t bench_dir_read;
     69extern benchmark_t bench_file_read;
     70extern benchmark_t bench_malloc1;
     71extern benchmark_t bench_malloc2;
     72extern benchmark_t bench_ns_ping;
     73extern benchmark_t bench_ping_pong;
     74
    5375#endif
    5476
  • uspace/app/hbench/ipc/ns_ping.c

    rfe656783 rd926f42  
    3232#include <errno.h>
    3333#include <str_error.h>
    34 #include "../benchlist.h"
    3534#include "../hbench.h"
    3635
  • uspace/app/hbench/ipc/ping_pong.c

    rfe656783 rd926f42  
    3232#include <errno.h>
    3333#include <str_error.h>
    34 #include "../benchlist.h"
    3534#include "../hbench.h"
    3635
  • uspace/app/hbench/main.c

    rfe656783 rd926f42  
    4747#include <perf.h>
    4848#include <types/casting.h>
    49 #include "benchlist.h"
    50 #include "csv.h"
    5149#include "hbench.h"
    52 #include "params.h"
    5350
    5451#define MIN_DURATION_SECS 10
  • uspace/app/hbench/malloc/malloc1.c

    rfe656783 rd926f42  
    3030#include <stdio.h>
    3131#include <stdlib.h>
    32 #include "../benchlist.h"
    3332#include "../hbench.h"
    3433
  • uspace/app/hbench/malloc/malloc2.c

    rfe656783 rd926f42  
    2929#include <stdlib.h>
    3030#include <stdio.h>
    31 #include "../benchlist.h"
    3231#include "../hbench.h"
    3332
  • uspace/app/hbench/params.c

    rfe656783 rd926f42  
    3838#include <stdio.h>
    3939#include <str.h>
    40 #include "params.h"
     40#include "hbench.h"
    4141
    4242typedef struct {
Note: See TracChangeset for help on using the changeset viewer.