Home | History | Annotate | Download | only in blktrace
      1 // Copyright 2018 The Android Open Source Project
      2 //
      3 // Licensed under the Apache License, Version 2.0 (the "License");
      4 // you may not use this file except in compliance with the License.
      5 // You may obtain a copy of the License at
      6 //
      7 //      http://www.apache.org/licenses/LICENSE-2.0
      8 //
      9 // Unless required by applicable law or agreed to in writing, software
     10 // distributed under the License is distributed on an "AS IS" BASIS,
     11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     12 // See the License for the specific language governing permissions and
     13 // limitations under the License.
     14 
     15 cc_defaults {
     16     name: "blktrace_defaults",
     17     include_dirs: [
     18         "external/blktrace",
     19         "external/blktrace/btt",
     20     ],
     21     cflags: [
     22         "-O2",
     23         "-g",
     24         "-W",
     25         "-Wall",
     26         "-D_GNU_SOURCE",
     27         "-D_LARGEFILE_SOURCE",
     28         "-D_FILE_OFFSET_BITS=64",
     29         "-Wno-implicit-function-declaration",
     30         "-Wno-pointer-arith",
     31         "-Wno-unused-function",
     32     ],
     33 }
     34 
     35 cc_binary {
     36     name: "blkparse",
     37     defaults: ["blktrace_defaults"],
     38     srcs: [
     39         "blkparse.c",
     40         "blkparse_fmt.c",
     41         "rbtree.c",
     42         "act_mask.c",
     43         "strverscmp.c",
     44     ],
     45 
     46 }
     47 
     48 cc_binary {
     49     name: "blktrace",
     50     defaults: ["blktrace_defaults"],
     51     srcs: [
     52         "blktrace.c",
     53         "act_mask.c",
     54     ],
     55 }
     56 
     57 cc_binary {
     58     name: "verify_blkparse",
     59     defaults: ["blktrace_defaults"],
     60     srcs: ["verify_blkparse.c"],
     61     include_dirs: ["external/blktrace/"],
     62 }
     63 
     64 cc_binary {
     65     name: "blkrawverify",
     66     defaults: ["blktrace_defaults"],
     67     srcs: ["blkrawverify.c"],
     68 }
     69 
     70 cc_binary {
     71     name: "blkiomon",
     72     defaults: ["blktrace_defaults"],
     73     srcs: [
     74         "blkiomon.c",
     75         "rbtree.c",
     76     ],
     77 }
     78 
     79 
     80 cc_binary {
     81     name: "btt",
     82     defaults: ["blktrace_defaults"],
     83     srcs: [
     84         "btt/args.c",
     85         "btt/bt_timeline.c",
     86         "btt/devmap.c",
     87         "btt/devs.c",
     88         "btt/dip_rb.c",
     89         "btt/iostat.c",
     90         "btt/latency.c",
     91         "btt/misc.c",
     92         "btt/output.c",
     93         "btt/proc.c",
     94         "btt/seek.c",
     95         "btt/trace.c",
     96         "btt/trace_complete.c",
     97         "btt/trace_im.c",
     98         "btt/trace_issue.c",
     99         "btt/trace_queue.c",
    100         "btt/trace_remap.c",
    101         "btt/trace_requeue.c",
    102         "rbtree.c",
    103         "btt/mmap.c",
    104         "btt/trace_plug.c",
    105         "btt/bno_dump.c",
    106         "btt/unplug_hist.c",
    107         "btt/q2d.c",
    108         "btt/aqd.c",
    109         "btt/plat.c",
    110         "btt/p_live.c", 
    111         "btt/rstats.c",
    112     ],
    113 }
    114